Chip-8_Go/cmd/test_prog/main.go

14 lines
238 B
Go
Raw Permalink Normal View History

2020-10-11 19:18:08 +01:00
package main
import (
2020-10-17 11:41:11 +01:00
"fmt"
2020-10-11 19:18:08 +01:00
"git.jacknet.io/S.D/Chip-8_Go/chip8"
2020-10-17 11:41:11 +01:00
)
2020-10-11 19:18:08 +01:00
func main() {
prog := make([]byte, 6)
cpu := chip8.NewCHIP8(prog)
cpu.PerformCycle()
2020-10-11 19:30:38 +01:00
fmt.Printf("This should print out zero: %d!\n", cpu.GetGraphicsBuffer()[0])
2020-10-17 11:41:11 +01:00
}