diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2025-12-15 13:15:19 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2025-12-15 13:18:08 +0100 |
| commit | 932fe3dc341690688b706b70d56336d899d2246f (patch) | |
| tree | 8c03cd3af9718af020ba5c36d8bda6d1f651dcf1 /crates/xa65 | |
| parent | 589a43d6de18099fbd35c328dc244b020f02bc4d (diff) | |
| download | tools.nes-932fe3dc341690688b706b70d56336d899d2246f.tar.gz tools.nes-932fe3dc341690688b706b70d56336d899d2246f.zip | |
Report on multi-byte values on arithmetic evaluation
When evaluating an arithmetic operation, check on whether it
theoretically spans more than one byte, and set it on the resulting
Bundle.size. It's up to the caller to decide on whether that makes sense
or not. This fixes situations in which:
sta $200 + 1
was marked as having 2 bytes for the size as only the "1" was being
considered for the size on this operation. This would then signal the
"sta" evaluation that it was zeropage instead of absolute addressing.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'crates/xa65')
0 files changed, 0 insertions, 0 deletions
