Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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=A+ (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

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

Discuss the goals of financial management.

Answered: 1 week ago

Question

=+ Are unions company-wide, regional, or national?

Answered: 1 week ago

Question

=+j Explain the litigation risks in international labor relations.

Answered: 1 week ago