Question

compare the register memory, accumulator based and memory memory architectures by writing the assembly programs to...

compare the register memory, accumulator based and memory memory architectures by writing the assembly programs to perform the calculation F =(B+C)/A

Homework Answers

Answer #1
Please give thumbs up if you like it
Register Memory Architecture
Expression: F = (B+C)/A
R1, R2 are registers
M[] is any memory location
MOV R1, B R1 = M[B]
ADD R1, C R1 = R1 + M[C]
MOV R2, A R2 = A
DIV R1, R2 R1 = R1 / R2
Accumulator Based
Expression: F = (B+C)/A
AC is accumulator
M[] is any memory location
M[T] is temporary location
LOAD B AC = M[B]
ADD C AC = AC + M[C]
DIV A AC= AC/A
STORE F M[F] = AC
Memory Memory
Expression: F = (B+C)/A
M[] is any memory location
ADD X,B,C M[X]= M[B]+ M[C]
DIV E,X,A M[E] = M[X] / M[A]
STORE F M[F]= M[E]
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ARITHMETIC INSTRUCTIONS a) ADD with register/memory       ADD r [or] ADD M b) ADD immediate.      ...
ARITHMETIC INSTRUCTIONS a) ADD with register/memory       ADD r [or] ADD M b) ADD immediate.       ADI 8 bit data c) ADD with carry       ADC r [or] ADC M 2. Write Assembly Language Program to perform Simple Addition of two 8 Bit numbers stored in locations memory C030 , C031.
ARITHMETIC INSTRUCTIONS a) ADD with register/memory       ADD r [or] ADD M b) ADD immediate.      ...
ARITHMETIC INSTRUCTIONS a) ADD with register/memory       ADD r [or] ADD M b) ADD immediate.       ADI 8 bit data c) ADD with carry       ADC r [or] ADC M 1: Write Assembly Language Program to perform Simple Addition of two 8 Bit Numbers.
Write a possible assembly language instruction or set of instructions to accomplish the following: Compare the...
Write a possible assembly language instruction or set of instructions to accomplish the following: Compare the byte stored at the memory location pointed to by register R4 to the upper (higher) byte stored in register R5 b) Branch to instruction at label ‘ZERO’ if the lower byte of register R6 is zero c) Jump to the instruction at label ‘EVEN’ if the value in register R7 is an even number
Question 1: Operating System operate on _____ memory: [A]  Virtual [B]  Linear [C]  Physical [D] Hybrid Question 2: Programs...
Question 1: Operating System operate on _____ memory: [A]  Virtual [B]  Linear [C]  Physical [D] Hybrid Question 2: Programs operate on _____ memory: [A]  Virtual [B]  Linear [C]  Physical [D] Hybrid
PLEASE SOLVE WILL RATE AND THUMBS UP Simple assembly code question: In this question you will...
PLEASE SOLVE WILL RATE AND THUMBS UP Simple assembly code question: In this question you will write a simple program to loop through an array (i.e., writing while statements in assembly) of non-zero numbers. Write an LC3 assembly program for converting a list of non-zero integers into their absolute values. The program starts at x3000. It will first load the address ARRAY of the start of the list into register R0. After this, R0 now contains the location in memory...
F)The TCNT register is receiving an 8 MHz clock, If you are using an output compare...
F)The TCNT register is receiving an 8 MHz clock, If you are using an output compare with interrupts to delay 5.8 ms, can this be done without multiple interrupts? G) Consider a 12bit timer subsystem similar to the HCS12’s. Assume that it has a 1 MHz clock. What is the interval between timer overflows? H)For the same timer system described earlier (12 bits), what value should be loaded into the output compare register to create a delay of 100 microseconds?...
C++ language 1. Programs with memory leaks a should be executed in a secure environment to...
C++ language 1. Programs with memory leaks a should be executed in a secure environment to prevent theft of data by hackers. b will eventually crash if allowed to execute for long periods of time. c should be compiled with a special compiler that detects and flags the memory leaks. d should be executed under an operating system that can dynamically plug the leaks. e none of these. 2. An  lvalue is a a value of type long. b a memory...
ARM on a raspberry pi 1. Create a assembly program that branches based off the value...
ARM on a raspberry pi 1. Create a assembly program that branches based off the value of three different variables. ## Details Task 1: I highly suggest reading the book and doing the practice before doing this. Name your file cp5.s. You need to initally start with the three variables. * the variables should be called max, t1, t2. * Set the values to whatever you would like. * max tells us the cut off for a value * if...
4) If variable A=0x05 & register B=0x10, and you compare the variables with the instruction (a>=b),...
4) If variable A=0x05 & register B=0x10, and you compare the variables with the instruction (a>=b), what's the contents of A, B after the comparison: a) 05, 10 b) 15, 05 c) F1, 00 d) F1, 10 e) 15, 00 5) In the instruction above, what's the value of the N, Z conditions after the execution: a) 0,0 b) 1,0 c) 0,1 d) 1,1 e) 0,0 6) If A = 0xAB, and you execute a shift right instruction A=A>, what...
III. After execution of the following instructions what value will be in register r0? LDR                ...
III. After execution of the following instructions what value will be in register r0? LDR                 r12, =0xA4000000 LDR                 r0, =0x75 LDR                 r1, =0xD2 LDR                 r2, =0x9C LDR                 r5, =0xC STMDB           r12!, {r0-r2, r5} LDR                 r0, [r12, #8] SUB                 r0, #0x77 IV. Assume that the variables f, g, h, i, and j are assigned to registers r0, r1, r2, r3, and r4, respectively. Assume that the base address of the arrays A and...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT