Question: MOV MOV RO, 512 R1,0x123 Data Block Size Data Block starting address again LDR R2,R1 ADDR2,5 STR R2, R1 ADD R1, +1 ADD RO,-1 JNZ
MOV MOV RO, 512 R1,0x123 Data Block Size Data Block starting address again LDR R2,R1 ADDR2,5 STR R2, R1 ADD R1, +1 ADD RO,-1 JNZ again ; Get data from [R1] ; Add 5 ; Put data back to its location, (R1] ; Increment pointer ; Decrement Counter | Repeat if not processed all data Refer to the notes of lecture#5 and convert the given assembly code to machine code. The answer can be structured in a table as shown. Add more rows as required. Instruction Address Assembly Instruction Machine Code (in binary) Machine Code in Hex) MOV MOV RO, 512 R1,0x123 Data Block Size Data Block starting address again LDR R2,R1 ADDR2,5 STR R2, R1 ADD R1, +1 ADD RO,-1 JNZ again ; Get data from [R1] ; Add 5 ; Put data back to its location, (R1] ; Increment pointer ; Decrement Counter | Repeat if not processed all data Refer to the notes of lecture#5 and convert the given assembly code to machine code. The answer can be structured in a table as shown. Add more rows as required. 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
