The document describes the architecture of a basic computer system including its registers, memory organization, and basic instruction set. It includes the following key details:
- The computer has 7 registers: IR, DR, AC, AR, PC, I, E
- Memory size is 4096 words with 8 bits per word
- Instructions are 15 bits long with opcodes in the first 7 bits and addresses/registers in the last 8 bits
- Basic instructions include load, store, branch, logical and arithmetic operations on registers and memory
The summary provides the essential technical details about the computer's architecture and instruction set in a concise yet informative manner.
The document describes the architecture of a basic computer system including its registers, memory organization, and basic instruction set. It includes the following key details:
- The computer has 7 registers: IR, DR, AC, AR, PC, I, E
- Memory size is 4096 words with 8 bits per word
- Instructions are 15 bits long with opcodes in the first 7 bits and addresses/registers in the last 8 bits
- Basic instructions include load, store, branch, logical and arithmetic operations on registers and memory
The summary provides the essential technical details about the computer's architecture and instruction set in a concise yet informative manner.
The document describes the architecture of a basic computer system including its registers, memory organization, and basic instruction set. It includes the following key details:
- The computer has 7 registers: IR, DR, AC, AR, PC, I, E
- Memory size is 4096 words with 8 bits per word
- Instructions are 15 bits long with opcodes in the first 7 bits and addresses/registers in the last 8 bits
- Basic instructions include load, store, branch, logical and arithmetic operations on registers and memory
The summary provides the essential technical details about the computer's architecture and instruction set in a concise yet informative manner.
Create a machine based on the following architecture:
Registers IR DR AC AR PC I E 0 15 0 15 0 15 0 11 0 11 1 bit 1 bit
Memory Instruction Format
4096 Words 0 34 15 8 bits per word Opcode Address
Basic Computer Instructions
Memory Reference Register Reference Symbol Hex Symbol Hex AND 0xxx CLA E800 ADD 2xxx CLE E400 Direct LDA 4xxx CMA E200 Address STA 6xxx CME E100 BUN 8xxx CIR E080 CIL E040 ISZ Cxxx INC E020 SPA E010 SNA E008 AND_I 1xxx SZA E004 ADD_I 3xxx SZE E002 Indirect LDA_I 5xxx HLT E001 Address STA_I 7xxx BUN_I 9xxx ISZ_I Dxxx Ans. 2. Create a Fetch routine of the instruction cycle. Ans. 3. Write an assembly program to simulate ADD operation on two user-entered numbers.
Ans.
4. Write an assembly program to simulate SUBTRACT operation on two user-
entered numbers. Ans.
5. Write an assembly program to simulate the following logical operations on
two user-entered numbers. a) AND b) OR c) NOT d) XOR e) NOR f) NAND Ans. 6. Write an assembly program to simulate MULTIPLY operation on two user- entered numbers. Ans.