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
  
User name:
Password:
Reply:
 

UserPost
interdpth
Posts: 365/527
Why not poke at the ROM and not the Memory
sloat
Posts: 14/85
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.
Kyoufu Kawa
Posts: 881/2481
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
Posts: 12/85
what's the address it's going to?
Kyoufu Kawa
Posts: 877/2481
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
sloat
Posts: 11/85
should be:

bl label

branch with link. it's the same in either arm or thumb mode.
Kyoufu Kawa
Posts: 874/2481
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?
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.007 seconds.