Skip to content

Instantly share code, notes, and snippets.

@cbmeeks
Last active October 14, 2015 15:51
Show Gist options
  • Save cbmeeks/f41494148e9022f05c26 to your computer and use it in GitHub Desktop.
Save cbmeeks/f41494148e9022f05c26 to your computer and use it in GitHub Desktop.
PASM Toggle Bit
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