Search the web
Sign In
New User? Sign Up
gbadev
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: objcopy / .pool / Saving Methods / addr latch   Message List  
Reply | Forward Message #4122 of 15019 |
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



Sat Jun 2, 2001 4:28 pm

jeff@...
Send Email Send Email

Forward
Message #4122 of 15019 |
Expand Messages Author Sort by Date

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. :-\ ... I...
Jeff Frohwein
jeff@...
Send Email
Jun 2, 2001
4:29 pm

... Why, why, why? The compiler does an excellent job of creating a sane vsync wait loop. Is this really just a matter of doing it because everybody else is,...
Jason Wilkins
fenix@...
Send Email
Jun 2, 2001
8:33 pm

... I modified mine slightly so it waits for 159 then for 160. Otherwise, calling vsync() followed by vsync() the second call might execute while VCOUNT still...
Pete
dooby@...
Send Email
Jun 2, 2001
8:44 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help