Messing around

This commit is contained in:
Michael Smith
2025-08-06 18:44:00 +02:00
parent 70c0b4aee5
commit 5a5e1feae5
7 changed files with 111 additions and 67 deletions

21
cpu.go Normal file
View File

@@ -0,0 +1,21 @@
package main
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++
}