diff --git a/docs/format.md b/docs/format.md index c38ab98..5aadc32 100644 --- a/docs/format.md +++ b/docs/format.md @@ -2,7 +2,7 @@ The MAME ROM format is not conducive to FPGA use, so we have to package up all of the assets into a new format. This format is designed with space for growth, but it should cover most usecases (i.e. games) already. -First is a config section of `0x80` bytes, followed by two byte interleaved 720x720 images, `0x2DB40` bytes of mask config, and finally the ROM data. +First is a config section of `0x100` bytes, followed by two byte interleaved 720x720 images, `0x2DB40` bytes of mask config, and finally the ROM data. ## Config @@ -13,9 +13,9 @@ First bit is version. Spec V1 is as follows: 0x8: input mapping 40 bytes - [s0 config 4 bytes][s1 config 4 bytes] ... [s7 config 4 bytes][b config 1 byte][ba config 1 byte][acl config 1 byte][grounded port index 1 byte][reserved 4 bytes] 0x30: Start of reserved space - This is reserved for future functionality 0x79: [generator tool commit (ascii) 7 bytes] -0x80: Start of byte interleaved images -0x17BB80: [mask config 0x2DB40 bytes] End of images, start of mask config -0x1A96C0: ROM data +0x100: Start of byte interleaved images +0x2F7700: [mask config 0x2DB40 bytes] End of images, start of mask config +0x325240: ROM data ``` 0000_1101_11 -> 00_0011_0111