+  RHDN Forum Archive
|-+  Romhacking
| |-+  ROM Hacking Discussion
| | |-+  So I've gotten spoiled by xkas and WLA.
Pages: [1]
Author Topic: So I've gotten spoiled by xkas and WLA.  (Read 440 times)
Ryusui
Guest
« on: May 17, 2007, 05:26:27 pm »

I finally have my copy of NO$GBA, but for the life of me, I can't figure out one important thing: how the hell do I get "Assemble File" to assemble code into a pre-existing ROM? If it's at all possible?

I tried the ".norewrite" option in my ASM code, but the org directive still gets ignored and everything compiles at the beginning of the ROM, destroying the header and corrupting the file. Tongue

Goldroad follows org directives, but it doesn't seem to have a .norewrite like NO$GBA: the code compiles to the right place, but the end result is a ROM that's blank except for my code.

Am I missing something?
Spikeman
Guest
« Reply #1 on: May 17, 2007, 06:31:30 pm »

I'm not sure how to do it in NO$GBA, but I usually just compile with Goldroad into a file open both the ROM and the file in hex editors and copy paste the contents of the file into the correct spot of the ROM. It's not like Ctrl-G, type in address, Ctrl-V takes a long time. Wink
Kitsune Sniper
Guest
« Reply #2 on: May 17, 2007, 10:04:30 pm »

I thought NO$GBA wouldn't let you compile directly to a ROM...
Ryusui
Guest
« Reply #3 on: May 17, 2007, 10:32:51 pm »

It'll let me assemble a file and then run the resulting file. It almost does what I need, as long as the ASM file and the ROM have the same name (i.e. "sf4e.asm" will assemble over "sf4e.gba"); problem is, it doesn't assemble to where I specify, only to the beginning of the ROM.
KingMike
Guest
« Reply #4 on: May 18, 2007, 08:39:26 am »

Perhaps take that assembler that outputs at the correct position in a blank file, and then use a data copying program (I made one called Data Mover, and I think somebody else made a similar program recently) to copy that over to the real file?
(I just remember I didn't bother to support command-line arguments Embarrassed in my program)
Though I suppose that might be annoying to use two programs for every change.
Ryusui
Guest
« Reply #5 on: May 18, 2007, 01:33:18 pm »

Depends on whether or not I can batch 'em together.
Pages: [1]  


Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC