mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 22:38:09 +11:00
7001446212
Recipes contain bits and pieces of hardware-related knowledge, but these bits feel sparse. I've been wanting to consolidate hardware- related documentation for a while, but always fell at odds with the recipes organisation. We don't have recipes anymore, just a /doc/hw section that contains hardware-related documentation which often translate to precise instructions to run Collapse OS on a specific machine. With this new organisation, I hope to end up with a better, more solid documentation.
13 lines
429 B
Plaintext
13 lines
429 B
Plaintext
: _ [ SIO_ACTL LITN ] PC! ;
|
|
: SIO$
|
|
H@ [ SIO( LITN ] ! 0 [ SIOR> LITN ] C!
|
|
1 [ SIOW> LITN ] C! ( write index starts one pos later )
|
|
[ SIO_BUFSZ LITN ] ALLOT
|
|
0x18 _ ( CMD3 )
|
|
0x24 _ ( CMD2/PTR4 ) 0b11000100 _ ( WR4/64x/1stop/nopar )
|
|
0x03 _ ( PTR3 ) 0b11000001 _ ( WR3/RXen/8char )
|
|
0x05 _ ( PTR5 ) 0b01101000 _ ( WR5/TXen/8char )
|
|
0x21 _ ( CMD2/PTR1 ) 0b00011000 _ ( WR1/Rx INT all chars )
|
|
(im1)
|
|
;
|