Status: Tags: Links: HACK Computer - C Instruction (CPU)
A Instruction (CPU)
Symbolic Syntax:
- @value
- value is either:
- a non-negative decimal constant
- a symbol referring to such a constant
Binary Syntax:
0valuewhere value is a 15-bit binary number
 
 
- value is either:
- a 1 before the value would be a C Instruction (CPU) Semantics:
- Sets A register to value
- RAM[A] becomes selected register
- ex) @21 sets the a register to 21, and RAM[21] becomes the selected RAM register
- can now set RAM[A] by setting M=value
 
 
- ex) @21 sets the a register to 21, and RAM[21] becomes the selected RAM register
References: