{"id":7724,"date":"2009-04-09T10:35:51","date_gmt":"2009-04-09T07:35:51","guid":{"rendered":"http:\/\/studentpmr.ru\/?p=7724"},"modified":"2009-04-09T10:35:51","modified_gmt":"2009-04-09T07:35:51","slug":"%d0%b8%d1%81%d1%85%d0%be%d0%b4%d0%bd%d1%8b%d0%b9-%d1%82%d0%b5%d0%ba%d1%81%d1%82-%d0%bf%d1%80%d0%be%d0%b3%d1%80%d0%b0%d0%bc%d0%bc%d1%8b-2","status":"publish","type":"post","link":"http:\/\/studentpmr.ru\/?p=7724","title":{"rendered":"\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b"},"content":{"rendered":"<p>; \u0420\u0435\u0437\u0438\u0434\u0435\u043d\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043a\u0430-\u0431\u0443\u0434\u0438\u043b\u044c\u043d\u0438\u0447\u0435\u043a, \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0432\u044b\u0432\u043e\u0434\u0438\u0442<\/p>\n<p>; \u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0430\u0434\u043f\u0438\u0441\u044c, \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c<\/p>\n<p> <!--more-->  <\/p>\n<p>;_&#8212;-== \u0432\u044b\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438 string \u043d\u0430 \u044d\u043a\u0440\u0430\u043d ==&#8212;-<\/p>\n<p>@DisStr MACRO string<\/p>\n<p>mov ah,9h<\/p>\n<p>mov dx,offset &amp;string<\/p>\n<p>int 21h<\/p>\n<p>ENDM<\/p>\n<p>PAGE 60,132<\/p>\n<p>TITLE ALARM &#8212; CLOCK<\/p>\n<p>;_____________________________________________________________________________<\/p>\n<p>code segment para public &#8216;code&#8217;<\/p>\n<p>assume cs:code,ds:code<\/p>\n<p>org 100h<\/p>\n<p>start: jmp init<\/p>\n<p>;_____________________________________________________________________________<\/p>\n<p>;_&#8212;&#8212;== \u043d\u043e\u0432\u044b\u0439 \u0432\u0435\u043a\u0442\u043e\u0440 \u043f\u0440\u0435\u044b\u0440\u044b\u0432\u0430\u043d\u0438\u044f 1Ch ==&#8212;&#8212;<\/p>\n<p>int_1Ch:<\/p>\n<p>cli<\/p>\n<p>push AX<\/p>\n<p>push CX<\/p>\n<p>push DX<\/p>\n<p>push ES<\/p>\n<p>push DI<\/p>\n<p>push BX<\/p>\n<p>push SI<\/p>\n<p>;_&#8212;&#8212;== \u043d\u0430\u0447\u043d\u0435\u043c \u0441 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 ==&#8212;&#8212;<\/p>\n<p>call check_time<\/p>\n<p>cmp CX,[CS:tim]<\/p>\n<p>jnz finish<\/p>\n<p>call check_time<\/p>\n<p>cmp AL,5<\/p>\n<p>jg finish<\/p>\n<p>call mes_out<\/p>\n<p>a: call click ;\u0437\u0432\u043e\u043d\u043e\u043a<\/p>\n<p>;\u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435<\/p>\n<p>;_&#8212;&#8212;== \u0410 \u0432\u043e\u0442 \u0438 \u043a\u043e\u043d\u0435\u0446 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 ==&#8212;&#8212;<\/p>\n<p>finish:<\/p>\n<p>pop SI<\/p>\n<p>pop BX<\/p>\n<p>pop DI<\/p>\n<p>pop ES<\/p>\n<p>pop DX<\/p>\n<p>pop CX<\/p>\n<p>pop AX<\/p>\n<p>sti<\/p>\n<p>iret<\/p>\n<p>;_____________________________________________________________________________<\/p>\n<p>;_&#8212;&#8212;== \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f ==&#8212;&#8212;<\/p>\n<p>check_time PROC NEAR<\/p>\n<p>call check_busy<\/p>\n<p>cli<\/p>\n<p>mov AL,4 ;\u0447\u0430\u0441\u044b<\/p>\n<p>call read_clock<\/p>\n<p>mov AH,AL<\/p>\n<p>mov AL,2 ;\u043c\u0438\u043d\u0443\u0442\u044b<\/p>\n<p>call read_clock<\/p>\n<p>mov cx,ax<\/p>\n<p>mov al,0 ;\u0441\u0435\u043a\u0443\u043d\u0434\u044b<\/p>\n<p>call read_clock<\/p>\n<p>sti<\/p>\n<p>ret<\/p>\n<p>check_time ENDP<\/p>\n<p>;_____________________________________________________________________________<\/p>\n<p>;_&#8212;&#8212;== \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c,\u043d\u0435 \u0438\u0434\u0435\u0442 \u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 ==&#8212;&#8212;<\/p>\n<p>check_busy PROC NEAR<\/p>\n<p>push CX<\/p>\n<p>mov CX,1168h<\/p>\n<p>repeat:<\/p>\n<p>mov AL,0ah<\/p>\n<p>cli<\/p>\n<p>out 70h,AL ;\u043f\u043e\u0448\u043b\u0435\u043c \u0432 \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438<\/p>\n<p>jmp short $+2<\/p>\n<p>in AL,71h ;\u043f\u043e\u043b\u0443\u0447\u0438\u043c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/p>\n<p>and AL,80h ;7 \u0431\u0438\u0442 \u0437\u0430\u043d\u044f\u0442\u043e\u0441\u0442\u0438<\/p>\n<p>jz go_out<\/p>\n<p>sti<\/p>\n<p>loop repeat<\/p>\n<p>mov AL,80h<\/p>\n<p>go_out:<\/p>\n<p>pop CX<\/p>\n<p>ret<\/p>\n<p>check_busy ENDP<\/p>\n<p>;______________<\/p>\n","protected":false},"excerpt":{"rendered":"<p>; \u0420\u0435\u0437\u0438\u0434\u0435\u043d\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043a\u0430-\u0431\u0443\u0434\u0438\u043b\u044c\u043d\u0438\u0447\u0435\u043a, \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0447\u0430\u0441\u044b \u0432\u044b\u0432\u043e\u0434\u0438\u0442 ; \u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0430\u0434\u043f\u0438\u0441\u044c, \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[],"_links":{"self":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/7724"}],"collection":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7724"}],"version-history":[{"count":0,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=\/wp\/v2\/posts\/7724\/revisions"}],"wp:attachment":[{"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7724"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/studentpmr.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}