Skip to content

Instantly share code, notes, and snippets.

@cacciatc
Created May 2, 2016 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cacciatc/9b914b4ef69d590f5d7fe46237afb585 to your computer and use it in GitHub Desktop.
Save cacciatc/9b914b4ef69d590f5d7fe46237afb585 to your computer and use it in GitHub Desktop.
FCEUX Deb Format Codified in BinData
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
@cacciatc
Copy link
Author

cacciatc commented May 2, 2016

This targets FCEUX 2.2.2. This format isn't exposed so can change without warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment