set_breakpoint
Set a breakpoint in a ZEsarUX emulator slot using a raw expression or compiled from type and address. Optionally configure action and pass count to control debugging.
Instructions
Set a breakpoint in a numbered slot (ZRCP set-breakpoint). A breakpoint is an EXPRESSION condition that fires when non-zero. Provide a raw "condition" (e.g. "PC=8000", "MWA=16384", "A=0 and BC<33"), or provide "type"+"address" to have it compiled. Memory read/write use set-membreakpoint; execute uses PC=addr; port read/write use PRA/PWA. Empty condition disables the slot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | Breakpoint slot index (required by ZRCP) | |
| condition | No | Raw expression condition (takes precedence over type/address). Numbers default decimal; suffix H=hex. | |
| address | No | Address (hex) used when compiling from "type" (e.g. "8000"). For port_read/port_write this is the port (hex). | |
| type | No | Convenience kind (ignored if "condition" is given): execute→PC=addr; read/write/readwrite→set-membreakpoint type 1/2/3; port_read→PRA; port_write→PWA; disabled→empty. | |
| enabled | No | If false, disable-breakpoint is issued for the slot after setting | |
| action | No | Action when fired (ZRCP set-breakpointaction). none=just break. | |
| pass_count | No | Fire only after N hits (ZRCP set-breakpointpasscount) |