diff --git a/apple2/apple2.go b/apple2/apple2.go index 366e4f7..1ce8c4f 100644 --- a/apple2/apple2.go +++ b/apple2/apple2.go @@ -18,6 +18,7 @@ func Run(romFile string, log bool) { // Start the processor core6502.Reset(&s) + t.prepare() for true { core6502.ExecuteInstruction(&s, log) t.dumpIfDirty() diff --git a/apple2/textPages.go b/apple2/textPages.go index 50d5408..4946da9 100644 --- a/apple2/textPages.go +++ b/apple2/textPages.go @@ -34,10 +34,16 @@ func textMemoryByteToStringHex(value uint8) string { return fmt.Sprintf("%02x ", value) } +func (tp *textPages) prepare() { + fmt.Printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n") +} + func (tp *textPages) dump() { // See "Understand the Apple II", page 5-10 // http://www.applelogic.org/files/UNDERSTANDINGTHEAII.pdf + fmt.Print("\033[26A") + fmt.Println("------------------------------------------") var i, j, h uint8 diff --git a/core6502/execute.go b/core6502/execute.go index 5d36c73..e864f75 100644 --- a/core6502/execute.go +++ b/core6502/execute.go @@ -550,7 +550,6 @@ func ExecuteInstruction(s *State, log bool) { // Reset resets the processor state. Moves the program counter to the vector in 0cfffc. func Reset(s *State) { startAddress := s.Mem.getWord(0xfffc) - fmt.Println(startAddress) s.Reg.setPC(startAddress) }