Question: assignment 1 . asm ; Name & Email must be EXACTLY as in Gradescope roster! ; Name: ; Email: ; ; Assignment name: Assignment 1

assignment1.asm
; Name & Email must be EXACTLY as in Gradescope roster!
; Name:
; Email:
;
; Assignment name: Assignment 1
; Lab section:
; TA:
;
; I hereby certify that I have not received assistance on this assignment,
; or used code, from ANY outside source other than the instruction team
; (apart from what was provided in the starter file).
;
;
; REG VALUES R0R1R2R3R4R5R6R7
; -
;Pre-loop 0,6,12,0,0,0,0,1168
; Iteration 01,0,5,12,12,0,0,0,1168
; Iteration 02,0,4,12,24,0,0,0,1168
; Iteration 03,0,{:[12,3,12,0,0,0,1168]
; Iteration 84,0,2,12,48,0,0,0,1168
; Iteration 05,0,1,12,60,0,0,0,1168
; Iteration 66,0,0,12,72,0,0,0, DEC_0
; ; End of program ,,0,1272,,,, DEC_
.ORIG 3000; Program begins here
;------------
; Instructions: CODE GOES HERE
;-------------
LD R1, DEC_6 ; 6 ; 1--6
LD R2, DEC_12 ;R2--12
AND R3, R3, #0 ;R3--
DO_WHILE , ADD R3, R3, R2
ADD R1, R1, #-1
;R3--R3+R2
; R1--R1-1
BRp DO_WHILE ;if LMR >0) goto DO_WHILE
HALT
;Terminate the program
; -
;Data (.FILL, .STRINGZ, .BLKW)
;-------------
DEC_0.FILL #0 ;Put the value into memory here
DEC_6.FILL #6 ;Put the value 6 into memory here
DEC_12.FILL #12 ;Put the value 12 into memory here
; END of PROGRAM
;---------------
. END
 assignment1.asm ; Name & Email must be EXACTLY as in Gradescope

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!