mirror of
https://github.com/freewilll/apple2-go.git
synced 2024-12-23 10:29:48 +00:00
26 lines
359 B
Go
26 lines
359 B
Go
package test_cpu
|
|
|
|
import (
|
|
"mos6502go/cpu"
|
|
"mos6502go/utils"
|
|
"testing"
|
|
)
|
|
|
|
func TestFunctionalTests(*testing.T) {
|
|
cpu.InitDisasm()
|
|
|
|
var s cpu.State
|
|
s.Init()
|
|
|
|
bytes, err := utils.ReadMemoryFromFile("6502_functional_test.bin.gz")
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
for i := 0; i < len(bytes); i++ {
|
|
s.Memory[i] = bytes[i]
|
|
}
|
|
|
|
cpu.Run(&s, false, nil)
|
|
}
|