Question: this is Trap Exercise in LC3 Assembly Language program put comments after every what does this do? .ORIG x3000 LEA R3, Binary LD R6, ASCII
this is Trap Exercise in LC3 Assembly Language program
put comments after every "what does this do?"
.ORIG x3000
LEA R3, Binary
LD R6, ASCII ; What does this do?
LD R7, COUNT ; What does this do?
AGAIN TRAP x23 ; What does this do?
ADD R0, R0, R6 ; What does this do?
STR R0, R3, #0 ; What does this do?
ADD R3, R3, #1 ; What does this do?
ADD R7, R7, -1 ; What does this do?
BRp AGAIN ; What does this do?
BRnzp NEXT
ASCII .FILL xFFD0
COUNT .FILL #10
Binary .BLKW #10
NEXT .FILL #0
.END
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
