mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 15:08:05 +11:00
f6ded7712e
This is the first commit I do entirely in VE. It's a habit I'm planning on taking as it helps a lot to find usability issues.
17 lines
463 B
Plaintext
17 lines
463 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
|
|
|