RATS

From SMWiki

Jump to: navigation, search

The ROM Allocation Tag System (RATS) is used to protect parts of the expanded area of the SMW ROM from being overwritten by Lunar Magic and other programs.

RATS was created by FuSoYa and was introduced in Lunar Magic 1.33.

[edit] RAT tag

A RAT tag is an 8-byte piece of data used to mark an area as used. Its format is as follows:

S T A R ssssssss SSSSSSSS cccccccc CCCCCCCC

"STAR"              ASCII string indicating the start of a RAT tag.
SSSSSSSS ssssssss   Amount of bytes to protect - 1 (not counting the RAT tag).
                    Stored in little endian.
CCCCCCCC cccccccc   0xFFFF - (Amount of bytes - 1). 
                    Stored in little endian.
Personal tools