1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-26 12:29:26 +00:00
millfork/docs/stdlib/c64.md

65 lines
1.4 KiB
Markdown
Raw Normal View History

2019-07-15 12:21:50 +00:00
[< back to index](../doc_index.md)
# Commodore 64-oriented modules
2019-01-05 00:19:14 +00:00
## c64_kernal module
The `c64_kernal` module is imported automatically on the C64 target.
2019-01-05 00:19:14 +00:00
It provides access to Kernal routines, so it requires the Kernal ROM to be enabled.
TODO
2018-12-17 16:18:29 +00:00
## c64_basic module
2019-01-05 00:19:14 +00:00
The `c64_basic` module provides access to Kernal routines, so it requires the Basic ROM to be enabled.
In particular, this means that it will not work on cartridge targets without extra preparations.
TODO
2018-12-17 16:18:29 +00:00
## c64_hardware
TODO
2019-06-05 09:46:06 +00:00
## c1531
2020-03-31 17:07:35 +00:00
The `c1531` module implements a Commodore 1531 proportional mouse driver compatible with the [`mouse` module](./mouse.md).
2018-12-17 16:18:29 +00:00
#### `void c1531_mouse()`
Updates the state of the mouse.
2019-06-05 09:46:06 +00:00
## c1531_default
2018-12-17 16:18:29 +00:00
Defines the `c1531` module as the default module for reading mouse input.
#### `alias read_mouse = c1531_mouse`
## c64_joy
2020-03-31 17:07:35 +00:00
The `c64_joy` module implements a joystick driver compatible with the [`joy` module](./joy.md).
2018-12-17 16:18:29 +00:00
#### `void read_joy2()`
Reads the joystick from the port 2.
#### `void read_joy1()`
Reads the joystick from the port 1.
#### `void read_also_joy2()`
Reads the joystick from the port 2 and adds its readouts to the current readouts.
#### `void read_also_joy1()`
Reads the joystick from the port 1 and adds its readouts to the current readouts.
## c64_joy2_default
Defines the joystick in port 2 as the default joystick.
#### `alias read_joy = read_joy2`