AppleIIAsm-Collection/source/d12_applechop/T.MIN.SUB.GPBX.ASM
nathanriggs 9b12b6fd9b HOUSEKEEPING
- getting ready for major changes for 0.6.0.
- be sure to download the 0.5.0 release to ensure proper functionality, as these rountines will not work together in the SRC or BIN folder during the transition
- Beginning to significantly alter documentation
2019-12-17 17:19:24 -05:00

26 lines
456 B
NASM

GPBX
PLA
TAX
PLA
TAY
PLA
STA ADDR1
PLA
STA ADDR1+1
TYA
PHA
TXA
PHA
LDY #$00
LDA (ADDR1),Y
BMI :1
JMP :0
:1
LDY #$01 ; BTN PUSHED;A=1
JMP :EXIT
:0
LDY #$00 ; BTN NOT PUSHED;A=0
:EXIT
TYA
RTS