Long literals, with continuations: Difference between revisions
Long literals, with continuations (view source)
Revision as of 11:18, 20 September 2021
, 2 years ago→{{header|6502 Assembly}}: removed trailing spaces
Puppydrum64 (talk | contribs) m (→{{header|6502 Assembly}}: typo fix) |
Puppydrum64 (talk | contribs) m (→{{header|6502 Assembly}}: removed trailing spaces) |
||
Line 108:
db 0
hydrogen:
db "hydrogen
helium:
db "helium
lithium:
db "lithium
;etc.
Line 119:
Finally:
db "elements, the last is
ElementCount equ (Elements_End-Elements)/2
; a constant value that cannot change at runtime.
Line 147:
JSR PrintString
LDA #$20 ;ASCII for spacebar
JSR PrintChar
LDA ElementCount
|