The following program is stored in the memory unit of the basic computer. Give the content of accumulator register in hexadecimal after the execution of the program. Location Instruction 010 CLA 011 ADD 016 012 BUN 014 013 HLT 014 AND 017 015 BUN 013 016 C1A5 017 93C6
8184
This question asks us to trace the execution of a small program stored in the memory of a basic computer and determine the final content of the accumulator (AC) register in hexadecimal format. The program uses fundamental instructions like CLA (Clear Accumulator), ADD (Add to Accumulator), BUN (Branch Unconditionally), HLT (Halt), and AND (Bitwise AND).
The program is loaded into memory starting from location 010. The memory locations 016 and 017 contain data values that the program will use. The accumulator (AC) is a central register that holds data for processing.
| Location (Hex) | Instruction / Data (Hex) | Instruction Mnemonic |
|---|---|---|
| 010 | CLA (Encoded) | CLA |
| 011 | ADD 016 (Encoded) | ADD 016 |
| 012 | BUN 014 (Encoded) | BUN 014 |
| 013 | HLT (Encoded) | HLT |
| 014 | AND 017 (Encoded) | AND 017 |
| 015 | BUN 013 (Encoded) | BUN 013 |
| 016 | C1A5 | Data |
| 017 | 93C6 | Data |
Let's trace the program step-by-step, keeping track of the Program Counter (PC) and the Accumulator (AC).
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| AC (\(C1A5_{hex}\)) | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 |
| Memory[017] (\(93C6_{hex}\)) | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 |
| Result (AC AND Mem[017]) | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 |
After the execution of the program halts at location 013, the final content of the Accumulator (AC) register is \(8184_{hex}\).
| Mnemonic | Description | Operation on AC |
|---|---|---|
| CLA | Clear Accumulator | AC ← 0 |
| ADD M | Add content of memory location M | AC ← AC + M[Address] |
| AND M | Bitwise AND with content of memory location M | AC ← AC AND M[Address] |
| BUN M | Branch Unconditionally to location M | PC ← Address |
| HLT | Halt Computer | Stops program execution |
The program demonstrates key aspects of a basic computer's architecture and instruction cycle:
A micro instruction format has micro operation field which is divided into 2 subfields F1 and F2, each having 15 distinct microoperations, condition field CD for four status bits, branch field BR having four options used in conjunction with address field AD. The address space is of 128 memory words. The size of micro instruction is:
A computer uses a memory unit of 512 K words of 32 bits each. A binary instruction code is stored in one word of the memory. The instruction has four parts: an addressing mode field to specify one of the two-addressing mode (direct and indirect), an operation code, a register code part to specify one of the 256 registers and an address part. How many bits are there in addressing mode part, opcode part, register code part and the address part?
Which of the following is not an example of pseudo‐instruction?
A Computer uses a memory unit with 256K word of 32 bits each. A binary instruction code is stored in one word of memory. The instruction has four parts: an indirect bit, an operation code and a register code part to specify one of 64 registers and an address part. How many bits are there in operation code, the register code part and the address part?