#128315 - kusma - Thu May 10, 2007 3:20 pm
I've been looking at porting Goomba to the GNU toolchains, and I'm currently having issues with the assembly-sources using structures. I can't seem to find any easy way of converting those to GNU as. Does anyone know any tricks I could use? The syntax of the structures in armasm that I'm trying to rewrite is the following:
Where gb_zpage is defined as this:
So, if I understand this correctly, something like this:
would bascily do:
Right? Is there any way of doing things like this in GNU as?
Code: |
MAP 0,gb_zpage
xgb_ram # 0x2000 xgb_hram # 0x80 chr_decode # 0x400 oam_buffer1 # 0x200 oam_buffer2 # 0x200 oam_buffer3 # 0x200 |
Where gb_zpage is defined as this:
Code: |
gb_zpage RN r11 ;=XGB_RAM
|
So, if I understand this correctly, something like this:
Code: |
adr r2,chr_decode |
would bascily do:
Code: |
adr r2, [r11, 0x400] |
Right? Is there any way of doing things like this in GNU as?