Category:6502 Assembly: Difference between revisions

m
m (formatting)
m (→‎Label Arithmetic: formatting)
Line 475:
===Label Arithmetic===
Assemblers offer varying degrees of label arithmetic. The operators +,-,*,or / that are typical in other programming languages can be applied to constants or labels. In addition, most 6502 assemblers offer special operators that are specific to the language. Some assemblers allow the [[C]] standard operators for bitwise operations, bit shifts, etc.
<lang 6502asm>pointer equ $20
pointer equ $20
 
LDA #$20+3 ;load #$23 into the accumulator
1,489

edits