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
Assuming that @-and @+ refer to the (closest) label before or after the reference, and that any optional number refers to the number of labels before or after, I have the following questions:
Why is bne @- referring to the label next to @ dex and not @ lda #0
Why is bne @- and bne @-1 not the same?
I would assume that @ dex is two labels before bne @-1, so why is it just -1 and not -2?
How would I address @ lda #0 using anonymous labels when calling from bne @- or bne @-1?
Thank you!
The text was updated successfully, but these errors were encountered:
I have a problem understanding anonymous labels, at least by the way they are explained here:
https://mads.atari8.info/mads_eng.html#labels_anm
The example says:
Assuming that
@-
and@+
refer to the (closest) label before or after the reference, and that any optional number refers to the number of labels before or after, I have the following questions:bne @-
referring to the label next to@ dex
and not@ lda #0
bne @-
andbne @-1
not the same?@ dex
is two labels beforebne @-1
, so why is it just-1
and not-2
?@ lda #0
using anonymous labels when calling frombne @-
orbne @-1
?Thank you!
The text was updated successfully, but these errors were encountered: