mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-31 07:08:06 +11:00
16 lines
462 B
Plaintext
16 lines
462 B
Plaintext
|
CODE _status
|
||
|
A 0b11111101 LDrn, ( TH output, unselected )
|
||
|
PAD_CTLPORT OUTnA,
|
||
|
PAD_D1PORT INAn,
|
||
|
0x3f ANDn, ( low 6 bits are good )
|
||
|
B 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 LDrn, ( TH output, selected )
|
||
|
PAD_CTLPORT OUTnA,
|
||
|
PAD_D1PORT INAn,
|
||
|
0b00110000 ANDn,
|
||
|
A SLAr, A SLAr, B ORr,
|
||
|
PUSHA,
|
||
|
;CODE
|