Slide 22
Slide 22 text
σίʔυ
var instructions = []*inst{
&inst{0x0, "NOP", 0, 1,
func(cpu *CPU, operands []byte) {
ɹɹ cpu.nop()
}
},
&inst{0x1, "LD BC,nn", 2, 3,
func(cpu *CPU, operands []byte) {
cpu.ldn_nn(…)
}
},
…omitted…
&inst{0x6, "LD B,n", 1, 2,
func(cpu *CPU, operands []byte) {
cpu.ldnn_n(&cpu.Regs.B, operands)
}
},
…omitted…
}