mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-17 09:28:06 +11:00
9424770caa
Driver configuration don't need their own words at runtime, we only need to compile them as literals when compiling words. Now that we have this "declaration blocks" pattern emerging, it seems like a good idea to take advantage of this in drivers, both for simplifying the xcomp unit and to make final binary slimmer.
13 lines
490 B
Plaintext
13 lines
490 B
Plaintext
ACIA driver
|
|
|
|
Manage I/O from an asynchronous communication interface adapter
|
|
(ACIA). provides "(emit)" to put c char on the ACIA as well as
|
|
an input buffer from which a provided "(key)" reads. This driver
|
|
installs an interrupt handler at RST38 to handle RX.
|
|
|
|
To use, begin by loading declarations (B582) before xcomp is
|
|
loaded. These declarations provide default values for ports and
|
|
memory offsets that you can override. See B582.
|
|
|
|
Then, in the driver part, load range 583-588.
|