2020-05-15 15:41:06 -04:00
|
|
|
CODE _status
|
2020-06-27 22:01:56 -04:00
|
|
|
A 0b11111101 LDri, ( TH output, unselected )
|
|
|
|
PAD_CTLPORT OUTiA,
|
|
|
|
PAD_D1PORT INAi,
|
|
|
|
0x3f ANDi, ( low 6 bits are good )
|
2020-05-15 15:41:06 -04:00
|
|
|
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. )
|
2020-06-27 22:01:56 -04:00
|
|
|
A 0b11011101 LDri, ( TH output, selected )
|
|
|
|
PAD_CTLPORT OUTiA,
|
|
|
|
PAD_D1PORT INAi,
|
|
|
|
0b00110000 ANDi,
|
|
|
|
A SLA, A SLA, B ORr,
|
2020-05-15 15:41:06 -04:00
|
|
|
PUSHA,
|
|
|
|
;CODE
|