mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 18:52:28 +00:00
[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:
parent
e20aed5c5a
commit
74d00d0a3c
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue