#16468 - Chong Li - Tue Feb 17, 2004 2:41 pm
Hello.
I am attempting to port loopy and FluBBa's wonderful PocketNES over to GCC/AS. With the help of regular expression find/replace, I've been able to convert a large number of SDT directives to ones understandable by AS. The one that contiunes to elude me is the MAP directive.
A snippet of code from PocketNES99Src/equates.h:
*Note: nes_zpage is an alias for r11, specified earlier in the file.
How do I create these symbols to point to offsets of the register nes_zpage? Or does AS have a directive equivalent to MAP that I am not aware of?
Thanks,
Chong Li
I am attempting to port loopy and FluBBa's wonderful PocketNES over to GCC/AS. With the help of regular expression find/replace, I've been able to convert a large number of SDT directives to ones understandable by AS. The one that contiunes to elude me is the MAP directive.
A snippet of code from PocketNES99Src/equates.h:
Code: |
MAP 0,nes_zpage
nes_ram # 0x800 nes_sram # 0x2000 chr_decode # 0x400 oam_buffer1 # 0x200 oam_buffer2 # 0x200 oam_buffer3 # 0x200 yscale_extra # 0x50 @(240-160) extra 80 is for scrolling unscaled sprites yscale_lookup # 0x100 @sprite Y LUT |
*Note: nes_zpage is an alias for r11, specified earlier in the file.
How do I create these symbols to point to offsets of the register nes_zpage? Or does AS have a directive equivalent to MAP that I am not aware of?
Thanks,
Chong Li