An immediate value is a numerical value written directly in an assembly instruction. Prefix it with # to tell the assembler to use that number rather than treat it as a memory location. section 3.3.1
Load 5 directly
Use lda #$05, ldx #$05, or ldy #$05 to place the value 5 into A, X, or Y. Omitting # changes $05 into a zero-page memory location to read from instead. section 3.3.1
lda #$05 #1 ldx #$05 ldy #$05
This listing shows the same immediate value loaded into all three registers. section 3.3.1
