From b4a41e772828ce945a9c6fad416160f95878b64a Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Mon, 8 Dec 2014 13:32:32 -0800 Subject: [PATCH] Fix writing to byte variables in sandbox. Init initial plvm02 autorun string. --- SANDBOX.PO | Bin 143360 -> 143360 bytes src/toolsrc/sb.pla | 4 ++-- src/vmsrc/plvm02.s | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SANDBOX.PO b/SANDBOX.PO index e510d2e96c5973091db3e7961b922fedd92d5bd1..08b6e036c4af52b0354459cd4b8e8494d322501d 100644 GIT binary patch delta 234 zcmZp8z|ru4V?#QNz-4ZRGFet`4u;1J3LUc2ypzjWyjVJ9#dtR#Wm&|?_;qsz+iY*v zMGSra87DIb`7#Pl4h%A7{4}{e$lT_y!UmgF^k7zi$2&#K^cQgokM}d)ODwri5(?jFujZBGau_ zFv>HEY>!&O7#bwt6dB^G5TT- zLftpvY26E#0KHb#e7>nmWD6X6ku1Z9enM8lU)Y?z`o+@$qM`G^u<04fBy&9)<)-;s zlFtUf^<(`|vlPw)?w+I8pv diff --git a/src/toolsrc/sb.pla b/src/toolsrc/sb.pla index 65757cd..e518a83 100644 --- a/src/toolsrc/sb.pla +++ b/src/toolsrc/sb.pla @@ -3605,13 +3605,13 @@ def parse_stmnt if token == SET_TKN if !parse_expr; return parse_err(@bad_expr); fin if type & LOCAL_TYPE - if elem_type == BYTE_TYPE + if elem_type & BYTE_TYPE emit_slb(addr + elem_offset) else emit_slw(addr + elem_offset) fin else - if elem_type == BYTE_TYPE + if elem_type & BYTE_TYPE emit_sab(addr, elem_offset) else emit_saw(addr, elem_offset) diff --git a/src/vmsrc/plvm02.s b/src/vmsrc/plvm02.s index baf18b6..86a0298 100644 --- a/src/vmsrc/plvm02.s +++ b/src/vmsrc/plvm02.s @@ -57,6 +57,8 @@ INTERP = $03D0 * = $2000 LDX #$FE TXS + LDX #$00 + STX $01FF ;* ;* DISCONNECT /RAM ;*