mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-23 21:28:06 +11:00
3fbae082f4
Not worth the trouble. Easier to set jump in binary directly.
14 lines
371 B
Plaintext
14 lines
371 B
Plaintext
: ACIA$
|
|
H@ DUP DUP ACIA( ! ACIAR> !
|
|
1+ ACIAW> ! ( write index starts one position later )
|
|
0x20 ( buffer size ) ALLOT
|
|
H@ ACIA) !
|
|
( setup ACIA
|
|
CR7 (1) - Receive Interrupt enabled
|
|
CR6:5 (00) - RTS low, transmit interrupt disabled.
|
|
CR4:2 (101) - 8 bits + 1 stop bit
|
|
CR1:0 (10) - Counter divide: 64 )
|
|
0b10010110 [ ACIA_CTL LITN ] PC!
|
|
(im1) ;
|
|
|