Question: convert the given assembly code to machine code. the programmer used the label again to refer to the location of an instruction. you need to

convert the given assembly code to machine code. the programmer used the label "again" to refer to the location of an instruction. you need to identify the "actual" address of this "again" label.
R0,512 R1,0x123 ; Data Block Size ; Data Block starting address MOV MOV again LDR ADD STR ADD ADD JNZ R2,R1 R2,5 R2,R1 R1, +1 RO,-1 again ; Get data from [R1] ; Add 5 ; Put data back to its location, (R1] ; Increment pointer ; Decrement Counter ; Repeat if not processed all data Instruction Address Assembly Instruction Machine Code (in binary) Machine Code (in Hex) R0,512 R1,0x123 ; Data Block Size ; Data Block starting address MOV MOV again LDR ADD STR ADD ADD JNZ R2,R1 R2,5 R2,R1 R1, +1 RO,-1 again ; Get data from [R1] ; Add 5 ; Put data back to its location, (R1] ; Increment pointer ; Decrement Counter ; Repeat if not processed all data Instruction Address Assembly Instruction Machine Code (in binary) Machine Code (in Hex)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
