mirror of
https://github.com/nathanriggs/AppleIIAsm-Collection.git
synced 2024-12-02 12:52:03 +00:00
9b12b6fd9b
- 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
26 lines
456 B
NASM
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
|