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 - I'll walk you through your first ASM hack! | |
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Rockman

Flurry
Level: 26

Posts: 1/250
EXP: 96387
For next: 5888

Since: 03-17-04

Since last post: 18 days
Last activity: 16 days
Posted on 03-17-04 10:41 PM Link | Quote
My first ROM hacking document covers how to do your first ASM hack. How to give Infinite Lives in Super Mario Bros.

http://www.geocities.com/rockmanx054/asm.txt

Its probably better if you download it so you can use word wrap.

I might make it an html file.


(edited by Rockman on 03-28-04 11:51 PM)
(edited by Cookie Wookie on 03-29-04 01:10 AM)
(edited by Rockman on 03-29-04 03:25 PM)
Elric

Chasupa


Currently Playing:
You Like A Lute.
Level: 40

Posts: 12/687
EXP: 440016
For next: 1293

Since: 03-15-04
From: Melniboné

Since last post: 6 hours
Last activity: 6 hours
Posted on 03-17-04 10:50 PM Link | Quote
Very nice! I've had plenty of experiance with hex, but none with ASM, yet I was able to understand what you were saying.

Thank you. I may never use this, but I saved it, just in case.
Rockman

Flurry
Level: 26

Posts: 2/250
EXP: 96387
For next: 5888

Since: 03-17-04

Since last post: 18 days
Last activity: 16 days
Posted on 03-17-04 10:59 PM Link | Quote
Thank you! As I posted on the TEK Hacks board, I made this document to help newbies begin ASM hacking. I feel bad because some of them really want to learn this stuff.


(edited by Rockman on 03-28-04 11:51 PM)
(edited by Cookie Wookie on 03-29-04 01:11 AM)
(edited by Rockman on 03-29-04 03:25 PM)
Apophis

Red Super Koopa
Level: 45

Posts: 60/882
EXP: 640255
For next: 19909

Since: 03-15-04

Since last post: 15 hours
Last activity: 15 hours
Posted on 03-17-04 11:28 PM Link | Quote
Damn, I wish you had done this years ago when I was learning ASM. Oh well, great job. Plan to do any more ASM tutorials?
Kefka
Indefinitely Unbanned
Level: 81

Posts: 185/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 03-17-04 11:53 PM Link | Quote
Nice. Very nice. Easy for anyone with a little knowledge of ROM hacking to understand. Great job. And it worked for me
Ok Impala!

Buzzy Beetle
Level: 31

Posts: 11/383
EXP: 183070
For next: 2293

Since: 03-16-04
From: The Netherlands

Since last post: 4 days
Last activity: 23 hours
Posted on 03-18-04 12:30 AM Link | Quote
Ok!

This is great! Thanks a lot, I was waiting for such a document!
Xeolord

- B l u e s -
Power Metal > All
Level: 81

Posts: 256/3418
EXP: 4884196
For next: 108653

Since: 03-15-04
From: Yeah

Since last post: 15 hours
Last activity: 15 hours
Posted on 03-18-04 01:04 AM Link | Quote
I don't think I've seen this at TEK, I'm seeing it now though.

Should come in handy.


(edited by Xeogred on 03-17-04 04:04 PM)
Darth Coby

Vire
Dacht je nou echt dat het over was?
Dacht je nou echt dat ik gebroken was? Nee toch?
Nou kijk eens goed op uit je ogen gast.
zonder clic heb je geen kloten tjap... bitch
Level: 55

Posts: 25/1371
EXP: 1240774
For next: 73415

Since: 03-15-04
From: Belgium

Since last post: 2 days
Last activity: 9 hours
Posted on 03-18-04 01:13 AM Link | Quote
Nice document, I've learned this with Metroid though.
Juggling Joker

Boomerang Brother
SMW Hacking Moderator
Yeah, JAMH is still being worked on.
Level: 48

Posts: 12/1033
EXP: 811447
For next: 12096

Since: 03-15-04
From: Wyoming

Since last post: 2 days
Last activity: 3 hours
Posted on 03-18-04 02:14 AM Link | Quote
Dear lord, that was easy to follow. I've looked through the other documents that have been floating around for a while, and they were too technical for a first year CS student like me to grasp totally. Which is exactly why I love my programming class so much, it puts the concepts in terms that I can easily understand. Good job.
Mega-Dog

Level: 20

Posts: 31/139
EXP: 40051
For next: 2388

Since: 03-15-04
From: Minnesota

Since last post: 8 days
Last activity: 4 days
Posted on 03-18-04 03:02 AM Link | Quote
nice...I have been looking for some ASM help so I can learn it sometime...I should read it soon.
Rockman

Flurry
Level: 26

Posts: 3/250
EXP: 96387
For next: 5888

Since: 03-17-04

Since last post: 18 days
Last activity: 16 days
Posted on 03-18-04 11:02 AM Link | Quote
Thank you everyone! I appreciate it. I'm glad the document is helping you out. I do plan to make more. I'm still kind of an ASM rookie myself, but I have learned a lot. I'm off from work tomorrow, so I might make another one. Have fun.


