Register | Login | |||||
Main
| Memberlist
| Active users
| ACS
| Commons
| Calendar
| Online users Ranks | FAQ | Color Chart | Photo album | IRC Chat |
| |
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
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 |
| ||
Originally posted by sloatCan'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 |
| ||
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 |
| ||
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 | | | |