From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:GBS" |
|---|
| claim | "The GBS header is 0x70 bytes: tag 'GBS', version, track count, first track, load/init/play addresses (u16 LE), stack pointer, timer modulo, timer control, then three 32-byte strings (game, author, copyright)." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:GBS" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "gbs_header" |
|---|
| size | "0x70" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 3 |
|---|
| type | "char[3]" |
|---|
| name | "tag" |
|---|
| notes | "GBS" |
|---|
|
| offset | "0x3" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "vers" |
|---|
| notes | "1" |
|---|
|
| offset | "0x4" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "track_count" |
|---|
|
| offset | "0x5" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "first_track" |
|---|
|
| offset | "0x6" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "load_addr" |
|---|
|
| offset | "0x8" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "init_addr" |
|---|
|
| offset | "0xA" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "play_addr" |
|---|
|
| offset | "0xC" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "stack_ptr" |
|---|
|
| offset | "0xE" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "timer_modulo" |
|---|
|
| offset | "0xF" |
|---|
| size | 1 |
|---|
| type | "uint8_t" |
|---|
| name | "timer_mode" |
|---|
|
| offset | "0x10" |
|---|
| size | 32 |
|---|
| type | "char[32]" |
|---|
| name | "game" |
|---|
|
| offset | "0x30" |
|---|
| size | 32 |
|---|
| type | "char[32]" |
|---|
| name | "author" |
|---|
|
| offset | "0x50" |
|---|
| size | 32 |
|---|
| type | "char[32]" |
|---|
| name | "copyright" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "header_t and header_size = 112" |
|---|
| repo | "libgme/game-music-emu" |
|---|
| commit | "f68963b1de0633149b05732113d3c3113c6f63a1" |
|---|
| path | "gme/Gbs_Emu.h" |
|---|
| lines | "17-33" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "GBS header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:08:00.983Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T01:30:47.009Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read libgme Gbs_Emu.h at f68963b: header_size = 112, header_t field order and sizes (3+1+1+1+2*4+1+1+3*32) match every offset." |
|---|
|
|
|---|