Question: Write a machine language program to add the four numbers 2 , - 6 , 7 and - 1 . Then multiply the sum by

Write a machine language program to add the four numbers 2,-6,7
and -1. Then multiply the sum by 4 and output the result on the output
device. Store -6 and -1 in hexadecimal. Do not use the subtract, negate
or invert instructions. (My main struggle is I dont know how to store -6 and -1 into hexadecimal this is the work I did so far and the output is correct but I need to store -6 and -1 into hexadecimal) LDWA 2, i
ADDA -6, i
ADDA 7, i
ADDA -1, i
ASLA
ASLA
STWA 0x0100,d
DECO 0x0100, d
Stop
.end
Source Code - untitled.pep*
Source Code - untitled.pep*
C
Accumulator
8
0
Index Register
longrightarrow
Program Counter
Instruction Specifier
00000000
stop
Operand Specifier
(Operand)
Input
Input
Object Code - untitled.pepo
Assembler Listing - untitled.pepl
 Write a machine language program to add the four numbers 2,-6,7

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!