Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

3. To see how different ISA decisions will impact the machine design, consider d

ID: 3877862 • Letter: 3

Question

3. To see how different ISA decisions will impact the machine design, consider designing an accumulator machine with the following specifications 224 words of memory [words are 32-bit wide] -Fixed format instructions A 32-bit accumulator register (AC) An index register X Index address mode: address field + X when indexing is indicated in the instruction Capable of performing a total of 128 operations A. Write the equivalent machine level language corresponding to a C statement of C- A+B B. Give an instruction format for this computer. To do this draw a diagram of the instruction format with each field clearly specified. For each field indicate its size, the reason for selected size, and a description of what purpose the field.

Explanation / Answer

3)
A)
ASM program to add two numbers and stored in the another variable

DATA SEGMENT
A DB 8H
B DB 5H
C DB ?
ENDS

CODE SEGMENT  
ASSUME DS:DATA CS:CODE
START:
MOV AX,DATA
MOV DS,AX

MOV AL,A
ADD AL,B

MOV C,AL  

MOV AH,4CH
INT 32H   
ENDS
END START

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote