The direct addressing mode is used to address operands in the direct page of the memory (location $0000 to $00FF).
Example:
XDEF Entry
MyData: SECTION
data: DS.B 1
MyCode: SECTION
Entry:
main: LDA #$55
STA data
BRA main
In this example, the value $55 is stored in the variable data. The opcode generated for the instruction STA data is two bytes long.