From df9f824cc76754ff50e4dc0448affbbe06b78168 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Fri, 5 Dec 2014 16:19:15 -0800 Subject: [PATCH] REset sandbox after running program --- src/toolsrc/sb.pla | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/toolsrc/sb.pla b/src/toolsrc/sb.pla index 4bffa8d..59f1872 100644 --- a/src/toolsrc/sb.pla +++ b/src/toolsrc/sb.pla @@ -419,6 +419,11 @@ asm save_vmstate STA $03F4 DEX RTS +end +// +// RESTORE VM STATE +// +asm restore_vmstate RESETENTRY LDA VMRESET STA $03F2 @@ -438,19 +443,6 @@ RESETENTRY VMRESET !FILL 3 end // -// RESTORE VM STATE -// -asm restore_vmstate - LDA VMRESET - STA $03F2 - LDA VMRESET+1 - STA $03F3 - LDA VMRESET+2 - STA $03F4 - DEX - RTS -end -// // CALL 6502 ROUTINE // CALL(ADDR, AREG, XREG, YREG, STATUS) // @@ -3925,6 +3917,8 @@ if signature == $EEEE readtxt(@txtfile) fin signature = 0 +else + cmdmode fin curschr = '+' flags = flags | insmode