Created
May 2, 2016 21:43
-
-
Save cacciatc/9b914b4ef69d590f5d7fe46237afb585 to your computer and use it in GitHub Desktop.
FCEUX Deb Format Codified in BinData
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bookmark < BinData::Record | |
endian :little | |
uint32 :address | |
uint32 :name_length | |
string :name, :read_length => :name_length | |
end | |
class Breakpoint < BinData::Record | |
endian :little | |
uint32 :start_address, :inital_value => 0 | |
uint32 :end_address, :inital_value => 0 | |
uint32 :flags, :inital_value => 0 | |
uint32 :name_length, :inital_value => 0 | |
string :name, :read_length => :name_length | |
uint32 :desc_length, :inital_value => 0 | |
string :desc, :read_length => :desc_length | |
end | |
class DEBFormat < BinData::Record | |
endian :little | |
uint32 :bookmark_count | |
array :bookmarks, :type => Bookmark, :initial_length => :bookmark_count | |
array :breakpoints, :type => Breakpoint, :initial_length => 65 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This targets FCEUX 2.2.2. This format isn't exposed so can change without warning.