pet_key_hold
Hold a key down for a specified number of game ticks by re-poking the keyboard matrix before each tick, stopping at a designated frame anchor. For BASIC 4 Commodore PET models.
Instructions
Hold KEY down for N game ticks by re-poking $97 before each one,
running to the frame anchor at (label or address executed once per
tick) between pokes; the machine ends STOPPED there. KEY is one
character or 'space'. BASIC 4 models only ($97 holds a matrix index
on BASIC 2).
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": {
"key": "<key>",
"at": "<at>"
},
"name": "pet_key_hold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | ||
| key | Yes | ||
| frames | No | ||
| session | No | ||
| timeout | No |