Sometimes I accidentally do dumb stuff like Amy did. I suppose it's just
a matter of time before I'm permanently banned I guess. Unfortunately. :-\
--------
Jimmy Mårdell wrote:
> Surely there must be a way for objcopy when importing a binary file
> to specify which section to output to!? I've checked out all possible
> flags and tried out a lot of things, but without success :(
I messed with this for several hours one day and couldn't locate
any flag to do this. :-\
--------
Stefano Canali wrote:
>
> Ok,
> finally I found how to code the VSync routine in ASM
> using ARMGCC.
[snip]
> void VSync()
> {
> asm("
> .THUMB
> .ALIGN 2
> .THUMB_FUNC
> ldr r0, =0x4000006
> scanline_wait:
> ldrh r1, [r0]
> cmp r1, #160
> bne scanline_wait
> .pool
> bx r14
> " :
> /* no output */ :
> /* no input */ :
> "r0" , "r1");
> }
Make sure that you put .pool directives in areas of memory that
will not execute. The compiler will stuff data bytes in this area
to complete your "ldr r0,=" request so your code may crash. Using
.pool after "b" or "bx" can fix this.
http://www.devrs.com/gba/files/gbadevfaqs.php#OptILoad
--------
From: Nick Kraich
> Hi. I was wondering if someone could help me understand the
> different types of memory and methods of saving on the GBA carts.
I have listed the current types here:
http://www.devrs.com/gba/files/gbadevfaqs.php#BackupTypes
--------
Kiasecto wrote:
>
> but the gba carts have an address latch that counts as well,
> i am pretty sure no other console has that.
N64 carts have that feature. Not sure about other consoles though:
http://www.pro.com.ru/
Jeff