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 Super Mario World hacking: labmaster | 3 guests
Acmlm's Board - I2 Archive - Super Mario World hacking - What's Bank number? | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
Jam1492

Micro-Goomba
Level: 5

Posts: 1/13
EXP: 395
For next: 134

Since: 08-23-05

Since last post: 57 days
Last activity: 5 days
Posted on 08-23-05 09:52 AM Link | Quote
Bank number?
Address within Bank?

What are those?

and

How can I patch .bin file into my rom?

Thanks.


(edited by Jam1492 on 08-23-05 01:17 AM)
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: 6502/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 08-23-05 10:49 AM Link | Quote
A ROM bank is 37,268 bytes of ROM. 0x000200 - 0x0081FF is bank 0, 0x008200 - 0x0101FF is bank 1, and so on. (The first 0x200 bytes are the ROM header, which isn't actually used by the game, so bank 0 is really from 0x000000 to 0x007FFF, and banke 1 from 0x008000 to 0x00FFFF, as far as the game is concerned. You can even just delete the first 0x200 bytes, but LM won't open the ROM if you do; just add a bunch of zeros back at the beginning if you need it back.)

To 'patch' a .bin file into the ROM, generally you just open the ROM and the file in a hex editor, and copy everything from the file into an unused part of the ROM. (Unused areas will be filled with 00, but beware that not all areas filled with 00 are unused! Anything after 0x80200 should be fine, but put a RATS tag in so it doesn't get deleted.) Though if it's a custom block, you need to use the block inserter program instead.
Jam1492

Micro-Goomba
Level: 5

Posts: 2/13
EXP: 395
For next: 134

Since: 08-23-05

Since last post: 57 days
Last activity: 5 days
Posted on 08-23-05 11:19 AM Link | Quote
thank you very much. But I don't know RATS tag..
You can tell about RATS tag for me?
sorry.
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: 6507/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 08-23-05 11:23 AM Link | Quote
*copies from Lunar Compress docs*

The format of a RAT tag is as follows:

S T A R ssssssss SSSSSSSS cccccccc CCCCCCCC (8 bytes)

"STAR" Tag identifier, which is the word "RATS" reversed in
all-caps.
SSSSSSSS ssssssss Size-1 of data, 16 bit, little endian. It does not
include the size of the RAT tag itself.
CCCCCCCC cccccccc Inverse of size-1, 16 bit, little endian.

Min/Max size allowed: 1-0x10000


When LC is searching for free space, it still checks for consecutive zeros
but also checks for RATs. When LC comes across the tag identifier, it
first ensures that the size and inverse fields will give 0xFFFF when ORed.
If they don't, the tag is considered invalid and is ignored. If they do,
LC automatically jumps over the area protected by the tag and continues
scanning.

(Lunar Compress V1.50)
Ragnara

Octorok
Level: 7

Posts: 4/28
EXP: 1265
For next: 183

Since: 08-21-05
From: Germany

Since last post: 17 days
Last activity: 13 hours
Posted on 08-23-05 11:53 PM Link | Quote
Just being curious, what happens if I take hex FFFFFFFF FFFFFFFF as inverted size? Anything ORed to this would have all bits set again. Would LC mind?
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: 6521/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 08-24-05 12:04 AM Link | Quote
Hm... Interesting observation. You're supposed to use the actual inverted size, but it looks like that would work too. (But only 0xFFFF, it's a 16-bit value. )
Sukasa

Boomboom
Error 349857348734534: The system experienced an error.
Level: 57

Posts: 1719/1981
EXP: 1446921
For next: 39007

Since: 02-06-05
From: *Shrug*

Since last post: 6 days
Last activity: 1 day
Posted on 08-24-05 12:33 AM Link | Quote
Interesting. Where LC OR's though, it should really XOR. Then it would have to be correct.
FuSoYa
Defender of Relm
Level: 26

Posts: 238/255
EXP: 99529
For next: 2746

Since: 03-15-04
From: Moon

Since last post: 7 days
Last activity: 7 hours
Posted on 08-27-05 11:58 AM Link | Quote
Agreed. I'm not sure why I decided to use OR over XOR...

Well, it's easy enough to change for the next update.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Super Mario World hacking - What's Bank number? | |


ABII


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



Page rendered in 0.020 seconds.