Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Need a leeeeeetle bit of GBA ASM help | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Kyoufu Kawa
I'm not bad. I'm just drawn that way.
Level: 70

Posts: 874/2481
EXP: 3008456
For next: 7355

Since: 03-19-04
From: Catgirl Central

Since last post: 14 hours
Last activity: 13 hours
Posted on 11-08-04 10:08 PM Link | Quote
I'm this close to a new Pokemon Advance milestone, but need to branch to a certain address (two, actually: draw text and draw window functions). What's the correct DevKitARM THUMB syntax to do this?
sloat

Level: 16

Posts: 11/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-08-04 11:44 PM Link | Quote
should be:

bl label

branch with link. it's the same in either arm or thumb mode.
Kyoufu Kawa
I'm not bad. I'm just drawn that way.
Level: 70

Posts: 877/2481
EXP: 3008456
For next: 7355

Since: 03-19-04
From: Catgirl Central

Since last post: 14 hours
Last activity: 13 hours
Posted on 11-09-04 02:16 PM Link | Quote
I tried that.

Let's say that the function I need to call is at address 0x8123456, including the fact ROM is in the 0x08000000 address space.

I do BL 0x8123456. It compiles nicely, but the end result branches to a completely different place!

Edit: Just for fun, I'm trying to branch to this address: 0x08071f08


(edited by Kawa-oneechan on 11-09-04 01:25 PM)
sloat

Level: 16

Posts: 12/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-09-04 11:59 PM Link | Quote
what's the address it's going to?
Kyoufu Kawa
I'm not bad. I'm just drawn that way.
Level: 70

Posts: 881/2481
EXP: 3008456
For next: 7355

Since: 03-19-04
From: Catgirl Central

Since last post: 14 hours
Last activity: 13 hours
Posted on 11-10-04 10:15 PM Link | Quote
Originally posted by sloat

what's the address it's going to?
Can't remember, but it was NOT the right one. More like something in the 0x08FFFF00 area...
sloat

Level: 16

Posts: 14/85
EXP: 18044
For next: 2212

Since: 05-21-04
From: South Central Delaware

Since last post: 19 days
Last activity: 5 hours
Posted on 11-10-04 11:29 PM Link | Quote
hrm...i dunno why it wouldn't work.
i know the opcode takes a 24-bit address, but you'd think the assembler would take care of that for you.

i guess try
bl 0x071F08

i dunno what else to do. sorry i'm not more help.
interdpth

Rex
Level: 36

Posts: 365/527
EXP: 294398
For next: 13712

Since: 03-20-04

Since last post: 10 days
Last activity: 31 days
Posted on 11-11-04 12:37 PM Link | Quote
Why not poke at the ROM and not the Memory
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Need a leeeeeetle bit of GBA ASM help | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.009 seconds.