Users browsing this thread: 1 Guest(s)
Monster level up patch

#18
Posts: 281
Threads: 18
Thanks Received: 13
Thanks Given: 8
Joined: Mar 2014
Reputation: 8
Status
None
(05-24-2016, 10:04 PM)Madsiur Wrote:
(05-24-2016, 12:39 AM)Imzogelmo Wrote: Has anyone ever made a fully-reassemblable file of the game's assembly? I have one working for just the upper C2 bank (you know, the battle engine part). I don't think it would be terribly hard to do the same for the other banks and put each in a file, and use the include function to make a whole project of it.

I can write a console app that strips the XX/XXXX: from each line of the text disassembly,  put a ";" before each comment and put a $db before each data byte of the small tables scattered through the disassemblies. Given we agree on using xkas 0.06 as assembler that leaves only the branchings (BRA, BCC, BEQ, BNE, BCS, etc.) to label manually to have a functional xkas file.
That's a great idea. I think the first two could be accomplished with Notepad++ or any text editing app that enables working in columns, but it's the branches that are the most time consuming. I think those are prime candidates for automation, actually.
Your app could actually start by parsing all branch instructions and their operands to find out the branch address, then finding the line that matches the branch target address, and insert a line with a generated branch label (generated from the target address; just something like "label_CX_XXXX:". Then do a second pass and trim the address and opcode cruft.
Also, xkas does need branch labels since it interprets branch operands as "number of bytes to branch"... but bass (and asar?) correctly interprets them as addresses and converts them. So bass would assemble a label-less file, if I understand correctly. But labels are necessary for the file to be human-readable, so...
I'd do this myself if I could code in anything but 65x asm. Tongue Anyway, I'm glad we're all on the same page about this! I actually opened a github account to host something like this eventually, but of course the wiki here is the perfect place for it.
  Find
Quote  



Messages In This Thread
Monster level up patch - by madsiur - 05-22-2016, 12:17 PM
RE: Monster level up patch - by Lockirby2 - 05-22-2016, 01:44 PM
RE: Monster level up patch - by madsiur - 05-22-2016, 02:13 PM
RE: Monster level up patch - by seibaby - 05-22-2016, 02:46 PM
RE: Monster level up patch - by B-Run - 05-22-2016, 03:09 PM
RE: Monster level up patch - by Gi Nattak - 05-22-2016, 03:50 PM
RE: Monster level up patch - by B-Run - 05-22-2016, 04:07 PM
RE: Monster level up patch - by Imzogelmo - 05-22-2016, 05:29 PM
RE: Monster level up patch - by Gi Nattak - 05-22-2016, 05:40 PM
RE: Monster level up patch - by madsiur - 05-22-2016, 06:04 PM
RE: Monster level up patch - by Imzogelmo - 05-22-2016, 08:07 PM
RE: Monster level up patch - by madsiur - 05-22-2016, 05:48 PM
RE: Monster level up patch - by B-Run - 05-23-2016, 07:52 AM
RE: Monster level up patch - by madsiur - 05-23-2016, 08:34 AM
RE: Monster level up patch - by Imzogelmo - 05-24-2016, 12:39 AM
RE: Monster level up patch - by seibaby - 05-24-2016, 04:37 AM
RE: Monster level up patch - by madsiur - 05-24-2016, 10:04 PM
RE: Monster level up patch - by seibaby - 05-24-2016, 11:38 PM
RE: Monster level up patch - by madsiur - 05-25-2016, 12:04 AM
RE: Monster level up patch - by seibaby - 05-25-2016, 06:38 AM
RE: Monster level up patch - by Imzogelmo - 05-25-2016, 11:30 PM
RE: Monster level up patch - by madsiur - 05-26-2016, 08:19 PM
RE: Monster level up patch - by Imzogelmo - 05-26-2016, 09:23 PM
RE: Monster level up patch - by seibaby - 05-27-2016, 03:11 AM
RE: Monster level up patch - by madsiur - 05-27-2016, 05:37 PM
RE: Monster level up patch - by seibaby - 05-28-2016, 09:41 AM
RE: Monster level up patch - by madsiur - 05-28-2016, 10:09 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)


Theme by Madsiur2017Custom Graphics by JamesWhite