[qfcc] Update store statements for change in B mode

Ruamoko store instructions are now always indexed and thus need a 0 for
unindexed references, but v6 stores still have no-index addressing.
This commit is contained in:
Bill Currie 2022-01-20 15:30:37 +09:00
parent e20aed5c5a
commit 74d00d0a3c

View file

@ -948,7 +948,13 @@ dereference_dst:
dst_expr->e.address.offset, &ofs);
} else {
sblock = statement_subexpr (sblock, dst_expr, &dst);
ofs = 0;
if (options.code.progsversion < PROG_VERSION) {
// v6 and v6p stores don't need an index
ofs = 0;
} else {
// ruamoko stores do need an index
ofs = short_operand (0, e);
}
}
type = st_ptrassign;
}