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
1 user currently in Rom Hacking: hukka | 2 guests
Acmlm's Board - I2 Archive - Rom Hacking - FF1 re-assemblable disassembly | |
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Kefka
Indefinitely Unbanned
Level: 81

Posts: 2182/3392
EXP: 4826208
For next: 166641

Since: 03-15-04
From: Pomona, CALIFORNIA BABY!

Since last post: 4 hours
Last activity: 4 hours
Posted on 05-28-04 11:43 PM Link | Quote
Originally posted by Acmlm


Being able to do this with every ROM would be great


*cough*Hintage in bbit's post*cough
NightHawk

Bob-Omb
Level: 39

Posts: 133/621
EXP: 374743
For next: 30028

Since: 03-26-04
From: Switzerland

Since last post: 432 days
Last activity: 339 days
Posted on 05-29-04 01:11 AM Link | Quote
Originally posted by Disch
Actually... some code still has to be padded with this source, unfortunately. I couldn't get the indirect addressed labels working... so whenever the game did something like

LDA pointer_low
STA $10
LDA pointer_high
STA $11
LDA ($10),Y


I will load from a fixed address (pointer_low and pointer_high). I didn't get those labelled... so if you position of that pointer, it will corrupt some things . I noticed this when removing code in the first half of either bank 1C or 1D... it messes up what graphics are used for the game cursor.

So yeah... some things still need to be padded if changed .
That's basically what I was saying... you were a bit clearer about it though.

Here's a few addresses that get loaded that way, for anyone that's interested (all in bank 1D):
$A011
[these next 3 are the "New Game"/"Continue"/"Response Rate" strings]
$A253
$A25C
$A265
$A8FB
$A977
$A97F
$AC9C

Those are all the ones I got around to changing in that bank.
Parasyte

Bullet Bill
Level: 35

Posts: 19/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 05-29-04 06:13 AM Link | Quote
Originally posted by Disch
Actually... some code still has to be padded with this source, unfortunately. I couldn't get the indirect addressed labels working... so whenever the game did something like

LDA pointer_low
STA $10
LDA pointer_high
STA $11
LDA ($10),Y


I will load from a fixed address (pointer_low and pointer_high). I didn't get those labelled... so if you position of that pointer, it will corrupt some things . I noticed this when removing code in the first half of either bank 1C or 1D... it messes up what graphics are used for the game cursor.

So yeah... some things still need to be padded if changed .


Labels can be used in this case. X816 syntax supports a few wonderful features just for code like this:

LDA <myLabel
STA $10
LDA >myLabel
STA $11
LDA ($10),Y

The use of RAM addresses isn't so important, but they could also be labeled, or otherwise symboled in the source.

EDIT: It may require "LDA #<myLabel" instead. I'm not certain, since I have not tried it. But the "get low byte\high byte" features are documented.


(edited by Parasyte on 05-28-04 09:13 PM)
(edited by Parasyte on 05-28-04 09:17 PM)
NightHawk

Bob-Omb
Level: 39

Posts: 135/621
EXP: 374743
For next: 30028

Since: 03-26-04
From: Switzerland

Since last post: 432 days
Last activity: 339 days
Posted on 05-29-04 03:42 PM Link | Quote
Originally posted by Parasyte
Labels can be used in this case. X816 syntax supports a few wonderful features just for code like this:

LDA STA $10
LDA >myLabel
STA $11
LDA ($10),Y

The use of RAM addresses isn't so important, but they could also be labeled, or otherwise symboled in the source.

EDIT: It may require "LDA #
Yes, it requires the #. If you don't have the #, you should get a warning from the assembler (without the #, it should be interpreted as zero-page addressing).
Acmlm

Torosu
heh
Level: 51

Posts: 640/1173
EXP: 981994
For next: 31944

Since: 03-15-04
From: Somewhere that isn't outside of Sherbrooke, Québec, Canada

Since last post: 39 days
Last activity: 3 hours
Posted on 05-29-04 10:57 PM Link | Quote
Even the old assembler I use (DASM) supports this < and > ... I used it in my NSF code, for example:

doend
LDA #<silence
STA sq1_posL,X
LDA #>silence
STA sq1_posH,X
JMP read.end
...
silence
hex 7F 00 C0
dc.w silence

(part of the code for the "end of track" command in my NSF, makes the track position pointer jump to an infinite silence loop )

So if the "silence" label is at $95C2, you'll get LDA #$C2 and LDA #$95 ... quite useful ... and yep, omitting the # would make it LDA $C2 and LDA $95, zero page
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 831/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 05-30-04 10:45 AM Link | Quote
Hey, what text editor did you use for labelling anyway? I couldn't help noticing that even the smallest ROMs disassembled produce some very big ASM files, and Notepad sucks at big files.
Parasyte

Bullet Bill
Level: 35

Posts: 23/514
EXP: 267348
For next: 12588

Since: 05-25-04

Since last post: 104 days
Last activity: 32 days
Posted on 05-30-04 12:53 PM Link | Quote
I do not know if he uses it, but I suggest TextPad. It's what I use for C, PHP, HTML, assembly, text ... EVERYTHING!


(edited by Parasyte on 05-30-04 03:54 AM)
Ultima4701
Newcomer
Level: 5

Posts: 5/7
EXP: 452
For next: 77

Since: 03-15-04
From: Florida

Since last post: 492 days
Last activity: 339 days
Posted on 05-30-04 05:47 PM Link | Quote
ConTEXT is a very good freeware text editor.
Gavin

Fuzzy
Rhinoceruses don't play games. They fucking charge your ass.
Level: 43

Posts: 60/799
EXP: 551711
For next: 13335

Since: 03-15-04
From: IL, USA

Since last post: 13 hours
Last activity: 13 hours
Posted on 05-31-04 01:56 AM Link | Quote
somewhat off-topic: tried both ConTEXT and TextPad.. .they are both excellent, but i happen to find i like TextPad's setup a little better. Besides, i just found a 6502.syn syntax file on some random website, so now i can do all my fun stuff in highlighted goodness
Acmlm

Torosu
heh
Level: 51

Posts: 649/1173
EXP: 981994
For next: 31944

Since: 03-15-04
From: Somewhere that isn't outside of Sherbrooke, Québec, Canada

Since last post: 39 days
Last activity: 3 hours
Posted on 05-31-04 03:50 AM Link | Quote
I'm using EditPlus, and also got syntax highlighting for 6502 (although pretty basic, but I can improve it)

Looks like this for me

But this one is shareware
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Rom Hacking - FF1 re-assemblable disassembly | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.015 seconds.