pet_key_hold
Simulate holding a key down for a specific number of game ticks on Commodore PET BASIC 4 models by re-poking $97 at each frame anchor, stopping execution at the anchor afterwards.
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | ||
| key | Yes | ||
| frames | No | ||
| session | No | ||
| timeout | No |