mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 06:18:06 +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.
16 lines
460 B
Plaintext
16 lines
460 B
Plaintext
CODE _status
|
|
A 0b11111101 LDri, ( TH output, unselected )
|
|
PAD_CTLPORT OUTiA,
|
|
PAD_D1PORT INAi,
|
|
0x3f ANDi, ( low 6 bits are good )
|
|
H A LDrr, ( let's store them )
|
|
( Start and A are returned when TH is selected, in bits 5 and
|
|
4. Well get them, left-shift them and integrate them to B. )
|
|
A 0b11011101 LDri, ( TH output, selected )
|
|
PAD_CTLPORT OUTiA,
|
|
PAD_D1PORT INAi,
|
|
0b00110000 ANDi,
|
|
A SLA, A SLA, H ORr,
|
|
PUSHA,
|
|
;CODE
|