started op table

This commit is contained in:
radumaco
2025-04-19 22:26:59 +02:00
parent d26e6b7436
commit 28243ac5d5
11 changed files with 246 additions and 1 deletions

16
cpu/optable.go Normal file
View File

@@ -0,0 +1,16 @@
package cpu
type operation func(byte)
var OpTable = [256]func(context op_context){
Noop, //0x00
LDBCd16, //0x01
LDBCa, //0x02
INCBC, //0x03
INCB, //0x04
DECB, //0x05
LD8B, //0x06
}
func (cpu *CPU_struct) execute(op byte, addr uint) {
}