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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"routine": "<routine>"
},
"name": "pet_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | ||
| x | No | ||
| y | No | ||
| routine | Yes | ||
| session | No | ||
| timeout | No |