Chip8.Interpreter.Instruction.Argument.Register (chip8 v0.1.0)
A 4-bit integer value representing a data register or a label for one of the pseudo-registers.
pseudo-registers
Pseudo-registers
Name | Description |
---|---|
bcd | binary-coded decimal, it represents a computation rather than an actual value. |
dt | delay timer, see Chip8.Interpreter for more information. |
font | represents the built-in font. |
i | register I of the interpreter, see Chip8.Interpreter for more information. |
keyboard | reads the keyboard and reports key events, see Chip8.Interpreter.Keyboard for more information. |
memory | access to the memory space, see Chip8.Interpreter for more information. |
st | sound timer, see Chip8.Interpreter for more information. |
Link to this section Summary
Link to this section Types
@type t() :: %Chip8.Interpreter.Instruction.Argument.Register{
value: 0..15 | :bcd | :dt | :font | :i | :keyboard | :memory | :st
}
Link to this section Functions
Link to this function
bcd()
@spec bcd() :: t()
@spec dt() :: t()
Link to this function
font()
@spec font() :: t()
@spec i() :: t()
Link to this function
keyboard()
@spec keyboard() :: t()
Link to this function
memory()
@spec memory() :: t()
@spec st() :: t()
Link to this function
v(index)
@spec v(0..15) :: t()