Ds Syll
Ds Syll
Simulate the machine for the following memory-reference instructions with I= 0 and
address part = 082. The instruction to be stored at address 022 in RAM. Initialize the
memory word at address 082 with the operand B8F2 and AC with A937. Determine the
contents of AC, DR, PC, AR and IR in hexadecimal after the execution.
a. ADD f. BSA
b. AND g. ISZ
c. LDA
d. STA
e. BUN
6. Simulate the machine for the memory-reference instructions referred in above question with I=
1 and address part = 082. The instruction to be stored at address 026 in RAM. Initialize the
memory word at address 082 with the value 298. Initialize the memory word at address 298
with operand B8F2 and AC with A937. Determine the contents of AC, DR, PC, AR and IR in
hexadecimal after the execution.
7. Modify the machine created in Practical 1 according to the following instruction format:
Instruction format
0 2 3 4 15
Opcode I Address
a. The instruction format contains a 3-bit opcode, a 1-bit addressing mode and a 12-
bit address. There are only two addressing modes, I = 0 (direct addressing) and I =
1 (indirect addressing).
b. Create a new register I of 1 bit.
c. Create two new microinstructions as follows :
i. Check the opcode of instruction to determine type of instruction (Memory
Reference/Register Reference/Input-Output) and then jump accordingly.
ii. Check the I bit to determine the addressing mode and then jump
accordingly.
Manipulating Strings, String Immutability & Equality, Passing Strings To & From Methods,
String Buffer Classes. Simple I/O using System.out and the Scanner class, Byte and Character
streams, Reading/Writing from console and files.