1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2025-01-09 13:33:26 +00:00

REset sandbox after running program

This commit is contained in:
David Schmenk 2014-12-05 16:19:15 -08:00
parent 4065a14f1c
commit df9f824cc7

View File

@ -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