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
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...
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?...
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...
1. A microcontroller is said to be the combination of hardware and software. What does the...
1. A microcontroller is said to be the combination of hardware and software. What does the software refer to A. A program stored in its RAM B. A program stored in its ROM C. The entire assembly programs written for this controller D. The controller’s entire instruction set What is a MCU’s stack? It is a section of memory that allows a MCU to perform stack operation It is a section of memory that is write protected It is a...
Demonstrate your continuous progress in learning MIPS assembly by writing and executing the program below. Edit...
Demonstrate your continuous progress in learning MIPS assembly by writing and executing the program below. Edit the program using your favorite code editor (e.g. Notepad++) and load the programs into QtSpim for execution. Activity Directions: Write a program that will read a line of text and determine whether or not the text is a palindrome. A palindrome is a word or sentence that spells exactly the same thing both forward and backward. For example, the string “anna” is a palindrome,...
To compare two programs for training industriaal workers to perform a skilled job, 20 workers are...
To compare two programs for training industriaal workers to perform a skilled job, 20 workers are included in an experiment. Of these, 10 are selected at random and trained by method 1; the remaining 10 workers are trained by method 2. After competion , all workers are subjected to a time -and - metion test that records the speed of performance of a skilled job. The followind data are obtained method 1 | 15 20 11 23 16 21 18...