Just compare:
Code: Select all
LDA #$6F
STA $6F00
Code: Select all
variable = $6F00
LDA #$6F
STA variable
Code: Select all
LDA #$6F
STA $6F00
Code: Select all
variable = $6F00
LDA #$6F
STA variable
Code: Select all
; +----------------------+
; | General Equates |
; +----------------------+
ACIA: EQU $9000 ; The base address of the 6551 Asynchronous Communications Interface Adapter is $9000.
ACIA_DATA: EQU ACIA+0 ; Its data I/O register is at $9000.
ACIA_STAT: EQU ACIA+1 ; Its status register is at $9001.
ACIA_COMM: EQU ACIA+2 ; Its command register is at $9002.
ACIA_CTRL: EQU ACIA+3 ; Its control register is at $9003.
VIA: EQU $A000 ; The base address of the 6522 Versatile Interface Adapter is $A000.
PB: EQU VIA ; Its port B is at that address.
PA: EQU VIA+1 ; Its port A is at address $A001.
DDRB: EQU VIA+2 ; Its data-direction register for port B is at $A002.
DDRA: EQU VIA+3 ; Its data-direction register for port A is at $A003.
T2CL: EQU VIA+8 ; Its timer-2 counter's low byte is at $A008.
T2CH: EQU VIA+9 ; Its timer-2 counter's high byte is at $A009.
SR: EQU VIA+10 ; The shift register is at $A00A.
ACR: EQU VIA+11 ; The auxiliary control register is at $A00B.
PCR: EQU VIA+12 ; The peripheral control register is at $A00C.
IFR: EQU VIA+13 ; The interrupt flag register is at $A00D.
IER: EQU VIA+14 ; The interrupt enable register is at $A00E.Code: Select all
LDA #$6F
STA variableCode: Select all
PUT $6F, in, variableCode: Select all
COPY $6F, to, variableCode: Select all
PUT2 $6F14, in, variableCode: Select all
PUT $6F, in, variable, using_XCode: Select all
lda Label
mvi A,Value
Code: Select all
ld A,(Label)
ld A,Value
Code: Select all
var1 equ 1234
var2 dw 5678
mov ax, var1
mov bx, var2