1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-12-24 15:29:29 +00:00

Fix local record word writes

This commit is contained in:
David Schmenk 2014-11-28 14:54:31 -08:00
parent b90257d222
commit 75d1e1b752

View File

@ -3593,7 +3593,7 @@ def parse_stmnt
// //
// Structure member offset // Structure member offset
// //
if token = DOT_TKN if token == DOT_TKN
elem_type = BYTE_TYPE elem_type = BYTE_TYPE
else else
elem_type = WORD_TYPE elem_type = WORD_TYPE
@ -3607,13 +3607,13 @@ def parse_stmnt
if token == SET_TKN if token == SET_TKN
if !parse_expr; return parse_err(@bad_expr); fin if !parse_expr; return parse_err(@bad_expr); fin
if type & LOCAL_TYPE if type & LOCAL_TYPE
if type & BYTE_TYPE if elem_type == BYTE_TYPE
emit_slb(addr + elem_offset) emit_slb(addr + elem_offset)
else else
emit_slw(addr + elem_offset) emit_slw(addr + elem_offset)
fin fin
else else
if type & BYTE_TYPE if elem_type == BYTE_TYPE
emit_sab(addr, elem_offset) emit_sab(addr, elem_offset)
else else
emit_saw(addr, elem_offset) emit_saw(addr, elem_offset)