This commit is contained in:
Michael Smith 2025-08-05 12:49:15 +02:00
parent a831c937c6
commit d7be45c2ac

21
gb/cpu.go Normal file
View File

@ -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++
}