Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use direct addressing in all these programs. Execute them on the pep 8 simulator, and submit your pepo file. 1 . Write a machine -

Use direct addressing in all these programs. Execute them on the pep8 simulator, and submit your pepo file.
1. Write a machine-language program to add the three numbers 2,3, and 6 and output the sum on the output device.
Note that one of the numbers you are asked to add is negative.
What I have so far
0000 C10010;load first integer into acc
0003710012;add second int
0006710014;add third integer
0009 E10016;store from acc to memory
000C 390016;output from memory
000F 00 ;stop
00100002
0012 FFFD
00140006
00160000
(It must be in output in the way I have so far and in PEP/8)

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 Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions