Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions