dosbox_read_memory
Read memory from a DOSBox-X guest to access hidden game state, such as health, money, or active screen. Supports hex, numeric, and text formats for inspecting data.
Instructions
Read bytes from the guest. With no segment this is the game's own data segment and offset may be a profile symbol name; with segment=0x1234 it is any segment in the guest -- another program in a launcher chain, a TSR, an overlay, or the interrupt vector table at segment 0. Choose a format: hex (raw bytes), u8/u16/u32 (little-endian numbers), or text (NUL-terminated string). This is how to read game state -- money, a unit's health, which screen is up -- without any of it being visible on screen.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| format | No | hex | |
| length | No | Bytes to read. | |
| offset | Yes | Offset, or a symbol name when no segment is given. | |
| segment | No | Guest segment; omit for the profile's data segment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||