Last active
October 14, 2015 15:51
-
-
Save cbmeeks/f41494148e9022f05c26 to your computer and use it in GitHub Desktop.
PASM Toggle Bit
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
DAT | |
org 0 | |
entry mov dira, #1 'set P0 as output | |
:loop mov count, delay 'setup delay | |
xor outa, #1 'invert P0 | |
:here djnz count, #:here 'delay | |
jmp #:loop | |
count long 0 | |
delay long 80,000,000 '1s delay (current clock speed 80MHz) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment