Question: pls help me asapppppp QUESTION 1: (a) Assume that a hypothetical computer contains a single data register, called an accumulator (A). Both instructions and data

 pls help me asapppppp QUESTION 1: (a) Assume that a hypothetical

pls help me asapppppp

QUESTION 1: (a) Assume that a hypothetical computer contains a single data register, called an accumulator (A). Both instructions and data are 8 bits long. Memory is byte addressable. Instruction format provides 3 bits for the opcode and remaining bits for the memory direct address. Integer data uses 2's complement method. Partial list of assembly instructions includes the following: Opcode Operand Machine Code Meaning LDA Direct Memory 000 Load the data from memory to address accumulator STA Direct memory 001 Store the data from accumulator to address memory ADD Direct memory 010 Add the memory contents to address accumulator and store the result in accumulator. (b) This hypothetical computer uses program counter to keep track of program execution and instruction register for holding the instructions temporarily before decoding. Answer the following i) Identify the instruction format ii) Identify the range of direct memory addresses. iii) Write the program fragment to add the contents of memory word at address 15 to the contents of memory word at address 16 and store the result in memory location, 16. Assume that program is stored starting from memory address 5. iv) Illustrate the fetch and execute cycles for the instructions written in (iii). 10.5+0.5+1+3 = 5 marks) Assume that 16-bit datal in hexadecimal format is (#0x457F) and 16-bit data2 in hexadecimal format is (#OxAB36). Answer the following: 1) Assume the usage of 16-bit Intel 8086 microprocessor, identify the flag bits (carry, overflow, zero, sign, parity) and AX register contents at the end of execution of the following instructions. MOV AX, #0x457F MOV BX,#OxAB36 ADD AX, BX ii) Assume the usage of 32-bit ARM microprocessor, identify the user flag bits (Negative, Zero, Carry) and R3 register contents at the end of execution of the following instructions MOV RI, #0x457F MOV R2, #OxAB36 SUBS R3, R1, R2 13+2 = 5 marks) QUESTION 1: (a) Assume that a hypothetical computer contains a single data register, called an accumulator (A). Both instructions and data are 8 bits long. Memory is byte addressable. Instruction format provides 3 bits for the opcode and remaining bits for the memory direct address. Integer data uses 2's complement method. Partial list of assembly instructions includes the following: Opcode Operand Machine Code Meaning LDA Direct Memory 000 Load the data from memory to address accumulator STA Direct memory 001 Store the data from accumulator to address memory ADD Direct memory 010 Add the memory contents to address accumulator and store the result in accumulator. (b) This hypothetical computer uses program counter to keep track of program execution and instruction register for holding the instructions temporarily before decoding. Answer the following i) Identify the instruction format ii) Identify the range of direct memory addresses. iii) Write the program fragment to add the contents of memory word at address 15 to the contents of memory word at address 16 and store the result in memory location, 16. Assume that program is stored starting from memory address 5. iv) Illustrate the fetch and execute cycles for the instructions written in (iii). 10.5+0.5+1+3 = 5 marks) Assume that 16-bit datal in hexadecimal format is (#0x457F) and 16-bit data2 in hexadecimal format is (#OxAB36). Answer the following: 1) Assume the usage of 16-bit Intel 8086 microprocessor, identify the flag bits (carry, overflow, zero, sign, parity) and AX register contents at the end of execution of the following instructions. MOV AX, #0x457F MOV BX,#OxAB36 ADD AX, BX ii) Assume the usage of 32-bit ARM microprocessor, identify the user flag bits (Negative, Zero, Carry) and R3 register contents at the end of execution of the following instructions MOV RI, #0x457F MOV R2, #OxAB36 SUBS R3, R1, R2 13+2 = 5 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!