Jump to content

Address of a variable: Difference between revisions

m
Line 48:
 
6502 assemblers treat a number without a # in front as a memory address.
<lang 6502asm>LDA #$30 ;load into the accumulator the constant value 0x30
<lang 6502asm>
LDA #$30 ;load into the accumulator the constant value 0x30
LDA $30 ;load into the accumulator the value stored at memory address 0x0030.</lang>
 
1,489

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.