Module which keeps instructions set.
- Source:
Methods
-
<static> ADD_I_Vx(x) → {function}
-
Set I = I + Vx.Fx1E - ADD I, Vx
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> ADD_Vx_kk(x, kk) → {function}
-
Set Vx = Vx + kk.7xkk - ADD Vx, kk
Parameters:
Name Type Description x
number kk
number - Source:
Returns:
- Type
- function
-
<static> ADD_Vx_Vy(x, y) → {function}
-
Set Vx = Vx + Vy, set VF = carry.8xy4 - ADD Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> AND_Vx_Vy(x, y) → {function}
-
Set Vx = Vx AND Vy.8xy2 - AND Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> CALL_nnn(nnn) → {function}
-
Call subroutine at nnn.2nnn - CALL nnn
Parameters:
Name Type Description nnn
number - Source:
Returns:
- Type
- function
-
<static> CLS() → {function}
-
Clears the display.00E0 - CLS
- Source:
Returns:
- Type
- function
-
<static> DRW_Vx_Vy_n(x, y, n) → {function}
-
Display n-byte sprite starting at memory location I at (Vx, Vy), set VF = collision.Dxyn - DRW Vx, Vy, n
Parameters:
Name Type Description x
number y
number n
number - Source:
Returns:
- Type
- function
-
<static> JP_nnn(nnn) → {function}
-
Jump to location nnn.1nnn - JP nnn
Parameters:
Name Type Description nnn
number - Source:
Returns:
- Type
- function
-
<static> JP_V0_nnn(nnn) → {function}
-
Jump to location nnn + V0.Bnnn - JP V0, nnn
Parameters:
Name Type Description nnn
number - Source:
Returns:
- Type
- function
-
<static> LD_B_Vx(x) → {function}
-
Store BCD representation of Vx in memory locations I, I+1, and I+2.Fx33 - LD B, Vx
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> LD_DT_Vx(x) → {function}
-
Set delay timer = Vx.Fx15 - LD DT, Vx
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> LD_F_Vx(x) → {function}
-
Set I = location of sprite for digit Vx.Fx29 - LD F, Vx
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> LD_I_nnn(nnn) → {function}
-
Set I = nnn.Annn - LD I, nnn
Parameters:
Name Type Description nnn
number - Source:
Returns:
- Type
- function
-
<static> LD_I_Vx(x) → {function}
-
Store registers V0 through Vx in memory starting at location I. The value of the I register will be incremented by X + 1, if load/store quirks are disabled.Fx55 - LD [I], Vx
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> LD_ST_Vx(x) → {function}
-
Set sound timer = Vx.Fx18 - LD ST, Vx
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> LD_Vx_DT(x) → {function}
-
Set Vx = delay timer value.Fx07 - LD Vx, DT
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> LD_Vx_I(x) → {function}
-
Read registers V0 through Vx from memory starting at location I. The value of the I register will be incremented by X + 1, if load/store quirks are disabled.Fx65 - LD Vx, [I]
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> LD_Vx_K(x) → {function}
-
Wait for a key press, store the value of the key in Vx.Fx0A - LD Vx, K
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> LD_Vx_kk(x, kk) → {function}
-
Set Vx = kk6xkk - LD Vx, kk
Parameters:
Name Type Description x
number kk
number - Source:
Returns:
- Type
- function
-
<static> LD_Vx_Vy(x, y) → {function}
-
Set Vx = Vy8xy0 - LD Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> OR_Vx_Vy(x, y) → {function}
-
Set Vx = Vx OR Vy.8xy1 - OR Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> RET() → {function}
-
Return from a subroutine.00EE - RET
- Source:
Returns:
- Type
- function
-
<static> RND_Vx_kk(x, kk) → {function}
-
Set Vx = random byte AND kk.Cxkk - RND Vx, kk
Parameters:
Name Type Description x
number kk
number - Source:
Returns:
- Type
- function
-
<static> SE_Vx_kk(x, kk) → {function}
-
Skip next instruction if Vx = kk.3xkk - SE Vx, kk
Parameters:
Name Type Description x
number kk
number - Source:
Returns:
- Type
- function
-
<static> SE_Vx_Vy(x, y) → {function}
-
Skip next instruction if Vx = Vy.5xy0 - SE Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> SHL_Vx_Vy(x, y) → {function}
-
Set Vx = Vy SHL 1. If shift quirks enabled Vx = Vx SHL 1. If the most-significant bit of shifted value is 1, then VF is set to 1, otherwise to 0.8xyE - SHL Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> SHR_Vx_Vy(x, y) → {function}
-
Set Vx = Vy SHR 1. If shift quirks enabled Vx = Vx SHR 1. If the least-significant bit of shifted value is 1, then VF is set to 1, otherwise 0.8xy6 - SHR Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> SKNP_Vx(x) → {function}
-
Skip next instruction if key with the value of Vx is not pressed.ExA1 - SKNP Vx
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> SKP_Vx(x) → {function}
-
Skip next instruction if key with the value of Vx is pressed.Ex9E - SKP Vx
Parameters:
Name Type Description x
number - Source:
Returns:
- Type
- function
-
<static> SNE_Vx_kk(x, kk) → {function}
-
Skip next instruction if Vx != kk.4xkk - SNE Vx, kk
Parameters:
Name Type Description x
number kk
number - Source:
Returns:
- Type
- function
-
<static> SNE_Vx_Vy(x, y) → {function}
-
Skip next instruction if Vx != Vy.9xy0 - SNE Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> SUB_Vx_Vy(x, y) → {function}
-
Set Vx = Vx - Vy, set VF = NOT borrow.8xy5 - SUB Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> SUBN_Vx_Vy(x, y) → {function}
-
Set Vx = Vy - Vx, set VF = NOT borrow.8xy7 - SUBN Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function
-
<static> SYS() → {function}
-
Jump to a machine code routine at nnn. This instruction is only used on the old computers on which Chip-8 was originally implemented. It is ignored by modern interpreters.0nnn - SYS addr
- Source:
Returns:
- Type
- function
-
<static> XOR_Vx_Vy(x, y) → {function}
-
Set Vx = Vx XOR Vy.8xy3 - XOR Vx, Vy
Parameters:
Name Type Description x
number y
number - Source:
Returns:
- Type
- function