Question: EXPERT IN COMPUTER SCIENCE ASSEMBLY LANGUAGE ASM LC-3 PROGRAMMING ill in the blanks. .ORIG x3200 LDI R1, num1 LD R2, num 2 JSR NAND LEA
EXPERT IN COMPUTER SCIENCE ASSEMBLY LANGUAGE ASM LC-3 PROGRAMMING
ill in the blanks. .ORIG x3200 LDI R1, num1 LD R2, num 2 JSR NAND LEA R5, num STR R3, R5, #3 , addressing mode , addressing mode , R7-x , addressing mode ; R2 x ;PC=x. ; R3 is stored in x , addressing mode HALT AND R3, R2, R1 ; PC = x NOT R3, R3 RET NAND - BASE FILL x3300 num1 .FILL x3301 num2 .FILL x3302 .END Memory location Content x3300 x3301 x3302 x3303 1010 1010 0011 1000 1111 0000 1100 0000 0101 1010 0001 0000 The entries should be the correct order ; Program to multiply a number by the constant 6 .ORIG x3050 LD R1, SIX LD R2, NUMBER AND R3, R3, #0 ; Clear R3. It will contain the product. ; The inner loop AGAIN ADD R3, R3, R2 ADD R1, R1, #-1 ; RI keeps track of BRp AGAIN; the iteration. HALT NUMBER .BLKW 1 SIX .FILL x0006 ill in the blanks. .ORIG x3200 LDI R1, num1 LD R2, num 2 JSR NAND LEA R5, num STR R3, R5, #3 , addressing mode , addressing mode , R7-x , addressing mode ; R2 x ;PC=x. ; R3 is stored in x , addressing mode HALT AND R3, R2, R1 ; PC = x NOT R3, R3 RET NAND - BASE FILL x3300 num1 .FILL x3301 num2 .FILL x3302 .END Memory location Content x3300 x3301 x3302 x3303 1010 1010 0011 1000 1111 0000 1100 0000 0101 1010 0001 0000 The entries should be the correct order ; Program to multiply a number by the constant 6 .ORIG x3050 LD R1, SIX LD R2, NUMBER AND R3, R3, #0 ; Clear R3. It will contain the product. ; The inner loop AGAIN ADD R3, R3, R2 ADD R1, R1, #-1 ; RI keeps track of BRp AGAIN; the iteration. HALT NUMBER .BLKW 1 SIX .FILL x0006
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
