#1 only, explanation helpful, thanks. 1- Use the following tables and the 16-bit
ID: 3891323 • Letter: #
Question
#1 only, explanation helpful, thanks.
1- Use the following tables and the 16-bit instruction table (table.1) to: a- Decode the instruction pointed to by PC b- Show the contents of register AC after executing the instruction and the content of the last accessed memory address. Increment PC by 1, use the original AC value and repeat a and b. c- Register name PC AC Hexadecimal value 891 3BCD Hexadecimal value 7040 9200 OCA2 F667 Memory address 891 892 200 CA2 a- Hexadecimal valuc Register name AC Hexadecimal value Register name AR Register name Hexadecimal value Hexadecimal value Memory MIAR Hexadecimal value Register name AC Hexadecimal value Register name AR Memory MIAR Hexadecimal valueExplanation / Answer
Hi,
Here (a) asks to decode the instruction pointed to by register PC,
So that can be found using 1st 2 table and instruction table.
i.e. Value stored in register PC is 891.
So the location is 891.
the value at 891 position is 7040 (from 2nd table )
So the instruction can be found from the instruction table. ie. calculate left AC and B
As asked in point (b). Execute the above instruction i.e ( "and" operation between left shifted AC, B) and after that show the content of register AC.
As given in (c) increase the value of PC by 1 i.e 892.
and perform the above things again in the same way.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.