ðåôåðàòû ðåôåðàòû
Ãëàâíàÿ ñòðàíèöà > Êóðñîâàÿ ðàáîòà: Ðàçðàáîòêà ìèêðîïðîöåññîðíîé ñèñòåìû öèôðîâîãî òåðìîìåòðà íà áàçå ìèêðîêîíòðîëëåðà  
Êóðñîâàÿ ðàáîòà: Ðàçðàáîòêà ìèêðîïðîöåññîðíîé ñèñòåìû öèôðîâîãî òåðìîìåòðà íà áàçå ìèêðîêîíòðîëëåðà
Ãëàâíàÿ ñòðàíèöà
Áàíêîâñêîå äåëî
Áåçîïàñíîñòü æèçíåäåÿòåëüíîñòè
Áèîëîãèÿ
Áèðæåâîå äåëî
Áîòàíèêà è ñåëüñêîå õîç-âî
Áóõãàëòåðñêèé ó÷åò è àóäèò
Ãåîãðàôèÿ ýêîíîìè÷åñêàÿ ãåîãðàôèÿ
Ãåîäåçèÿ
Ãåîëîãèÿ
Ãîññëóæáà
Ãðàæäàíñêèé ïðîöåññ
Ãðàæäàíñêîå ïðàâî
Èíîñòðàííûå ÿçûêè ëèíãâèñòèêà
Èñêóññòâî
Èñòîðè÷åñêàÿ ëè÷íîñòü
Èñòîðèÿ
Èñòîðèÿ ãîñóäàðñòâà è ïðàâà
Èñòîðèÿ îòå÷åñòâåííîãî ãîñóäàðñòâà è ïðàâà
Èñòîðèÿ ïîëèòè÷èñêèõ ó÷åíèé
Èñòîðèÿ òåõíèêè
Èñòîðèÿ ýêîíîìè÷åñêèõ ó÷åíèé
Áèîãðàôèè
Áèîëîãèÿ è õèìèÿ
Èçäàòåëüñêîå äåëî è ïîëèãðàôèÿ
Èñòîðè÷åñêèå ëè÷íîñòè
Êðàòêîå ñîäåðæàíèå ïðîèçâåäåíèé
Íîâåéøàÿ èñòîðèÿ ïîëèòîëîãèÿ
Îñòàëüíûå ðåôåðàòû
Ïðîìûøëåííîñòü ïðîèçâîäñòâî
ïñèõîëîãèÿ ïåäàãîãèêà
Êîììóíèêàöèè ñâÿçü öèôðîâûå ïðèáîðû è ðàäèîýëåêòðîíèêà
Êðàåâåäåíèå è ýòíîãðàôèÿ
Êóëèíàðèÿ è ïðîäóêòû ïèòàíèÿ
Êóëüòóðà è èñêóññòâî
Ëèòåðàòóðà
Ìàðêåòèíã ðåêëàìà è òîðãîâëÿ
Ìàòåìàòèêà
Ìåäèöèíà
Ðåêëàìà
Ôèçèêà
Ôèíàíñû
Õèìèÿ
Ýêîíîìè÷åñêàÿ òåîðèÿ
Þðèñïðóäåíöèÿ
Þðèäè÷åñêàÿ íàóêà
Êîìïüþòåðíûå íàóêè
Ôèíàíñîâûå íàóêè
Óïðàâëåí÷åñêèå íàóêè
Èíôîðìàòèêà ïðîãðàììèðîâàíèå
Ýêîíîìèêà
Àðõèòåêòóðà
Áàíêîâñêîå äåëî
Áèðæåâîå äåëî
Áóõãàëòåðñêèé ó÷åò è àóäèò
Âàëþòíûå îòíîøåíèÿ
Ãåîãðàôèÿ
Êðåäèòîâàíèå
Èíâåñòèöèè
Èíôîðìàòèêà
Êèáåðíåòèêà
Êîñìåòîëîãèÿ
Íàóêà è òåõíèêà
Ìàðêåòèíã
Êóëüòóðà è èñêóññòâî
Ìåíåäæìåíò
Ìåòàëëóðãèÿ
Íàëîãîîáëîæåíèå
Ïðåäïðèíèìàòåëüñòâî
Ðàäèîýëåêòðîíèêà
Ñòðàõîâàíèå
Ñòðîèòåëüñòâî
Ñõåìîòåõíèêà
Òàìîæåííàÿ ñèñòåìà
Ñî÷èíåíèÿ ïî ëèòåðàòóðå è ðóññêîìó ÿçûêó
Òåîðèÿ îðãàíèçàöèÿ
Òåïëîòåõíèêà
Òóðèçì
Óïðàâëåíèå
Ôîðìà ïîèñêà
Àâòîðèçàöèÿ




 
Ñòàòèñòèêà
ðåôåðàòû
Ïîñëåäíèå íîâîñòè

Êóðñîâàÿ ðàáîòà: Ðàçðàáîòêà ìèêðîïðîöåññîðíîé ñèñòåìû öèôðîâîãî òåðìîìåòðà íà áàçå ìèêðîêîíòðîëëåðà

MOVWFDES2;ÒÅÌÏÅÐÀÒÓÐÀ ÂÎ ÂÒÎÐÎÉ ÑÒÐÎÊÅ.

MOVFWTEMP;

MOVWFEDI2;

RETURN;

HZ67

MOVWFTEMP;ÈÇ 2-ÃÎ Â 2_10-Å.

CALLBIDE;ÒÎËÜÊÎ ÄÎ 99!

MOVWFR6;6 È 7 ÐÀÇÐßÄÛ ÈÍÄÈÊÀÒÎÐÀ.

MOVFWTEMP;×ÀÑÛ.

MOVWFR7;

RETURN;

MZ910

MOVWFTEMP;ÈÇ 2-ÃÎ Â 2_10-Å.

CALLBIDE;ÒÎËÜÊÎ ÄÎ 99!

MOVWFR9;9 È 10 ÐÀÇÐßÄÛ ÈÍÄÈÊÀÒÎÐÀ.

MOVFWTEMP;ÌÈÍÓÒÛ.

MOVWFR10;

RETURN;

;======================

; 28. ÈÍÈÖÈÀËÈÇÀÖÈß ÌÊ.

;======================

INIT

BCFSTATUS,6;

BSFSTATUS,5;ÏÅÐÅÕÎÄÈÌ Â ÁÀÍÊ 1.

MOVLWB'00000011';ÏÐÅÄÄÅËÈÒÅËÜ ÏÅÐÅÄ ÒÀÉÌÅÐÎÌ, Ê=16 ...11,

MOVWFOPTION_REG^80H;ÏÎÄÒßÃÈÂÀÞÙÈÅ ÐÅÇÈÑÒÎÐÛ ÂÊËÞ×ÅÍÛ.

MOVLWB'10100000';ÐÀÇÐÅØÅÍÈÅ ÏÐÅÐÛÂÀÍÈß ÏÐÈ ÏÅÐÅÏÎËÍÅÍÈÈ ÒÀÉÌÅÐÀ.

MOVWFINTCON;

MOVLWB'00100000';RA5 - ÍÀ ÂÕÎÄ.

MOVWFTRISA^80H

MOVLWB'00000011';RB0, RB1 - ÍÀ ÂÕÎÄ.

MOVWFTRISB^80H

CLRFVRCON^80H;ÈÎÍ ÂÛÊËÞ×ÅÍ.

CLRFPIE1^80H;

BCFSTATUS,5;ÏÅÐÅÕÎÄÈÌ Â ÁÀÍÊ 0.

CLRFPORTA;ÂÑÅ ÎÁÍÓËßÅÌ È ÓÑÒÀÍÀÂËÈÂÀÅÌ

CLRFPORTB

CLRFT1CON;

CLRFT2CON;

MOVLW7

MOVWFCMCON;ÊÎÌÏÀÐÀÒÎÐÛ ÂÛÊËÞ×ÅÍÛ.

CLRFTMR0

CLRFFLAG

CLRFFLAG1

CLRFFLAG2

BSFFLAG2,0;ÈÍÄÈÊÀÖÈß ÒÅÊÓÙÀß,

CLRFCEK

CLRFMIN

CLRFHOU

CLRFHOUL

CLRFHOUH

CLRFMINL

CLRFMINH

CLRFREID

CLRFKYPC

CLRFCOUN

CLRFCOUZ

CLRFCOUE

CLRFCOYC

CLRFMCK;ÌÈËËÈÑÅÊÓÍÄ.

CLRFEDI2;ÅÄÈÍÈÖÛ 2.

CLRFDES2;ÄÅÑßÒÊÈ 2.

CLRFDST2;ÄÅÑßÒÛÅ 2.

CLRFEDI1;ÅÄÈÍÈÖÛ 1.

CLRFDES1;ÄÅÑßÒÊÈ 1.

CLRFDST1;ÄÅÑßÒÛÅ 1.

CLRFMECDI;ÄÅÑßÒÊÈ ÌÅÑßÖÀ ÈÍÄÈÊÀÖÈÈ.

CLRFDHUDI;ÄÅÑßÒÊÈ ÄÍÅÉ ÈÍÄÈÊÀÖÈÈ.

CLRFMECD;ÄÅÑßÒÊÈ ÌÅÑßÖÀ.

CLRFDHUD;ÄÅÑßÒÊÈ ÄÍÅÉ.

MOVLW.253;-

MOVWFSOT1;ÇÍÀÊ 1.

MOVWFSOT2;ÇÍÀÊ 2.

MOVWFSOT2X;ÇÍÀÊ 2 MAX.

MOVWFSOT1X;ÇÍÀÊ 1 MAX.

MOVLW.251;+

MOVWFSOT1N;ÇÍÀÊ 1 MIN.

MOVWFSOT2N;ÇÍÀÊ 2 MIN.

MOVLW.1

MOVWFDHU;ÄÍÈ ÄÂÎÈ×ÍÛÅ.

MOVWFDHUE;ÅÄÈÍÈÖÛ ÄÍÅÉ.

MOVWFMEC;ÌÅÑßÖ ÄÂÎÈ×ÍÛÉ.

MOVWFMECE;ÅÄÈÍÈÖÛ ÌÅÑßÖÀ.

MOVWFMECEI;ÅÄÈÍÈÖÛ ÌÅÑßÖÀ ÈÍÄÈÊÀÖÈÈ.

MOVWFMECZ;ÄÂÎÈ×ÍÛÉ ÌÅÑßÖ ÇÀÏÈÑÈ/Ñ×ÈÒÛÂÀÍÈß.

MOVWFDHUEI;ÅÄÈÍÈÖÛ ÄÍÅÉ ÈÍÄÈÊÀÖÈÈ.

MOVWFDHUZ;ÄÂÎÈ×ÍÛÅ ÄÍÈ ÇÀÏÈÑÈ/Ñ×ÈÒÛÂÀÍÈß.

CALLPOLNO;ÓÑÒÀÍÎÂÊÀ ÌÀÊÑÈÌÀËÜÍÛÕ ÇÍÀ×ÅÍÈÉ.

GOTOJEKINI;ÍÀ ÈÍÈÖÈÀËÈÇÀÖÈÞ ÈÍÄÈÊÀÒÎÐÀ.

;=======================================

; 29. ÓÑÒÀÍÎÂÊÀ ×ÀÑÎÂ, ÄÀÒÛ.

;=======================================

YC0

 INCFHOUH,1;ÓÂÅËÈ×ÈÌ ÄÅÑßÒÊÈ ×ÀÑÎÂ.

 MOVLW.3;ÍÅ ÁÎËÅÅ 2.

 SUBWFHOUH,0;

 SKPNC;

 CLRFHOUH;ÅÑËÈ ÁÎËÜØÅ, ÒÎ ÎÁÍÓËÈÌ.

MOVFWHOUH;ÏÅÐÅÊÎÄÈÐÓÅÌ Â ÄÂÎÈ×ÍÛÉ

CALLDEBIN;ÊÎÄ ÄÅÑßÒÊÈ.

ADDWFHOUL,0;ÏÐÈÁÀÂÈÌ ÅÄÈÍÈÖÛ

MOVWFHOU;È ÏÎËÓ×ÈÌ ÄÂÎÈ×ÍÎÅ ×ÈÑËÎ.

 RETURN;ÂÅÐÍÅÌÑß.

YC1

INCFHOUL,1;ÓÂÅËÈ×ÈÌ ÅÄÈÍÈÖÛ ×ÀÑÎÂ.

MOVLW.10;ÍÅ ÁÎËÅÅ 9.

SUBWFHOUL,0;

SKPNC;

CLRFHOUL;ÅÑËÈ ÁÎËÜØÅ, ÒÎ ÎÁÍÓËÈÌ.

MOVFWHOUH;ÏÅÐÅÊÎÄÈÐÓÅÌ Â ÄÂÎÈ×ÍÛÉ

CALLDEBIN;ÊÎÄ ÄÅÑßÒÊÈ.

ADDWFHOUL,0;ÏÐÈÁÀÂÈÌ ÅÄÈÍÈÖÛ

MOVWFHOU;ÄÂÎÈ×ÍÎÅ ÇÍÀ×ÅÍÈÅ ÍÅ ÄÎËÆÍÎ

 ADDLW-18H;ÏÐÅÂÛØÀÒÜ - 24.

SKPC;ÅÑËÈ ÁÎËÜØÅ ÈËÈ ÐÀÂÍÎ 24,

RETURN

CLRFHOU;ÒÎ ÎÁÍÓËÈÌ ×ÀÑÛ ÄÂÎÈ×ÍÛÅ

CLRFHOUL;È ÐÀÇÐßÄÛ ÑÒÀÐØÈÉ

CLRFHOUH;È ÌËÀÄØÈÉ.

RETURN

YC2

 INCFMINH,1;ÓÂÅËÈ×ÈÌ ÄÅÑßÒÊÈ ÌÈÍÓÒ.

 MOVLW.6;ÍÅ ÁÎËÅÅ 5.

 SUBWFMINH,0;

 SKPNC;ÅÑËÈ ÁÎËÜØÅ ÈËÈ ÐÀÂÍÎ 6,

 CLRFMINH;ÒÎ ÎÁÍÓËÈÌ.

MOVFWMINH;ÏÅÐÅÊÎÄÈÐÓÅÌ Â ÄÂÎÈ×ÍÛÉ

CALLDEBIN;ÊÎÄ ÄÅÑßÒÊÈ.

ADDWFMINL,0;ÏÐÈÁÀÂÈÌ ÅÄÈÍÈÖÛ È

MOVWFMIN;ÇÀÏÈØÅÌ Â ÄÂÎÈ×ÍÎÌ ÊÎÄÅ.

 RETURN

YC3

INCFMINL,1;ÓÂÅËÈ×ÈÌ ÅÄÈÍÈÖÛ ÌÈÍÓÒ.

MOVLW.10;ÍÅ ÁÎËÅÅ 9.

SUBWFMINL,0;

SKPNC;ÅÑËÈ ÁÎËÜØÅ ÈËÈ ÐÀÂÍÎ 10,

CLRFMINL;ÒÎ ÎÁÍÓËÈÌ.

MOVFWMINH;ÏÅÐÅÊÎÄÈÐÓÅÌ Â ÄÂÎÈ×ÍÛÉ

CALLDEBIN;ÊÎÄ ÄÅÑßÒÊÈ.

ADDWFMINL,0;ÏÐÈÁÀÂÈÌ ÅÄÈÍÈÖÛ È

MOVWFMIN;ÇÀÏÈØÅÌ Â ÄÂÎÈ×ÍÎÌ ÊÎÄÅ.

RETURN

YC4

 INCFDHUD,1;ÓÂÅËÈ×ÈÌ ÄÅÑßÒÊÈ ÒÅÊÓÙÈÕ ÄÍÅÉ.

 MOVLW.4;ÍÅ ÁÎËÅÅ 3.

 SUBWFDHUD,0;

 SKPNC;

 CLRFDHUD;ÅÑËÈ ÁÎËÜØÅ, ÒÎ ÎÁÍÓËÈÌ.

MOVFWDHUD;ÏÅÐÅÊÎÄÈÐÓÅÌ Â ÄÂÎÈ×ÍÛÉ

CALLDEBIN;ÊÎÄ ÄÅÑßÒÊÈ.

ADDWFDHUE,0;ÏÐÈÁÀÂÈÌ ÅÄÈÍÈÖÛ

MOVWFDHU;È ÏÎËÓ×ÈÌ ÄÂÎÈ×ÍÎÅ ×ÈÑËÎ.

 MOVFWMEC;ÅÑËÈ Â ÒÅÊÓÙÅÌ ÌÅÑßÖÅ

CALLDAYMON;ÌÅÍÜØÅ ÄÍÅÉ,

 SUBWFDHU,0;

 SKPC;

GOTO$+4;

MOVLW.1;

MOVWFDHUE;ÒÎ ÓÑÒÀÍÎÂÈÌ ÅÄÈÍÈÖÛ

GOTO$-0x0B;È ÅÙÅ ÐÀÇ ÏÐÎÂÅÐÈÌ ÑÓÌÌÓ.

TSTFDHU;ÅÑËÈ ÑÓÌÌÀ ÄÍÅÉ ÍÓËÅÂÀß,

BZ$-5;ÒÎ ÑÍÎÂÀ ÓÑÒÀÍÎÂÈÌ.

MOVFWDHUD;ÏÅÐÅÏÈØÅÌ Â ÐÅÃÈÑÒÐÛ

MOVWFDHUDI;ÈÍÄÈÊÀÖÈÈ.

MOVFWDHUE;

MOVWFDHUEI;

 RETURN;ÂÅÐÍÅÌÑß.

YC5

 INCFDHUE,1;ÓÂÅËÈ×ÈÌ ÅÄÈÍÈÖÛ ÄÍÅÉ.

 MOVLW.10;ÍÅ ÁÎËÅÅ 9.

 SUBWFDHUE,0;

 SKPNC;

 CLRFDHUE;ÅÑËÈ ÁÎËÜØÅ, ÒÎ ÎÁÍÓËÈÌ.

MOVFWDHUD;ÏÅÐÅÊÎÄÈÐÓÅÌ Â ÄÂÎÈ×ÍÛÉ

CALLDEBIN;ÊÎÄ ÄÅÑßÒÊÈ.

ADDWFDHUE,0;ÏÐÈÁÀÂÈÌ ÅÄÈÍÈÖÛ

MOVWFDHU;È ÏÎËÓ×ÈÌ ÄÂÎÈ×ÍÎÅ ×ÈÑËÎ.

 MOVFWMEC;ÅÑËÈ Â ÒÅÊÓÙÅÌ ÌÅÑßÖÅ

CALLDAYMON;ÌÅÍÜØÅ ÄÍÅÉ,

 SUBWFDHU,0;

 SKPC;

GOTO$+5;

CLRFDHUD;ÒÎ ÎÁÍÓËÈÌ ÄÅÑßÒÊÈ ÄÍÅÉ,

MOVLW.1;ÓÑÒÀÍÎÂÈÌ ÅÄÈÍÈÖÛ

MOVWFDHUE;ÄÍÅÉ

GOTO$-0x0C;È ÅÙÅ ÐÀÇ ÏÐÎÂÅÐÈÌ ÑÓÌÌÓ.

TSTFDHU;ÅÑËÈ ÑÓÌÌÀ ÄÍÅÉ ÍÓËÅÂÀß,

BZ$-5;À ÍÓËÅÂÎÃÎ ÄÍß ÍÅÒ, ÒÎ ÑÍÎÂÀ ÓÑÒÀÍÎÂÈÌ.

MOVFWDHUD;ÏÅÐÅÏÈØÅÌ Â ÐÅÃÈÑÒÐÛ

MOVWFDHUDI;ÈÍÄÈÊÀÖÈÈ.

MOVFWDHUE;

MOVWFDHUEI;

 RETURN;ÂÅÐÍÅÌÑß.

YC6

 INCFMECD,1;ÓÂÅËÈ×ÈÌ ÄÅÑßÒÊÈ ÌÅÑßÖÀ.

 MOVLW.2;ÍÅ ÁÎËÅÅ 1.

 SUBWFMECD,0;

 SKPNC;

 CLRFMECD;ÅÑËÈ ÁÎËÜØÅ, ÒÎ ÎÁÍÓËÈÌ.

MOVFWMECD;ÏÅÐÅÊÎÄÈÐÓÅÌ Â ÄÂÎÈ×ÍÛÉ

CALLDEBIN;ÊÎÄ ÄÅÑßÒÊÈ.

ADDWFMECE,0;ÏÐÈÁÀÂÈÌ ÅÄÈÍÈÖÛ

MOVWFMEC;È ÏÎËÓ×ÈÌ ÄÂÎÈ×ÍÎÅ ×ÈÑËÎ.

MOVLW.13;ÍÅ ÁÎËÅÅ 12.

 SUBWFMEC,0;

 SKPC;

GOTO$+5;

CLRFMECD;ÅÑËÈ ÁÎËÜØÅ, ÒÎ ÎÁÍÓËÈÌ.

MOVLW.1;ÓÑÒÀÍÎÂÈÌ ÏÅÐÂÛÉ ÌÅÑßÖ.

MOVWFMECE;

GOTO$-0x0C;

TSTFMEC;ÅÑËÈ ÌÅÑßÖ ÍÓËÅÂÎÉ,

BZ$-5;ÒÎ ÓÑÒÀÍÎÂÈÌ.

MOVFWMECD;ÏÅÐÅÏÈØÅÌ Â ÐÅÃÈÑÒÐÛ

MOVWFMECDI;ÈÍÄÈÊÀÖÈÈ.

MOVFWMECE;

MOVWFMECEI;

 RETURN;ÂÅÐÍÅÌÑß.

YC7

 INCFMECE,1;ÓÂÅËÈ×ÈÌ ÅÄÈÍÈÖÛ ÌÅÑßÖÀ.

 MOVLW.10;ÍÅ ÁÎËÅÅ 9.

 SUBWFMECE,0;

 SKPNC;

 CLRFMECE;ÅÑËÈ ÁÎËÜØÅ, ÒÎ ÎÁÍÓËÈÌ.

MOVFWMECD;ÏÅÐÅÊÎÄÈÐÓÅÌ Â ÄÂÎÈ×ÍÛÉ

CALLDEBIN;ÊÎÄ ÄÅÑßÒÊÈ.

ADDWFMECE,0;ÏÐÈÁÀÂÈÌ ÅÄÈÍÈÖÛ

MOVWFMEC;È ÏÎËÓ×ÈÌ ÄÂÎÈ×ÍÎÅ ×ÈÑËÎ.

MOVLW.13;ÍÅ ÁÎËÅÅ 12.

 SUBWFMEC,0;

 SKPC;

GOTO$+5;

CLRFMECD;ÅÑËÈ ÁÎËÜØÅ, ÒÎ ÎÁÍÓËÈÌ.

MOVLW.1;ÓÑÒÀÍÎÂÈÌ ÏÅÐÂÛÉ ÌÅÑßÖ.

MOVWFMECE;

GOTO$-0x0C;

TSTFMEC;ÅÑËÈ ÌÅÑßÖ ÍÓËÅÂÎÉ,

BZ$-5;ÒÎ ÓÑÒÀÍÎÂÈÌ.

MOVFWMECD;ÏÅÐÅÏÈØÅÌ Â ÐÅÃÈÑÒÐÛ

MOVWFMECDI;ÈÍÄÈÊÀÖÈÈ.

MOVFWMECE;

MOVWFMECEI;

 RETURN;ÂÅÐÍÅÌÑß.

YC8M

 DECFDHUEI,1;ÓÌÅÍÜØÈÌ ÅÄÈÍÈÖÛ ÄÍÅÉ ÏÐÎÑÌÎÒÐÀ.

 MOVLW.255;ÅÑËÈ ÏÅÐÅÕÎÄ ×ÅÐÅÇ 0,

 SUBWFDHUEI,0;

BNC$+8;

MOVLW.9;ÒÎ ÓÑÒÀÍÎÂÈÌ 9.

MOVWFDHUEI;

DECFDHUDI,1;ÓÌÅÍÜØÈÌ ÄÅÑßÒÊÈ ÄÍÅÉ

 MOVLW.255;ÅÑËÈ ÍÅÒ ÏÅÐÅÕÎÄÀ ×ÅÐÅÇ 0,

 SUBWFDHUDI,0;

SKPC;

GOTOYC8COY;ÒÎ ÓÑÒÀÍÎÂÈÌ Ñ×ÅÒ×ÈÊ ÄÍÅÉ.

MOVFWDHUEI;ÅÑËÈ ÑÓÌÌÀ ÄÍÅÉ

ADDWFDHUDI,0;ÍÅ ÐÀÂÍÀ ÍÓËÞ,

SKPZ

GOTOYC8COY;ÒÎ ÓÑÒÀÍÎÂÈÌ Ñ×ÅÒ×ÈÊ ÄÍÅÉ.

DECFMECZ,1;ÈÍÀ×Å ÓÌÅÍÜØÈÌ ÌÅÑßÖ.

SKPZ;ÅÑËÈ ÌÅÑßÖ ÍÓËÅÂÎÉ,

GOTO$+3;

MOVLW.12;ÒÎ ÓÑÒÀÍÎÂÈÌ ÄÅÊÀÁÐÜ.

MOVWFMECZ;

MOVFWMECZ;ÏÐÎÂÅÐÈÌ ×ÈÑËÎ ÄÍÅÉ Â ÌÅÑßÖÅ.

CALLDAYMON;

MOVWFDHUDI;ÏÅÐÅÊÎÄÈÐÓÅÌ ÄÍÈ.

MOVWFTEMP;ÈÇ 2-ÃÎ Â 2_10-Å.

CALLBIDE;ÒÎËÜÊÎ ÄÎ 99!

MOVWFDHUDI;

MOVFWTEMP;

MOVWFDHUEI;

MOVFWMECZ;ÏÅÐÅÊÎÄÈÐÓÅÌ ÌÅÑßÖ.

MOVWFTEMP;ÈÇ 2-ÃÎ Â 2_10-Å.

CALLBIDE;ÒÎËÜÊÎ ÄÎ 99!

MOVWFMECDI;

MOVFWTEMP;

MOVWFMECEI;ÄÍÅÉ Â ÒÀÁËÈÖÅ ÌÅÑßÖÀ ÍÀ 1 ÁÎËÜØÅ,

GOTOYC8M;ÏÎÝÒÎÌÓ ÏÎÂÒÎÐÈÌ.

YC8COY

INCFCOYC,1;ÓÌÅÍÜØÈÌ Ñ×ÅÒ×ÈÊ ÄÍÅÉ.

MOVLW.8;ÍÅ ÁÎËÅÅ 7.

SUBWFCOYC,0;

SKPC;

GOTOYC8COU;ÍÀ ÓÑÒÀÍÎÂÊÓ Ñ×ÅÒ×ÈÊÀ Ñ×ÈÒÛÂÀÍÈß.

CLRFCOYC;ÎÁÍÓËÈÌ Ñ×ÅÒ×ÈÊ.

CALLREGIN;ÇÀÃÐÓÇÈÌ ÒÅÊÓÙÈÉ ÄÅÍÜ.

BCFFLAG2,6;ÑÁÐÎÑÈÌ ÔËÀà Ñ×ÅÒ×ÈÊÀ ÄÍÅÉ.

GOTOYC8M;ÓÑÒÀÍÎÂÈÌ Â×ÅÐÀØÍÈÉ ÄÅÍÜ.

YC8COU

BSFFLAG2,5;ÓÑÒÀÍÎÂÈÌ ÔËÀÃ ÂÛÏÎËÍÅÍÍÎÉ ÓÑÒÀÍÎÂÊÈ ÌÈÍÓÑ.

BTFSCFLAG2,6;ÅÑËÈ ÔËÀÃ ÍÓËÅÂÎÉ,

GOTO$+0x09;

CLRFCOYC;

MOVLW.16;ÒÎ ÓÑÒÀÍÎÂÈÌ Ñ×ÅÒ×ÈÊ Ñ×ÈÒÛÂÀÍÈß.

SUBWFCOUZ,0;ÀÄÐÅÑ ×ÒÅÍÈß ÐÀÂÅÍ ÀÄÐÅÑÓ ÇÀÏÈÑÈ

MOVWFCOUE;ÌÈÍÓÑ 16.

BNC$+7;ÅÑËÈ ÏÅÐÅÕÎÄ ×ÅÐÅÇ 0, ÒÎ ÓÑÒÀÍÎÂÈÌ .112.

BSFFLAG2,6;ÓÑÒÀÍÎÂÊÀ ÂÛÏÎËÍÅÍÀ.

RETURN;ÂÅÐÍÅÌÑß.

MOVLW.16;ÑËÅÄÓÞÙÈÉ ÀÄÐÅÑ ×ÒÅÍÈß

SUBWFCOUE,1;ÐÀÂÅÍ ÒÅÊÓÙÅÌÓ ÌÈÍÓÑ 16.

SKPNC;ÅÑËÈ ÏÅÐÅÕÎÄ ×ÅÐÅÇ 0,

RETURN

MOVLW.112;ÒÎ ÓÑÒÀÍÎÂÈÌ .112.

MOVWFCOUE;

BSFFLAG2,6;ÓÑÒÀÍÎÂÊÀ ÂÛÏÎËÍÅÍÀ.

RETURN

YC00

CLRFMIN;ÎÁÍÓËÅÍÈÅ ÐÅÃÈÑÒÐÎÂ

CLRFMINL;ÌÈÍÓÒ È ÑÅÊÓÍÄ

CLRFMINH;ÏÐÈ ÓÑÒÀÍÎÂÊÅ ÏÎ ÑÈÃÍÀËÀÌ

CLRFCEK;ÒÎ×ÍÎÃÎ ÂÐÅÌÅÍÈ.

RETURN

;======================================================

; 30. ÂÎÑÑÒÀÍÎÂËÅÍÈÅ ÒÅÊÓÙÈÕ ÐÅÃÈÑÒÐÎÂ ÈÍÄÈÊÀÖÈÈ ÏÎÑËÅ ÏÐÎÑÌÎÒÐÀ.

;======================================================

REGIN

MOVFWMECD;

MOVWFMECDI;

MOVFWMECE;

MOVWFMECEI;

MOVFWDHUD;

MOVWFDHUDI;

MOVFWDHUE;

MOVWFDHUEI;

MOVFWMEC;

MOVWFMECZ;

RETURN

;=============================================

; 31. ÏÐÅÄÅËÜÍÛÅ ÓÑÒÀÍÎÂÊÈ MAX, MIN  ÏÎËÍÎ×Ü.

;=============================================

POLNO

Ñòðàíèöû: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12

ðåôåðàòû
Íîâîñòè