Temporary location, Computer Engineering

Compare zero-, one, two-, and three- address machines by writing programs to compute

                        X = (A + B x C)/(D - E x F)

for every of the four machines.  Do not modify the values of A, B, C, D, E, or F.  If essential, use a temporary location T to kept the intermediate results.

The instructions available for use are as follows:

 

0 Address

1 Address

2 Address

3 Address

PUSH M

LOAD M

MOVE (XßY)

MOVE (XßY)

POP M

STORE M

ADD (XßX + Y)

ADD (XßY + Z)

ADD

ADD M

SUB (XßX - Y)

SUB (XßY - Z)

SUB

SUB M

MUL (XßX x Y)

MUL (XßY x Z)

MUL

MUL M

DIV (XßX / Y)

DIV (XßY / Z)

DIV

DIV M

 

 

 

Posted Date: 3/23/2013 2:16:07 AM | Location : United States







Related Discussions:- Temporary location, Assignment Help, Ask Question on Temporary location, Get Answer, Expert's Help, Temporary location Discussions

Write discussion on Temporary location
Your posts are moderated
Related Questions
State in brief about the pseudo instruction A pseudo instruction isn't a real instruction. CPU can't execute it. It often requires a complex architectural operation and if it w

In a clinic 0.15 of the patients have got the HIV virus. Assume a blood test is carried out on a patient. If the patient has got the virus the test will turn out positive with prob

Q. Working of Read-Only Memory? A ROM is fundamentally a memory or storage device in which a fixed set of binary information is stored. A block diagram of ROM is as displayed i

Q. Convert the following from octal to binary, decimal, hexadecimal and BCD. a) 7.7 b) 4037 c) 23.34

How do you populate data into a multiple line field? To populate data into a multiple line field, an index is added to the field name to show which line is to be populated by t

How does TCP achieve reliability? One of the most significant technologies is retransmission. While TCP stands data the sender compensates for packet loss through implementing

What are the fundamental steps in program development The basic steps in program development are as follows: a. Program coding, design and documentation. b. Preparation o

Define deadlock? Deadlock is a condition, wherein processes never finish executing and system resources are tied up, preventing another job from beginning. A process requests r

Develop a regular expression for Real number and Real number with optional fraction (i) A regular expression for real number is [+ | -] (d)+. (d)+ (ii) A regular expression

what is cascade rollback