Can somone direct me to a book or site for help with this hw I have

Status
Not open for further replies.
This looks like simple computer architecture stuff, so I think I can help.

What it is asking for is for you to step through the memory, with the program counter starting at 00000. Therefore, this memory location is interpreted as an instruction.

I read it as:

Opcode: STAM - Store Accumulator in Memory (001) Operand: 00111

This means you store the contents of the accumulator (presumably initially zero) in the memory address 00111.

The next instruction would be

Opcode: LDAI - Load Accumulator Immediate (011) Operand: 00110

This means you load the immediate operand into the accumulator. Therefore, the accumulator would get the value 6 (00110).

Opcode: ADDI - Add Immediate (101) Operand: 11101

This means you add the immediate operand (11101 - Decimal 29) to the contents of the accumulator (00110 - Decimal 6) and store the result (100011 - Decimal 35) in the accumulator.

You see?
 
Status
Not open for further replies.
Back
Top Bottom