Suppose that we wanted to take the VBC 1 instruction set and add new commands fo
ID: 2266037 • Letter: S
Question
Suppose that we wanted to take the VBC 1 instruction set and add new commands for accessing the memory READ DR, Address and WRITE DR, Address. Because of this we also decide to add two additional registers to support memory access. These registers are designated R2 and R3. How does this impact the machine language for the VBC 1? Please do not discuss changes to the hardware.
Machine Language Instructions in Assembly Opcode DR Datal Address SR 3 IN DR OUT DR MOV DR, SR LOADI DR, Data ADDI DR, Data ADD DR, SR SRO DR, SR JNZ DR, Address 1 1 0 0/1 0 0 0 0/1 0/1 000Explanation / Answer
By adding new commands , the first main thing is using of extra address or more of the address space is being used which results in usage of more memory.
For this we are adding two additional registers, R2 and R3.
Impact on Machine Language :
Machine Language be it MIPS or AL or any other assembly language, here in this case you are adding two additional registers which will store the additional commands.
this will increase the time taken to obtain the result but the program or the code will run the same way as it is in VBC1. There are hardware related changes will occur. As you said I am not going to discuss them.
The time taken will be increases and so the related changes.
The program will be running the same way as VBC1.
the efficiency (less time) can be improved by using parallelism.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.