23- Write the following assembly instructions per the program specification Load
ID: 3909993 • Letter: 2
Question
23- Write the following assembly instructions per the program specification Load Reg.A with following $35 and subtract the value $CF located at $1200 from he contents of Reg.A. Then, store the result in the memory location at $1250. Fill in the underlined spaces as a suggestion: org $1500 : load Reg.A with $35 subtract the value $CF located at $1200 from Reg.A i store the result at $1250 24 Complete the assembly instructions below by filling in the underlined spaces: Start 1dx : load register X with $32 (2 E-clk) : no operation (1 E-clk) nop dbne ,1p ; decrement Reg.? : and branch if not equal (3 E-clk) : no operation (1 E-clk) end nop is the program execution time from start to end if 1 E-clk - Show the calculations.Explanation / Answer
23-
Load Reg.A with $35 then subtract the value $CF located at $1200 from Reg.A.
Result has to be stored at location $1250
Assembly instructions :
org $1500
ldaa #$35 ; # is used for immediate addressing i.e. $35 is stored in Reg.A
suba $1200 ; A = A- [$1200]
staa $1250 ; [$1250] = A
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.