Consider creating a Stack ISA. You need to have math instruction, logic instruct
ID: 3787811 • Letter: C
Question
Consider creating a Stack ISA. You need to have math instruction, logic instruction, pop and push instructions. Your ISA can have 8-bit and 16-bit unsigned numbers. The memory address is 16-bits. Write out the instruction you will have and show the encoding. Create the opcode that you need for the stack. Consider creating a Stack ISA. You need to have math instruction, logic instruction, pop and push instructions. Your ISA can have 8-bit and 16-bit unsigned numbers. The memory address is 16-bits. Write out the instruction you will have and show the encoding. Create the opcode that you need for the stack.Explanation / Answer
Push A
Load A
Load R1, A
Load R1, A
Push B
Add B
Add R1, B
Load R2, B
Add
Store C
Store C, R1
Add R3,R1,R2
Pop C
Store C, R3
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.