Last active
August 29, 2015 13:57
-
-
Save szymanskip/9407988 to your computer and use it in GitHub Desktop.
This file contains 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
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