1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-27 21:18:05 +11:00
collapseos/recipes/sms/blk/612

13 lines
561 B
Plaintext
Raw Normal View History

2020-05-16 05:41:06 +10:00
: _prevstat [ PAD_MEM LITN ] ;
: _sel [ PAD_MEM 1+ LITN ] ;
: _next [ PAD_MEM 2+ LITN ] ;
( Put status for port A in register A. Bits, from MSB to LSB:
Start - A - C - B - Right - Left - Down - Up
Each bit is high when button is unpressed and low if button is
pressed. When no button is pressed, 0xff is returned.
This logic below is for the Genesis controller, which is modal.
2020-06-17 09:57:31 +10:00
TH is an output pin that switches the meaning of TL and TR. When
2020-05-16 05:41:06 +10:00
TH is high (unselected), TL = Button B and TR = Button C. When
TH is low (selected), TL = Button A and TR = Start. )