dosbox_find_cave
Locate zero-filled runs in a guest code segment large enough for a trace cave, sorted longest first, so you can choose an offset for installing a trace hook.
Instructions
Find runs of zero in a guest code segment long enough to hold a trace cave. Padding between routines is the usual supply. Longest first; pass one of these offsets to dosbox_install_trace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | ||
| segment | Yes | Guest code segment, e.g. 0x1000. | |
| bytes_needed | No | How much room the cave needs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||