Created
October 19, 2015 12:56
-
-
Save TheZoq2/e43022caf8e6912c9cde to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LEA #$7000,A7 | |
PIAINIT: | |
MOVE.B #%00000111,$10084 | |
;Second PIA | |
CLR.B $10086 | |
MOVE.B #$F,$10082 | |
MOVE.B #%00000111,$10086 | |
MOVE.B #00,$10082 | |
MOVE.L #COUNT_UP,$68 | |
MOVE.L #ON_SHOW,$74 | |
AND.W #$F8FF,SR | |
MAIN: | |
BRA MAIN | |
COUNT_UP: | |
CMP.B #0,$10082 | |
CMP.B #$0F,D0 | |
BEQ ENDCOUNT | |
ADD.B #1,D0 | |
ENDCOUNT | |
RTE | |
ON_SHOW: | |
CMP.B #0,$10080 | |
MOVE.B D0,$10082 | |
CLR.B D0 | |
RTE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment