Check to see if PATH exists and is a supported ROM format. If so, call the appropriate reader and return a ROM instance, otherwise error.
KSYMB (&REST ARGS)
MKSTR (&REST ARGS)
DEFREADER (FORMAT &BODY BODY)
Define a reader for FORMAT. FORMAT should be a pathname-type (i.e. file extension). FORMAT will be added to *valid-formats* if needed. BODY executes inside a WITH-OPEN-FILE binding 'in' to a binary-stream of the ROM. The BODY should return a list like so: (rom-metadata rom-binary).
PARSE-ROM (FORMAT PATHNAME)
Parse the file located at PATHNAME as a ROM of the given FORMAT. FORMAT should be a symbol denoting a file extension. Returns a ROM instance.
The Return a bytevector of the ROM data.
The Return the character/sprite data from the ROM.
SETFROM-CHR (NEW-VALUE OBJECT)
Set the Return the character/sprite data from the ROM.
The Return the file extension of the ROM as a symbol.
The Return a plist of the ROM metadata.
The Return the program data from the ROM.
SETFROM-PRG (NEW-VALUE OBJECT)
Set the Return the program data from the ROM.
A list of ROM formats with implemented readers. Do not manually modify this.
The base condition for all errors in ROMREADER.
Signalled when an appropriate parser method could not be found for the extension of the given ROM pathname.