diff --git a/gb/cpu.go b/gb/cpu.go new file mode 100644 index 0000000..7bd7637 --- /dev/null +++ b/gb/cpu.go @@ -0,0 +1,21 @@ +package gb + +type Cpu struct { + A uint8 + Flags uint8 + BC uint16 + DE uint16 + HL uint16 + SP uint16 + PC uint16 +} + +func Reset() Cpu { + cpu := Cpu{} + + return cpu +} + +func Tick(cpu *Cpu) { + cpu.PC++ +}