Skip to content

Instantly share code, notes, and snippets.

@szymanskip
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save szymanskip/9407988 to your computer and use it in GitHub Desktop.
Save szymanskip/9407988 to your computer and use it in GitHub Desktop.
list p=16F84A ;dyrektywa kompilatora
status equ 3
porta equ 5
portb equ 6
trisa equ 5
trisb equ 6
org 00
start bsf status, 5
movlw b'00000000'
movwf trisa
movlw b'00001001'
movwf trisb
bcf status, 5
clrf porta
clrf portb
loop movf portb, 0 ;rb0,rb3 do ra0,ra3
movwf porta
goto loop
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment