1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-12-25 06:29:21 +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
//
if token = DOT_TKN
if token == DOT_TKN
elem_type = BYTE_TYPE
else
elem_type = WORD_TYPE
@ -3607,13 +3607,13 @@ def parse_stmnt
if token == SET_TKN
if !parse_expr; return parse_err(@bad_expr); fin
if type & LOCAL_TYPE
if type & BYTE_TYPE
if elem_type == BYTE_TYPE
emit_slb(addr + elem_offset)
else
emit_slw(addr + elem_offset)
fin
else
if type & BYTE_TYPE
if elem_type == BYTE_TYPE
emit_sab(addr, elem_offset)
else
emit_saw(addr, elem_offset)