pet_call
Execute a Commodore PET routine in isolation for unit testing. Set A, X, Y registers, then call and halt at RTS for assertion.
Instructions
JSR one routine in isolation (fake return address on the stack, optional A/X/Y on entry) and stop at its RTS — the unit-test primitive: poke inputs, call, then assert registers/memory. Machine ends STOPPED on success, RUNNING on timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | ||
| x | No | ||
| y | No | ||
| routine | Yes | ||
| session | No | ||
| timeout | No |