5 Consider a hypothetical machine below There are 7 opcodes
Solution
TABLE :
Address
Data
245
2785
246
A00B
247
5557
:
:
:
:
620
4245
621
2247
622
3301
Register
Data
PC
620
ACH
XXXX
AC
8102
IR
4245
I/O
ADDRESS
DATA
301
1040
302
2080
Starting from the instruction at address 620:
TABLE I
Register
Data
PC
621
ACH
13EA
AC
540A
IR
4245
I/O
ADDRESS
DATA
301
1040
302
2080
TABLE II
Register
Data
PC
622
ACH
13EA
AC
540A
IR
2247
I/O
ADDRESS
DATA
301
1040
302
2080
Address
Data
245
2785
246
A00B
247
540A
:
:
:
:
620
4245
621
2247
622
3301
TABLE III
Register
Data
PC
623
ACH
13EA
AC
13EA
IR
3301
I/O
ADDRESS
DATA
301
1040
302
2080
Address
Data
245
2785
246
A00B
247
540A
:
:
:
:
620
4245
621
2247
622
3301
Note: The instruction 3301 might be given incorrect because the opcode 3 has some operation to do and the address 301 pertains to I/O which is a mismatch. Had it been E301 instead of 3301, the first hex code E is “load AC from I/O address”, the contents would look like as below. The contents of the memory location 301 which is 1040 gets loaded in to the register AC.
TABLE IV
Register
Data
PC
623
ACH
13EA
AC
1040
IR
3301
I/O
ADDRESS
DATA
301
1040
302
2080
| Address | Data |
| 245 | 2785 |
| 246 | A00B |
| 247 | 5557 |
| : | : |
| : | : |
| 620 | 4245 |
| 621 | 2247 |
| 622 | 3301 |