{"id":2611,"date":"2023-02-02T00:50:31","date_gmt":"2023-02-01T21:50:31","guid":{"rendered":"http:\/\/asmcourse.cs.msu.ru\/?page_id=2611"},"modified":"2023-02-06T21:24:55","modified_gmt":"2023-02-06T18:24:55","slug":"%d0%a4%d1%83%d0%bd%d0%ba%d1%86%d0%b8%d0%b8-%d0%b2%d0%b2%d0%be%d0%b4%d0%b0-%d0%b2%d1%8b%d0%b2%d0%be%d0%b4%d0%b0","status":"publish","type":"page","link":"http:\/\/asmcourse.cs.msu.ru\/?page_id=2611","title":{"rendered":"\u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430"},"content":{"rendered":"\n<figure class=\"wp-block-table\"><table><tbody><tr><td><\/td><td>EAX<\/td><td>EDX<\/td><td>ECX<\/td><td>EFLAGS<\/td><\/tr><tr><td><code>io_get_dec<br>io_get_udec<br>io_get_hex<\/code><\/td><td>\u0432\u044b\u0445\u043e\u0434: \u0447\u0438\u0441\u043b\u043e<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><code>io_get_char <\/code><\/td><td>\u0432\u044b\u0445\u043e\u0434: \u0441\u0438\u043c\u0432\u043e\u043b<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><code>io_get_string <\/code><\/td><td>\u0432\u0445\u043e\u0434: \u0430\u0434\u0440\u0435\u0441<\/td><td>\u0432\u0445\u043e\u0434: \u0440\u0430\u0437\u043c\u0435\u0440<\/td><td><\/td><td><\/td><\/tr><tr><td><code>io_print_dec<br>io_print_udec <br>io_print_hex<\/code><\/td><td>\u0432\u0445\u043e\u0434: \u0447\u0438\u0441\u043b\u043e<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><code>io_print_char <\/code><\/td><td>\u0432\u0445\u043e\u0434: \u0441\u0438\u043c\u0432\u043e\u043b<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><code>io_print_string <\/code><\/td><td>\u0432\u0445\u043e\u0434: \u0430\u0434\u0440\u0435\u0441<\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td><code>io_newline<\/code><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 EBX, EBP, ESP, EDI, ESI \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f.<\/p>\n\n\n\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f <\/p>\n\n\n\n<p>\n<pre>extern io_get_dec, io_print_dec, io_print_string<br>extern io_newline<br>global main<br>section .text<br>main:<br>   call io_get_dec ; \u0447\u0438\u0442\u0430\u0435\u043c \u043f\u0435\u0440\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<br>   mov ebx, eax<br>   call io_get_dec ; \u0447\u0438\u0442\u0430\u0435\u043c \u0432\u0442\u043e\u0440\u043e\u0435 \u0447\u0438\u0441\u043b\u043e<br>   add ebx, eax ; \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c<br>   mov eax, report<br> \n   call io_print_string ; \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0442\u0435\u043a\u0441\u0442<br>   mov eax, ebx<br>   call io_print_dec ; \u043f\u0435\u0447\u0430\u0442\u0430\u0435\u043c \u0441\u0443\u043c\u043c\u0443<br>   call io_newline ; \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438<br>   xor eax, eax<br>   \n   ret<br>report db `The sum is: \\0`<\/pre><\/p>\n\n\n\n<p>\u0420\u0430\u043d\u0435\u0435 \u0432 \u0443\u0447\u0435\u0431\u043d\u043e\u043c \u043a\u0443\u0440\u0441\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c <a href=\"http:\/\/asmcourse.cs.msu.ru\/?page_id=169\" data-type=\"page\" data-id=\"169\">\u043c\u0430\u043a\u0440\u043e\u0441\u044b \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>EAX EDX ECX EFLAGS io_get_decio_get_udecio_get_hex \u0432\u044b\u0445\u043e\u0434: \u0447\u0438\u0441\u043b\u043e io_get_char \u0432\u044b\u0445\u043e\u0434: \u0441\u0438\u043c\u0432\u043e\u043b io_get_string \u0432\u0445\u043e\u0434: \u0430\u0434\u0440\u0435\u0441 \u0432\u0445\u043e\u0434: \u0440\u0430\u0437\u043c\u0435\u0440 io_print_decio_print_udec io_print_hex \u0432\u0445\u043e\u0434: \u0447\u0438\u0441\u043b\u043e io_print_char \u0432\u0445\u043e\u0434: \u0441\u0438\u043c\u0432\u043e\u043b io_print_string \u0432\u0445\u043e\u0434: \u0430\u0434\u0440\u0435\u0441 io_newline \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 EBX, EBP, ESP, EDI, ESI \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442\u0441\u044f. \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f extern io_get_dec, io_print_dec, &hellip; <a href=\"http:\/\/asmcourse.cs.msu.ru\/?page_id=2611\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":10,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"http:\/\/asmcourse.cs.msu.ru\/index.php?rest_route=\/wp\/v2\/pages\/2611"}],"collection":[{"href":"http:\/\/asmcourse.cs.msu.ru\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/asmcourse.cs.msu.ru\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/asmcourse.cs.msu.ru\/index.php?rest_route=\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"http:\/\/asmcourse.cs.msu.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2611"}],"version-history":[{"count":5,"href":"http:\/\/asmcourse.cs.msu.ru\/index.php?rest_route=\/wp\/v2\/pages\/2611\/revisions"}],"predecessor-version":[{"id":2620,"href":"http:\/\/asmcourse.cs.msu.ru\/index.php?rest_route=\/wp\/v2\/pages\/2611\/revisions\/2620"}],"wp:attachment":[{"href":"http:\/\/asmcourse.cs.msu.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2611"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}