Skip to content

Padding

Mark Street edited this page Jan 5, 2021 · 4 revisions

chunk0 padding is not all zeroes, creating this page to try to figure out if there is any logic to it.

us

us ROM copies 4 bytes from the compressed code section into padding.

mark@DESKTOP-AOUBO9E:~/conker/game/bin$ xxd code_padding.bin | head
00000000: 8006 0013 0000 0000 0000 0000 0000 0000  ................
00000010: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000020: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000080: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000090: 0000 0000 0000 0000 0000 0000 0000 0000  ................

mark@DESKTOP-AOUBO9E:~/conker/game/bin$ xxd ../rzip/code/code.bin | tail
00144660: 505e 072a ef00 9477 51f4 6290 50ec 01e2  P^.*...wQ.b.P...
00144670: b5ff ff8b 2ef8 f799 0104 0e38 a832 3cf0  ...........8.2<.
00144680: 5065 3c90 a06a b094 8151 6001 8330 4858  Pe<..j...Q`..0HX
00144690: 8597 8113 681e c351 3506 06a0 790d 40f3  ....h..Q5...y.@.
001446a0: 58dc 189c d88f 6a01 692e a7c6 a76c 0c0c  X.....j.i....l..
001446b0: 4fb9 1858 1439 1838 1435 81b8 0788 c1e6  O..X.9.8.5......
001446c0: feff 04d2 2fc0 c0c0 0335 4708 c91c 86a7  ..../....5G.....
001446d0: 2c0c 0c40 3d2c 403d 2c40 3d2c 503d dfc1  ,..@=,@=,@=,P=..
001446e0: 6e01 ba43 f10c 8307 4ccf 5315 a05a 5475  n..C....L.S..ZTu
001446f0: bf40 cad4 f732 5c60 7ec0 c0c1 8006 0013  .@...2\`~.......

eu

eu ROM copies 2 bytes from the compressed code section into padding.

$ xxd code_padding.bin | head
00000000: e737 0000 0000 0000 0000 0000 0000 0000  .7..............
00000010: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000020: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000030: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000040: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000050: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000080: 0000 0000 0000 0000 0000 0000 0000 0000  ................
00000090: 0000 0000 0000 0000 0000 0000 0000 0000  ................

$ xxd ../rzip/code/code.bin | tail
00143c10: c5f1 a8e4 768e 33bf 6fef 2c8e 77e5 5ee2  ....v.3.o.,.w.^.
00143c20: 78a7 e476 8eb3 bd6f ef26 8e27 72ff 703c  x..v...o.&.'r.p<
00143c30: 463c 69ac 52b5 7188 e778 345a 18fe fa61  F<i.R.q..x4Z...a
00143c40: 17fc 340e e87c 25a8 9c6e 04d1 3baa 7843  ..4..|%..n..;.xC
00143c50: bac7 dd38 5366 918f e437 4286 7c26 a527  ...8Sf...7B.|&.'
00143c60: 3338 cb8c fd3d 318d 3599 23d3 c0b9 da78  38...=1.5.#....x
00143c70: 80e7 108f cd3b face 3e7e 6bb8 92e7 aeca  .....;..>~k.....
00143c80: 4325 ce6f 3806 8e81 63c4 f969 c782 7134  C%.o8...c..i..q4
00143c90: bed1 caa5 5336 c1fe cd5d 8ccf 493a bb7e  ....S6...]..I:.~
00143ca0: 76f2 e737                                v..7

Clone this wiki locally