(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-14-24 04:05 PM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - ARM7 Help New poll | |
Add to favorites | Next newer thread | Next older thread
User Post
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 01-19-07 01:35 AM Link | Quote
Ok, i'm trying to do an Assembly hack, for this game i'm working on.
The assembler i'm trying to use it GoldRoad 1.7

It's fine except it won't recognize push opcodes or LSL, or ASR's or Pop's I like to leave as much of the code I use intact.

And I tried the assembler from devkitpro. Code was completely different from my disassembly.

So anyone mind helping me out and telling me what I should try or something?

Thanks abunch!
Zeld

Red Paragoomba








Since: 11-05-06

Last post: 6298 days
Last view: 6295 days
Posted on 01-20-07 04:47 PM Link | Quote
Ouch. This is another reason I fail at using an assembler. I continue scripting stuff by hand...it actually doesn't slow me down much at all, considering how well I've memorized most of the map of opcode/operand bits for thumb opcodes. Every now and then I'll forget a little and type in a 2 to use register 2 as an operand and end up using register 4, but you only have to type 4 numbers to type a whole opcode (assuming you're working in thumb, which you probably are most, if not all of the time). Can't be that much worse than getting the assembler to work, can it?

I haven't even gotten along with goldroad long enough for it to show me that it knows what "add r0, r0, r1" means.

Also, that thing about devkit pro making the assembly completely different...what was different about it? Was it like, "devkit tried to optimize my assembly for me" different or "what the hell is this?" different?
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 01-20-07 07:18 PM Link | Quote
Actually I found out how to work with Devkit Pro and with a simple batch script. I got it to compile my code

Although I really wish I new how to manually decode a BL instruction to get the offset it points too to change it

but if you want to use an assembler like devkitpro

here's my batch script


arm-eabi-as.exe -g -mcpu=arm7tdmi -mthumb-interwork -o file.elf file.s

arm-eabi-objcopy.exe -O binary -S file.elf file.bin

pause
Dwedit

Rope
フクト オン フォニクス








Since: 11-17-05
From: Chicago!

Last post: 6296 days
Last view: 6295 days
Posted on 01-20-07 08:11 PM Link | Quote
NO$GBA can do arm reassembling, but it's not free.
interdpth

Mole
MZM rapist


 





Since: 11-18-05

Last post: 6294 days
Last view: 6294 days
Posted on 01-21-07 05:02 AM Link | Quote
I have the $15 dollar version of no$gba I bought it myself, but alas after it reassembles it won't save a ROM to disk
Add to favorites | Next newer thread | Next older thread
Acmlm's Board - I3 Archive - Programming - ARM7 Help |


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.010 seconds; used 367.90 kB (max 442.91 kB)