Question: Need # 2 explained 1. How many bytes are allocated in total for the variables (va, vb, vc, vd, and ve)? 2. For each of
Need # 2 explained
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 ord (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", "abe" ve ROMStart #$34 #$801 $801 vb $813 #ve 0,x ORG ldaa Idd Idd ldaa Idaa Idx Idaa ldaa Idx Idaa Idaa ldab ldaa ldy ldaa Idd ldaa rts 3,x #vd 8,x+ 5,-X #$OB b,x #$812 (7,y) #9 (d,y) 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 ord (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", "abe" ve ROMStart #$34 #$801 $801 vb $813 #ve 0,x ORG ldaa Idd Idd ldaa Idaa Idx Idaa ldaa Idx Idaa Idaa ldab ldaa ldy ldaa Idd ldaa rts 3,x #vd 8,x+ 5,-X #$OB b,x #$812 (7,y) #9 (d,y)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
