Question: 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)
 Please write in MACHINE CODE ONLY (0s and 1s), no use

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!