From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Dreamcast IP.BIN" |
|---|
| claim | "makeip writes at IP offset 0x20 four upper-case hex digits of a CRC-16 (polynomial 0x1021, initial value 0xFFFF, MSB first, no final xor) computed over the 16 bytes at offset 0x40 (product number and version)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Dreamcast IP.BIN" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "building an IP.BIN with makeip" |
|---|
| effect | "ip[0x20..0x23] = sprintf("%04X", crc16(ip+0x40, 16))" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "calc_crc loop (shift left, xor 4129 = 0x1021 when bit 15 set, start 0xFFFF) and update_crc" |
|---|
| repo | "https://github.com/KallistiOS/KallistiOS" |
|---|
| commit | "8e704086ecd4990627b85fb4905770dfffe29c00" |
|---|
| path | "utils/makeip/src/crc.c" |
|---|
| lines | "36-63" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Device info CRC" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T09:16:02.946Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T07:18:42.544Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read makeip crc.c at 8e70408: n=0xffff, n^=buf[i]<<8, 8 shifts testing INITIAL_PROGRAM_SIZE (0x8000 in global.h) xor 4129, return n&0xffff; update_crc prints %04X over 16 bytes at ip+0x40 into ip+0x20." |
|---|
|
|
|---|