Write the fetch cycle and execute cycle for following
instructions:JMPNZ (jump to the given address if the
accumulator not equal to zero) RET(return from a
subroutine) ADB (add the contents of register B to the
accumulator and save result in the accumulator).
Answer / steve holton
As this is mainframe assembler section, this is a trick
question - there is no JMPNZ opcode for mainframe (recently
added JNZ with relative addressing in the z/800 and later,
but no JMPNZ) and the mainframe has no RET instruction
(there is a PR to return from a cross address space or PC
"call" statement) and the mainframe has no accumulator, ADB
opcode, or B register.
| Is This Answer Correct ? | 2 Yes | 0 No |
HOW MANY MAXIMUM BASE REGISTERS WE CAN HAVE IN A PROGRAM AND ALSO HOW MANY MAXIMUM BASE REGISTERS WE CAN HAVE IN A SINGLE PROGRAM.
explain icm instruction?
Explain the difference between various read and find statement and which one should be used when for better adabas performance?
How do you round the addition or subtraction of two numbers in assembler? what does the following code do? AP WKUR,=P'5' where WKUR is a label
Why do we have multiple base registers in certain programs?
What is maximum displacement and how to cross this limit?
Explain the difference in data type "x" and "p"?
What is house keeping in assembler? And explain the following code HELLOTSO START 0 * PRINT NOGEN BEGIN SAVE (14,12) LR 12,15 USING TYPE,12 ST 13,SAVE+4 LA 11,SAVE ST 11,8(13) LR 13,11
What is the use of TRT instruction and how it is working?
What is maximum displacement?
Why do we use "drop"?
What does LA R3,R3 ?