Assembly language
Use this portion of the program to help you answer the questions
BALR R6,0
USING *.R6
L R10,FIRSTNUM
L R12,NEXTNUM
CR R10,R12
BC 8,BYPASS
AR R10,R12
ST R10,RESULT
B PROGEND
BYPASS SR R10,R12
ST R10,RESULT
PROGEND END
FIRSTNUM DC F’15
NEXTNUM . DC . F'20'
RESULT . DS . F
1 /what register is being used as the base register and what value is stored at the time of assembly ?
2/ What will be stored in RESULT? Show what is happening along the way for partial credit
3/ explain what the instruction ‘BC 8,BYPASS’ is doing ?
4/how does the data appear in hexadecimal in RESULT ?
6/what is the purpose of the using assembly directive?
Ans1
Register R6 is being used as the base register because BALR is branch and Link Instruction Register and followed by R6 means address of next instruction and after R6 signifies address of next instruction .Thus R6 is base register and 0 value stored at the time of assembly.
Assembly language Use this portion of the program to help you answer the questions BALR R6,0 USING *.R6 L R10,FIRSTNUM L R12,NEXTNUM CR R10,R12 BC 8,BYPASS AR R10,R12 ST R10,RESULT B PROGEND BYPASS...
Assembly language Use this portion of the program to help you answer the questions BALR R6,0 USING *.R6 L R10,FIRSTNUM L R12,NEXTNUM CR R10,R12 BC 8,BYPASS AR R10,R12 ST R10,RESULT B PROGEND BYPASS SR R10,R12 ST R10,RESULT PROGEND END FIRSTNUM DC F’15 NEXTNUM . DC . F'20' RESULT . DS . F 1 /what register is being used as the base register and what value is stored at the time of assembly ? 2/ What will be stored in RESULT?...