While debugging my implementation of shiru's new famitone library, I noticed that NESASM assembles this:
Into this:
I'm not sure if NESASM is still under development - hopefully someone knows who to forward this to - thanks!
Code:
FT_TEMP = $00 ;3 bytes in zeropage used by the library as a scratchpad
FT_TEMP_PTR = FT_TEMP ;word
FT_TEMP_PTR_L = FT_TEMP_PTR+0
FT_TEMP_PTR_H = FT_TEMP_PTR+1
lda FT_TEMP_PTR_L
pha
lda FT_TEMP_PTR_H
pha
FT_TEMP_PTR = FT_TEMP ;word
FT_TEMP_PTR_L = FT_TEMP_PTR+0
FT_TEMP_PTR_H = FT_TEMP_PTR+1
lda FT_TEMP_PTR_L
pha
lda FT_TEMP_PTR_H
pha
Into this:
Code:
; note lda absolute where lda zp would suffice
lda $0000
pha
lda $0001
pha
lda $0000
pha
lda $0001
pha
I'm not sure if NESASM is still under development - hopefully someone knows who to forward this to - thanks!