(edited by Rockman on 03-28-04 11:52 PM)
(edited by Cookie Wookie on 03-29-04 01:11 AM)
(edited by Rockman on 03-29-04 03:26 PM)
Blades

Paratroopa
I hack rom; me admin
Level: 21

Posts: 23/151
EXP: 45354
For next: 4589

Since: 03-15-04
From: Pr�vost, Qu�bec, Canada

Since last post: 31 days
Last activity: 5 days
Posted on 03-18-04 11:45 AM Link | Quote
Nice

I'm taking an ASM this semester. So far so good. Maybe I'll be able to add ASM mods in my long forgotten DW hacking ....
frantik

Paragoomba
Level: 15

Posts: 10/66
EXP: 13104
For next: 3280

Since: 03-15-04

Since last post: 400 days
Last activity: 339 days
Posted on 03-18-04 02:42 PM Link | Quote
nice job!

one thing that could make it easier though is instead of searching for the hex values in the rom file, you can go directly to their location by taking the Memory address in the debugger and subtracting $7FF0 (because the rom, minus the $10 byte header, is loaded at $8000 for the NES)

$9069:A9 02 LDA #$02
$906B:8D 5A 07 STA $075A = #$00

$9069 - $7FF0 = $1079

then just go to that location in your hex editor.


(edited by frantik on 03-18-04 05:49 AM)
TFG

Level: 5

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

Since: 03-15-04

Since last post: 269 days
Last activity: 265 days
Posted on 03-18-04 05:34 PM Link | Quote
Originally posted by frantik
nice job!

one thing that could make it easier though is instead of searching for the hex values in the rom file, you can go directly to their location by taking the Memory address in the debugger and subtracting $7FF0 (because the rom, minus the $10 byte header, is loaded at $8000 for the NES)

$9069:A9 02 LDA #$02
$906B:8D 5A 07 STA $075A = #$00

$9069 - $7FF0 = $1079

then just go to that location in your hex editor.


That wouldn't work for every NES game. The resultant rom address would depend on what PRG bank is loaded at the moment you find your instruction/data. SMB, for instance, has two 16K PRG banks, loaded at $8000 and $C000 respectively. Older games, say Donkey Kong, have only 1 16K PRG bank loaded at $C000. Then you have bankswitching games in which the size of the bank and its base address is mapper-dependent. So I'd say that searching for the values might be a better option.
frantik

Paragoomba
Level: 15

Posts: 11/66
EXP: 13104
For next: 3280

Since: 03-15-04

Since last post: 400 days
Last activity: 339 days
Posted on 03-18-04 06:55 PM Link | Quote
my n00bness has been exposed. it's worked for me in SMB but thats the only game with which ive worked
Darth Coby

Vire
Dacht je nou echt dat het over was?
Dacht je nou echt dat ik gebroken was? Nee toch?
Nou kijk eens goed op uit je ogen gast.
zonder clic heb je geen kloten tjap... bitch
Level: 55

Posts: 32/1371
EXP: 1240774
For next: 73415

Since: 03-15-04
From: Belgium

Since last post: 2 days
Last activity: 9 hours
Posted on 03-19-04 02:00 AM Link | Quote
I always just search for the hex string, always works for me.
Kefka
Indefinitely Unbanned
Level: 81

Posts: 249/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 03-19-04 03:28 AM Link | Quote
Um, Googie... wtf has happened to you?!?!
cpubasic13
17 years old now. Time to buy some M rated games by myself!
Level: 54

Posts: 27/1346
EXP: 1206934
For next: 26936

Since: 03-15-04
From: Blame my parents, Eddy

Since last post: 2 days
Last activity: 1 day
Posted on 03-20-04 02:18 AM Link | Quote
Originally posted by Mighty Kefka
Um, Googie... wtf has happened to you?!?!


I think that is the way he normally talks...

Anyway, that was perfect! It tells you the stuff you need to know. For the next tutorial, could you make it to where we learn how to change the number of lives in SMW? I want to make it to where the player has three lives instead of five.
Keitaro

Iron Knuckle
ウラシマ ケイタロウ
Level: 54

Posts: 60/1342
EXP: 1201569
For next: 32301

Since: 03-15-04
From: Hinata, Japan

Since last post: 2 days
Last activity: 2 days
Posted on 03-20-04 03:23 AM Link | Quote
dosn't require ASM knowledge, just knowledge in general. ....good luck.

oh, and EXCELLENT tutorial. You have a knack for explaining this stuff


(edited by MajinBlueDragon on 03-19-04 06:23 PM)
Garmichael

Octoballoon
Level: 21

Posts: 33/166
EXP: 47489
For next: 2454

Since: 06-27-04
From: Bremerton, Wa

Since last post: 316 days
Last activity: 113 days
Posted on 09-09-04 05:44 AM Link | Quote
I hate bumping old old old threads.. but..
The link to tehe tutorial didnt work, and id very much like to read it.

I took a couple quarters of ASM programming, but that was years ago, and I didnt understand it completely.
Pages: 1 2Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Rom Hacking - I'll walk you through your first ASM hack! | |


ABII


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



Page rendered in 0.070 seconds.