18. Refer to the below program for questions A-D: Program to multiply a number by the constant 6 ORIG X3050 LD RI, SIX L
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
18. Refer to the below program for questions A-D: Program to multiply a number by the constant 6 ORIG X3050 LD RI, SIX L
questions A-D: Program to multiply a number by the constant 6 ORIG X3050 LD RI, 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 ; R1 keeps track of BRP AGAIN ; the iteration. HALT NUMBER SIX i . BLKW 1 FILL X0006 END a. Identify the instructions (mnemonics for opcodes) in the program b. Identify the labels in the program. c. Identify the registers used in the program,
18. Refer to the below program for