Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write in MACHINE CODE ONLY ( 0 s and 1 s ) , no use of assembly code. Read instructions carefully and dont copy
Please write in MACHINE CODE ONLY s and s no use of assembly code. Read instructions carefully and dont copy paste an answer from somewhere else. I hope you understand. Use of an LC Simulator is highly recommended to reduce and check for any errors.
Multiply.bin:
; This is a program to multiply two numbers.
; The program first stores a number into address x
; The program then stores a second number into x
; In a more complete program the two numbers would be read from the keyboard.
; In a more complete program the result would be written to the monitor.
; Load address x as the start location
; clear R and R
; R
; R
; store values into R and R
; R #
; R #
; store values from R and R into memory
; x R
; x R
; clear R and R
; R
; R
; The multiply program starts here.
; Add code below to complete the assignment requirements.
; Do NOT change any of the code above except to add a header comment with your names
; halt the program TRAP with vector x
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started