On the APU basics page of the NESDev wiki, there is some code that "plays a 400 Hz square wave (50% duty) at maximum volume: "
I know that #% is how you get the literal value for a binary number, and #$ is how you do that for hexadecimal numbers, but I have seen decimal literals represented as e.g. "lda #255". So, my question is, what are the "#>" and "#<" doing here? What are these operators?
Maybe it is an assembler-specific thing, so I am using ca65 if that matters.
Code:
jsr init_apu
lda #<279
sta $4002
lda #>279
sta $4003
lda #%10111111
sta $4000
lda #<279
sta $4002
lda #>279
sta $4003
lda #%10111111
sta $4000
I know that #% is how you get the literal value for a binary number, and #$ is how you do that for hexadecimal numbers, but I have seen decimal literals represented as e.g. "lda #255". So, my question is, what are the "#>" and "#<" doing here? What are these operators?
Maybe it is an assembler-specific thing, so I am using ca65 if that matters.