Question: 1. How many bytes are allocated in total for the variables (va, vb, vc, vd, and ve)? 2. For each of the instructions highlighted (boldface),

1. How many bytes are allocated in total for the variables (va, vb, vc, vd, and ve)? 2. For each of the instructions highlighted (boldface), derive the effective address of the memory variable (source) if any memory variable is involved, and the contents of the register a or d (whichever one involved) right after the instruction is executed. Answer in hexadecimal. Assume that all of the bytes in the variables va, vb and vc are initially 0. RAMStart ROMStart EQU EQU $0800 $4000 va vb ORG DS.B DS.B DS.W DC.B DC.W RAMStart 1 5 5 1,10,$9C,"12" 2,20,$812,$81E,"3",$0, "00", "abc" VC vd ve ORG ldaa Idd ldd ldaa ldaa Idx ldaa ldaa Idx ldaa ldaa ldab ldaa ldy Idaa Idd Idaa ROMStart #$34 #$801 $801 vb $813 #ve 0.x 3.x #vd 8,x+ 5,-X #$OB b,x #$812 #9 [d.y] rts 1. How many bytes are allocated in total for the variables (va, vb, vc, vd, and ve)? 2. For each of the instructions highlighted (boldface), derive the effective address of the memory variable (source) if any memory variable is involved, and the contents of the register a or d (whichever one involved) right after the instruction is executed. Answer in hexadecimal. Assume that all of the bytes in the variables va, vb and vc are initially 0. RAMStart ROMStart EQU EQU $0800 $4000 va vb ORG DS.B DS.B DS.W DC.B DC.W RAMStart 1 5 5 1,10,$9C,"12" 2,20,$812,$81E,"3",$0, "00", "abc" VC vd ve ORG ldaa Idd ldd ldaa ldaa Idx ldaa ldaa Idx ldaa ldaa ldab ldaa ldy Idaa Idd Idaa ROMStart #$34 #$801 $801 vb $813 #ve 0.x 3.x #vd 8,x+ 5,-X #$OB b,x #$812 #9 [d.y] rts
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
