1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-06-11 15:29:34 +00:00
millfork/docs/stdlib/cbm_pet.md

27 lines
760 B
Markdown
Raw Permalink Normal View History

2020-03-31 17:07:35 +00:00
[< back to index](../doc_index.md)
# Commodore PET-oriented modules
## pet_kernal module
The `pet_kernal` module is imported automatically on the PET target.
It provides access to Kernal routines.
TODO
#### asm set_zero is_pet2000()
Returns true if the current machine has the original ROM (usually, the PET 2000 series).
When calling from assembly, the result is stored in the Z flag.
#### asm set_zero is_pet3000()
Returns true if the current machine has the upgraded ROM (usually, the PET 3000 series).
When calling from assembly, the result is stored in the Z flag.
#### asm set_zero is_pet4000()
Returns true if the current machine has the 4.0 ROM (usually, the PET 4000 series).
When calling from assembly, the result is stored in the Z flag.