Answered step by step
Verified Expert Solution
Link Copied!

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 (0s and 1s), 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-3 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 x3100.
; The program then stores a second number into x3101.
; 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.
0011000000000000 ; Load address x3000 as the start location
; clear R0 and R1
0101000000100000 ; R0-0
0101001001100000 ; R1-0
; store values into R0 and R1
0001000000100101 ; R0- #5
0001001001100011 ; R1- #3
; store values from R0 and R1 into memory
0011000011111011; x3100- R0
0011001011111011; x3101- R1
; clear R0 and R1
0101000000100000 ; R0-0
0101001001100000 ; R1-0
; 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 name(s)
1111000000100101 ; halt the program (TRAP with vector x25)
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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions