Question: ELEC2220 Computer Systems Spring 2021 Homework #2 (Submit a single PDF file online (Canvas) by 10:50 a.m. on 2/5/21) You must show how you get
ELEC2220 Computer Systems Spring 2021 Homework #2 (Submit a single PDF file online (Canvas) by 10:50 a.m. on 2/5/21) You must show how you get the final answer for each problem. The final answer only receives no credit even if correct. 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 ve vd ve ORG DS.B DS.B DS.W DC.B DC.W RAMStart 1 5 5 1.10,89C, 12" 2,20,8812,881 E,3":0,"00", "abe" ORG Idaa Idd Idd Idaa Idaa kix Idaa Idaa Idx Idaa Idaa Idab Idaa Idy Idaa lid Idaa rts ROMStart #834 #$801 $801 vb 8813 #ve 0.x 3,x #vd 8.x+ 5.-X #SOB bx #8812 9
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
