You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var
r0: word absolute $02;
r1: word absolute $04;
r2: word absolute $06;
...
procedureCopy;
var Src: word absolute $02; // this declarations are only for convenience
Dst: word absolute r1;
beginasm
LDA (Src), Y
STA (Dst), Y
It generates the following code:
$082B B1 02 LDA ($02),Y
$082D 91 00 STA ($00),Y ; this is wrong should be STA ($04), Y
so when constant is used - it works fine, but if a declaration is used, it always generate $00
The text was updated successfully, but these errors were encountered:
Squall-FF8
changed the title
Generating wrong code 2 - absolute values
Generating wrong code 2 - absolute variables
Nov 11, 2022
The snipet is this:
It generates the following code:
so when constant is used - it works fine, but if a declaration is used, it always generate $00
The text was updated successfully, but these errors were encountered: