Notes
Notes - notes.io |
INCLUDE <P16F877A.INC>
__CONFIG _CP_OFF &_WDT_OFF &_HS_OSC &_PWRTE_OFF &_LVP_OFF
SAYI1 EQU 20H
SAYI2 EQU 21H
SAYI3 EQU 22H
TEMP EQU 23H
BIRLER EQU 24H
ONLAR EQU 25H
YUZLER EQU 26H
BINLER EQU 27H
TEMP4 EQU 28H
TEMP3 EQU 29H
TEMP2 EQU 2AH
TEMP1 EQU 2BH
ISI EQU 2CH
ISTENEN EQU 2DH
ORG 0
GOTO START
;****INTERRUFT VECTOR***
ORG 4
GOTO START
BANK0 MACRO
BCF STATUS,5
ENDM
BANK1 MACRO
BSF STATUS,RP0
ENDM
START BANK1
MOVLW b'11110000'
MOVWF TRISD
CLRF TRISB;
CLRF TRISC;
BANK0
CLRF BIRLER
CLRF ONLAR
CLRF YUZLER
CLRF BINLER
MOVLW .20
MOVWF ISTENEN
MOVLW .23
MOVWF ISI
LOOP CALL BASAMAKBUL
CALL GOSTER
CALL TUSTARAMA
CALL ISITSOGUT
GOTO LOOP
ISITSOGUT BCF STATUS,C
BCF STATUS,Z
MOVF ISI,W
SUBWF ISTENEN,W
BTFSC STATUS,Z
GOTO ESITLIK
BTFSC STATUS,C
GOTO BUYUKLUK
BSF PORTC,1
BCF PORTC,0
RETURN
ESITLIK BCF PORTC,1
BCF PORTC,0
RETURN
BUYUKLUK BCF PORTC,1
BSF PORTC,0
RETURN
BASAMAKBUL CLRF ONLAR
CLRF BIRLER
MOVF ISTENEN,W
MOVWF TEMP4
GIT1 BCF STATUS,C
BCF STATUS,Z
MOVLW .10
SUBWF TEMP4,W
BTFSC STATUS,Z
GOTO ESITLIK1
BTFSC STATUS,C
GOTO BUYUKLUK1
MOVF TEMP4,W
MOVWF BIRLER
RETURN
ESITLIK1 INCF ONLAR,F
RETURN
BUYUKLUK1 INCF ONLAR,F
MOVLW .10
SUBWF TEMP4,F
GOTO GIT1
TUSTARAMA MOVLW B'11110111'
MOVWF PORTD
CALL BEKLE
BTFSC PORTD,4
GOTO B2
INCF ISTENEN,F
BCF STATUS,Z
MOVLW .33
SUBWF ISTENEN,W
BTFSC STATUS,Z
DECF ISTENEN,F
RETURN
B2 BTFSC PORTD,5
GOTO B3
MOVLW .0
MOVWF ONLAR
MOVLW .2
MOVWF BIRLER
RETURN
B3 BTFSC PORTD,6
GOTO B4
MOVLW .0
MOVWF ONLAR
MOVLW .3
MOVWF BIRLER
B4 BTFSC PORTD,7
GOTO B5
MOVLW .0
MOVWF ONLAR
MOVLW .4
MOVWF BIRLER
B5 MOVLW B'11111011'
MOVWF PORTD
CALL BEKLE
BTFSC PORTD,4
GOTO B6
DECF ISTENEN,F
BCF STATUS,Z
MOVLW .15
SUBWF ISTENEN,W
BTFSC STATUS,Z
INCF ISTENEN,F
RETURN
B6 BTFSC PORTD,5
GOTO B7
MOVLW .0
MOVWF ONLAR
MOVLW .6
MOVWF BIRLER
RETURN
B7 BTFSC PORTD,6
GOTO B8
MOVLW .0
MOVWF ONLAR
MOVLW .7
MOVWF BIRLER
RETURN
B8 BTFSC PORTD,7
GOTO B9
MOVLW .0
MOVWF ONLAR
MOVLW .8
MOVWF BIRLER
RETURN
B9 MOVLW B'11111101'
MOVWF PORTD
CALL BEKLE
BTFSC PORTD,4
GOTO B10
MOVLW .0
MOVWF ONLAR
MOVLW .9
MOVWF BIRLER
RETURN
B10 BTFSC PORTD,5
GOTO B11
MOVLW .1
MOVWF ONLAR
MOVLW .0
MOVWF BIRLER
RETURN
B11 BTFSC PORTD,6
GOTO B12
MOVLW .1
MOVWF ONLAR
MOVLW .1
MOVWF BIRLER
RETURN
B12 BTFSC PORTD,7
GOTO B13
MOVLW .1
MOVWF ONLAR
MOVLW .2
MOVWF BIRLER
RETURN
B13 MOVLW B'11111110'
MOVWF PORTD
CALL BEKLE
BTFSC PORTD,4
GOTO B14
MOVLW .1
MOVWF ONLAR
MOVLW .3
MOVWF BIRLER
RETURN
B14 BTFSC PORTD,5
GOTO B15
MOVLW .1
MOVWF ONLAR
MOVLW .4
MOVWF BIRLER
RETURN
B15 BTFSC PORTD,6
GOTO B16
MOVLW .1
MOVWF ONLAR
MOVLW .5
MOVWF BIRLER
RETURN
B16 BTFSC PORTD,7
RETURN
MOVLW .1
MOVWF ONLAR
MOVLW .6
MOVWF BIRLER
RETURN
GOSTER movlw .20
MOVWF TEMP
GOSTER1
MOVLW B'00001000'
MOVWF PORTB
MOVF BIRLER,W
MOVWF PORTD
CALL BEKLE
MOVLW B'00000100'
MOVWF PORTB
MOVF ONLAR,W
MOVWF PORTD
CALL BEKLE
MOVLW B'00000010'
MOVWF PORTB
MOVF YUZLER,W
MOVWF PORTD
CALL BEKLE
MOVLW B'00000001'
MOVWF PORTB
MOVF BINLER,W
MOVWF PORTD
CALL BEKLE
DECFSZ TEMP,F
GOTO GOSTER1
CLRF PORTB
RETURN
BEKLE MOVLW .1
MOVWF SAYI1
BEKLE1 MOVLW .50
MOVWF SAYI2
BEKLE2 MOVLW .50
MOVWF SAYI3
BEKLE3 DECFSZ SAYI3,F
GOTO BEKLE3
DECFSZ SAYI2,F
GOTO BEKLE2
DECFSZ SAYI1,F
GOTO BEKLE1
RETURN
END
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team