Consider the given source file (If you cant view image, right click and view ima
ID: 2248317 • Letter: C
Question
Consider the given source file (If you cant view image, right click and view image to enlarge photo)
f. Encode the following instructions(opcode and operand) : suba [S+$0A], ora [X+$2A]
00 02 02 I 02 8A 01 Top: lda $01 04 91 CO | 06 81 07 91 C I 09 93 CO 0B 48 02| FCB Top, Top inca sta [Vy] suba [Vx] jmp Top ; IMM, EA= $03 ; DIR, EA -$CO iINH ; DIR, EA- SCI ; DIR, EA= $C0 ; IMM-Jumps!' Target = $02 ORG $CO CO ?? C1?? |Vx:RMB 1 IVy:RMB 1 a. This program uses lda-IMM, sta-DIR, inca-IMP, suba-DIR, jmp-IMM. Show how each instruction is encoded, indicating the meaning of each choice field b. List all the labels and their assigned values c. Write after each instruction its addressing mode and effective address. For the jmp write the target addresses d. Produce the corresponding memory dump, have eight memory bytes per line. e. Complete 12 instructions in an execution history, after the following: PCA[Vx] [Vy] Next instruction $02? ?? ?? 1da $01Explanation / Answer
If we want to break down how to actually encode these instructions: