diff --git a/cpu/m68k.go b/cpu/m68k.go index 4d5a7d2..1efe09b 100644 --- a/cpu/m68k.go +++ b/cpu/m68k.go @@ -31,8 +31,11 @@ type ( func NewCPU(addressBus AddressBus) M68K { result := M68K{bus: addressBus} + addressBus.SetSuperVisorFlag(&result.SR.S) + result.instructions = make([]Instruction, 0x10000) init68000InstructionSet(&result) + result.Reset() return result }