From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Software:Doom" |
|---|
| claim | "Each entry of the compiled-in states table (967 entries in the 1.10 source) is 7 x 32-bit: sprite, frame (bit 15 = full bright), tics, action function pointer, next state, misc1, misc2: 28 bytes on a 32-bit build." |
|---|
| scope | | level | "software" |
|---|
| applies_to | "Software:Doom" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "state_t" |
|---|
| size | "0x1C" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "sprite" |
|---|
|
| offset | "0x4" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "frame" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "tics" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "void*" |
|---|
| name | "action" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "nextstate" |
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "misc1" |
|---|
|
| offset | "0x18" |
|---|
| size | 4 |
|---|
| type | "int32_t" |
|---|
| name | "misc2" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "linuxdoom-1.10/info.h state_t and statenum_t (967 entries before NUMSTATES, counted); size assumes 32-bit long and pointers as in the DOS and 1997 Linux builds." |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "state_t" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T03:43:17.431Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T20:32:19.952Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read id-Software/DOOM linuxdoom-1.10/info.h at HEAD a77dfb96: statenum_t lists 967 S_* entries from S_NULL to before NUMSTATES (counted by script); state_t is {spritenum_t sprite; long frame, tics; actionf_t action; statenum_t nextstate; long misc1, misc2} = 7 words. actionf_t is a union of function pointers (d_think.h). p_pspr.h:50 FF_FULLBRIGHT 0x8000 (bit 15). 28 bytes holds only where long and pointers are 32-bit, as the claim says." |
|---|
|
|
|---|