FCEUX Debug File Format

Just in case anybody else ever needs to know the format for FCEUX’s debugger’s config files (.deb), here it is, based on the source code for version 2.1.5 (found in \src\drivers\win\pref.cpp) and the contents of actual .deb files.

This is not an open or publicly documented format and may be different for different versions. Some of the data types used in the source code are platform-dependant. int, uint, and ushort are implementation-defined and may vary in size. Types with an asterix (*) appended are not confirmed, and are listed as the type they appear to be on a 32-bit platform.

// FCEUX 2.1.5 .DEB FILE FORMAT

// For x86, int is 32 bits, short is 16 bits, byte is 8 bits.
// uint = unsigned int
// ushort = unsigned short
// uint16 = 16-bit unsigned integer
// byte = 8-bit integer

// Debugger Window
byte*           SymbolicDebugEnabled
uint            BookmarkCount
ushort[]        Bookmarks

BreakPoint[65] {
    uint16*         AddressStart
    uint16*         AddressEnd
    byte*           Flags

    uint            ConditionLen
    char[]          Condition
    uint            DescripLen
    char[]          Descrip
}

// Hex Editor Window
int*            HexBookmarkCount
HexBookmark[] {
    uint*           Address
    uint            DescripLen
    char[]          Descrip
}

Leave a Reply

Your email address will not be published.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">