Question
1. Using are hypothetical machines (3-address, 2-address, 1-address and 0-address) and the following commands: load= puts value in address add = + mult = *
1. Using are hypothetical machines (3-address, 2-address, 1-address and 0-address) and the following commands:
load= puts value in address
add = +
mult = *
sub = -
lda=load in accumulator
sta = loads from accumulator to memory
push=copies to the stack
pop=copies from the stack
Show for each machine the instructions to perform the following task:
F=F+(A-C) (B*E)
2. In DEBUG.
a. Execute the following command:
e 100 2c 3a 4e 51
Use the A command to enter the following program:
mov ch, [101]
mov bl, [100]
inc bx
mov ax, [102]
inc ax
nop
Execute the program using the T command.
b. Show the final values of ax, bx and cx. Explain in detail how each arrived at their particular values.
3. Get into DEBUG and enter the following assembly language instructions using the A command:
mov ax, -10
mov bh, -33
mov bl 16
nop
Run the program using the T command.
Notice the value placed in AX. How was that hexadecimal value arrived at?
4. PROGRAM Write an 80x86 assembly language program in a file, hw5.asm, that will read from memory a positive integer value and sum up the positive integer values to that value and including that value. Assume that the sum will be less than 255.
num1 BYTE 13
totall BYTE ?
After your program executes the value in totall should be 1+2+3+4+5+6+7+8+9+10+11+12+13=91
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started