Question: 3 . Write a machine - language program to input a number, divide it by 4 , and output the result on the output device.

3. Write a machine-language program to input a number, divide it by 4, and output the result on the output device.
0000 C10010;load first integer into acc
0003710012;add second int
0006710014;add third integer
0009E10016;store from acc to memory
000C 390016;output from memory
000F 00 ;stop
00100002
0012 FFFD
00140006
00160000
(The code I have right here is an example of how it should be written out in Pep/8. I need the object code and source code)

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!