From 75d1e1b75271336f1fc0b8326766514dfde78d87 Mon Sep 17 00:00:00 2001 From: David Schmenk Date: Fri, 28 Nov 2014 14:54:31 -0800 Subject: [PATCH] Fix local record word writes --- src/toolsrc/sb.pla | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/toolsrc/sb.pla b/src/toolsrc/sb.pla index 66ae781..50740da 100644 --- a/src/toolsrc/sb.pla +++ b/src/toolsrc/sb.pla @@ -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)