{"id":470721,"date":"2025-08-14T09:01:10","date_gmt":"2025-08-14T09:01:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=470721"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=470721","title":{"rendered":"<span>\u041a\u0430\u043a \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u0434 DOS-\u0438\u0433\u0440\u044b: \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e\u0435 \u0434\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u0442\u0440\u043e-\u0438\u0433\u0440 (\u0447\u0430\u0441\u0442\u044c 2)<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u042d\u043f\u0438\u0433\u0440\u0430\u0444<\/h3>\n<blockquote>\n<p><em>&#171;The registers are the CPU\u2019s own workspace. They are not memory, and they are not variables. They are the places where the processor keeps the data it is working on right now &#8212; like a craftsman\u2019s bench, where only the tools and materials for the current task are kept.&#187;<\/em><\/p>\n<p><em>&#171;The stack is not just a pile of return addresses. It is the memory of the program\u2019s decisions. Every <\/em><code><em>call<\/em><\/code><em> is a promise to return; every <\/em><code><em>push<\/em><\/code><em> is a thought set aside for later. In real mode, the stack pointer (SP) is the program\u2019s short-term memory.&#187;<\/em><\/p>\n<p><em>&#171;Segments are not an arbitrary limitation. They are a reflection of the physical world &#8212; of address lines, of memory chips, of the way data flows from one place to another. The segment:offset model is not a hack; it is a bridge between 16-bit registers and 20-bit addresses.&#187;<\/em><\/p>\n<p>&#8212; \u0420\u044d\u0439 \u0414\u0443\u043d\u043a\u0430\u043d (Ray Duncan): <em>&#171;<\/em><a href=\"https:\/\/www.pcjs.org\/documents\/books\/mspl13\/msdos\/encyclopedia\/section2\/\" rel=\"noopener noreferrer nofollow\"><em>Programming in the MS-DOS Environment<\/em><\/a><em>&#171;<\/em>, <em>&#171;<\/em><a href=\"https:\/\/www.pcjs.org\/documents\/books\/mspl13\/msdos\/advdos\/\" rel=\"noopener noreferrer nofollow\"><em>Advanced MS-DOS Programming<\/em><\/a><em>&#171;<\/em><\/p>\n<\/blockquote>\n<blockquote>\n<p><em>&#171;Registers are the fastest storage locations in the computer. But their speed is not what makes them special. What makes them special is that they are the only locations the CPU can operate on directly. You don\u2019t compute with memory &#8212; you compute with registers, and memory is just a place to keep data between uses.&#187;<\/em><\/p>\n<p><em>&#171;The stack is the foundation of structured programming. Without it, there would be no functions, no recursion, no local variables. The <\/em><code><em>call<\/em><\/code><em> and <\/em><code><em>ret<\/em><\/code><em> instructions are the verbs of program flow, and the stack is their grammar.&#187;<\/em><\/p>\n<p><em>&#171;Segmentation is often misunderstood as a flaw, but in the context of the 8086, it was a brilliant solution. It allowed a 16-bit processor to address 1 MB of memory &#8212; a compromise between cost, complexity, and capability. The segment registers (CS, DS, SS, ES) are not overhead &#8212; they are the keys to the kingdom.&#187;<\/em><\/p>\n<p>&#8212; \u0420\u044d\u043d\u0434\u044d\u043b\u043b \u0425\u0430\u0439\u0434 (Randall Hyde): <em>&#171;<\/em><a href=\"https:\/\/www.ic.unicamp.br\/~pannain\/mc404\/aulas\/pdfs\/Art%20Of%20Intel%20x86%20Assembly.pdf\" rel=\"noopener noreferrer nofollow\"><em>The Art of Assembly Language<\/em><\/a><em>&#171;<\/em><\/p>\n<\/blockquote>\n<blockquote>\n<p><em>\u201cCharm can fool you.\u201d<\/em><\/p>\n<p>&#8212; \u0420\u0430\u043b\u044c\u0444 \u0411\u0440\u043e\u0443\u043d (Ralf Brown): <em>&#171;Ralf Brown\u2019s Interrupt&#187; List&#187;<\/em> (<a href=\"http:\/\/guideme.itgo.com\/atozofc\/ch71_1.pdf\" rel=\"noopener noreferrer nofollow\">\u0447\u0430\u0441\u0442\u044c 1<\/a>, <a href=\"http:\/\/guideme.itgo.com\/atozofc\/ch71_2.pdf\" rel=\"noopener noreferrer nofollow\">\u0447\u0430\u0441\u0442\u044c 2<\/a>, <a href=\"http:\/\/guideme.itgo.com\/atozofc\/ch71_3.pdf\" rel=\"noopener noreferrer nofollow\">\u0447\u0430\u0441\u0442\u044c 3<\/a>)<\/p>\n<\/blockquote>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0432 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0442\u0430\u043b\u0438, \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0441 \u043a\u043e\u0434\u0430 \u0438 \u043d\u0435 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439, \u0430 \u0441\u043e \u0441\u043b\u043e\u0432 \u0442\u0435\u0445, \u043a\u0442\u043e \u0432\u0441\u0451 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u043b \u0433\u043b\u0443\u0431\u0436\u0435 \u0432\u0441\u0435\u0445. <\/p>\n<p>\u0426\u0438\u0442\u0430\u0442\u044b \u0420\u044d\u044f \u0414\u0443\u043d\u043a\u0430\u043d\u0430, \u0420\u044d\u043d\u0434\u044d\u043b\u043b\u0430 \u0425\u0430\u0439\u0434\u044b \u0438 \u0420\u0430\u043b\u044c\u0444\u0430 \u0411\u0440\u043e\u0443\u043d\u0430 &#8212; \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0440\u044b\u0432\u043a\u0438 \u0438\u0437 \u043a\u043d\u0438\u0433. \u042d\u0442\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u044f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432, \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432 \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u0433\u0440.<\/p>\n<ul>\n<li>\n<p>\u0420\u044d\u0439 \u0414\u0443\u043d\u043a\u0430\u043d \u0432 \u0441\u0432\u043e\u0438\u0445 \u043a\u043d\u0438\u0433\u0430\u0445, &#171;Programming in the MS-DOS Environment&#187; \u0438 &#171;Advanced MS-DOS Programming&#187;, \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u043b API DOS. \u041e\u043d \u0443\u0447\u0438\u043b \u043c\u044b\u0441\u043b\u0438\u0442\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430, \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u0436\u0435\u043b\u0435\u0437\u043e, \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432\u043c\u0435\u0441\u0442\u0435. \u0415\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u044b\u043b\u0438 \u0431\u0438\u0431\u043b\u0438\u0435\u0439 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u0438\u0441\u0430\u043b \u043d\u0430 C \u0438 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435 \u043f\u043e\u0434 DOS. \u041e\u043d\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c\u0438 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0442\u043e\u0447\u043d\u044b\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b 16-\u0431\u0438\u0442\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0420\u044d\u043d\u0434\u044d\u043b\u043b \u0425\u0430\u0439\u0434 \u0441 &#171;The Art of Assembly Language&#187; \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 &#8212; \u043e\u043d \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 \u0438\u0437 &#171;\u044f\u0437\u044b\u043a\u0430 \u043c\u0430\u0448\u0438\u043d&#187; \u0432 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f, \u043f\u043e\u0434\u0434\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0435 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435. \u0415\u0433\u043e \u043a\u043d\u0438\u0433\u0430 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a, \u0430 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445, \u0438 \u043c\u0435\u043d\u044f \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u043e\u043d\u0430 \u0441\u0442\u0430\u043b\u0430 \u043f\u0435\u0440\u0432\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u043a \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044e, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 &#171;\u0438\u0437\u043d\u0443\u0442\u0440\u0438&#187;;<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u043b\u044c\u0444 \u0411\u0440\u043e\u0443\u043d \u0438 \u0435\u0433\u043e &#171;Interrupt List<em>&#171;<\/em> &#8212; \u044d\u0442\u043e \u0430\u0440\u0445\u0438\u0432 \u0437\u043d\u0430\u043d\u0438\u0439, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0431\u0435\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f\u043c. \u0415\u0433\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 &#8212; \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a\u0440\u043e\u043f\u043e\u0442\u043b\u0438\u0432\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u0430\u0439\u0442, \u043a\u0430\u0436\u0434\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0431\u044b\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u044b, \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b. RBIL \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 DOSBox, QEMU, FreeDOS \u0438 \u0441\u0442\u0430\u043b \u043e\u0441\u043d\u043e\u0432\u043e\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445, \u043a\u0442\u043e \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u0442\u0430\u0440\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u0440\u0430\u0431\u043e\u0442 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0438\u0445 \u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u0438\u0435\u043c &#8212; \u043f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433 \u043a \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u0443 \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0438\u043d\u0438\u0440\u0438\u043d\u0433\u0443. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u044f \u0441 \u043d\u0438\u0445 \u0438 \u043d\u0430\u0447\u0430\u043b.<\/p>\n<h3>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b<\/h3>\n<p>\u041d\u0430 \u0425\u0430\u0431\u0440\u0435, \u0434\u0430 \u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430\u0445, \u044f \u043d\u0435 \u0440\u0430\u0437 \u0432\u0438\u0434\u0435\u043b \u0434\u0438\u0441\u043a\u0443\u0441\u0441\u0438\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b. \u041e\u0434\u0438\u043d \u0433\u043e\u0432\u043e\u0440\u0438\u0442: &#171;\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 CPU&#187;. \u0414\u0440\u0443\u0433\u043e\u0439: &#171;\u042d\u0442\u043e \u044f\u0447\u0435\u0439\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438&#187;.  \u0422\u0440\u0435\u0442\u0438\u0439: &#171;\u042d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0430 \u043d\u0435 \u0434\u0430\u043d\u043d\u044b\u0435&#187;. \u0418 \u0432\u0441\u0435 \u043e\u043d\u0438, \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0435\u0440\u0435, \u043f\u0440\u0430\u0432\u044b. \u041d\u043e \u0432\u0441\u0435 \u043e\u043d\u0438 &#8212; \u0447\u0430\u0441\u0442\u044c \u0438\u0441\u0442\u0438\u043d\u044b. \u042f \u043d\u0435 \u043b\u044e\u0431\u043b\u044e \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c: &#171;\u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e&#187;. \u041a\u043e\u0433\u0434\u0430 \u043c\u0435\u043d\u044f \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442, \u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043f\u043e-\u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438, \u0431\u0435\u0437 \u0441\u0443\u0445\u0438\u0445 \u0446\u0438\u0442\u0430\u0442. \u041d\u043e \u0441 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c\u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u0438\u043d\u0430\u0447\u0435. \u041d\u0435 \u0445\u043e\u0447\u0443 \u043d\u0430\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0451 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043d\u0435 \u0445\u043e\u0447\u0443 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0445\u043e\u043b\u0438\u0432\u0430\u0440, \u043d\u0435 \u0445\u043e\u0447\u0443 \u0447\u0442\u043e\u0431\u044b \u0447\u0435\u0440\u0435\u0437 \u0433\u043e\u0434 \u043a\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b: &#171;\u0410\u0432\u0442\u043e\u0440 \u043e\u0448\u0438\u0431\u0441\u044f! \u0420\u0435\u0433\u0438\u0441\u0442\u0440 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u043e\u043d \u0441\u043a\u0430\u0437\u0430\u043b&#187;. \u042f \u0434\u0430\u043c \u0432\u0430\u043c \u0442\u043e, \u043d\u0430 \u0447\u0442\u043e \u043e\u043f\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f &#8212; \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b Intel, \u043e\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e 4004 \u0434\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 x86-64. \u042d\u0442\u043e \u043d\u0435 \u043f\u043e\u0431\u0435\u0433 \u043e\u0442 \u043e\u0442\u0432\u0435\u0442\u0430, \u0430 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0432\u0441\u0442\u0430\u0442\u044c \u043d\u0430 \u0442\u0432\u0451\u0440\u0434\u0443\u044e \u043f\u043e\u0447\u0432\u0443. \u0422\u043e, \u0447\u0442\u043e \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0431\u0435\u0437 \u0438\u0441\u043a\u0430\u0436\u0435\u043d\u0438\u0439, \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0442\u043e\u043c, \u0433\u0434\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\">\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0413\u043e\u0434<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0441\u044b\u043b\u043a\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 4004<\/p>\n<\/td>\n<td>\n<p align=\"left\">1971<\/p>\n<\/td>\n<td>\n<p align=\"left\">MCS-4 User\u2019s Manual<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 8008<\/p>\n<\/td>\n<td>\n<p align=\"left\">1972<\/p>\n<\/td>\n<td>\n<p align=\"left\">8008 User&#8217;s Manual<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 8080<\/p>\n<\/td>\n<td>\n<p align=\"left\">1974<\/p>\n<\/td>\n<td>\n<p align=\"left\">8080 User&#8217;s Manual<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 8086<\/p>\n<\/td>\n<td>\n<p align=\"left\">1978<\/p>\n<\/td>\n<td>\n<p align=\"left\">8086 Family Manual<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 80286<\/p>\n<\/td>\n<td>\n<p align=\"left\">1982<\/p>\n<\/td>\n<td>\n<p align=\"left\">80286\/80287 PRM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 80386<\/p>\n<\/td>\n<td>\n<p align=\"left\">1985<\/p>\n<\/td>\n<td>\n<p align=\"left\">80386 PPR<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 80486<\/p>\n<\/td>\n<td>\n<p align=\"left\">1989<\/p>\n<\/td>\n<td>\n<p align=\"left\">80486 PRM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">IA-32 \/ x86-64<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0448\u0435 \u0432\u0440\u0435\u043c\u044f<\/p>\n<\/td>\n<td>\n<p align=\"left\">Intel SDM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/intel.com\" rel=\"noopener noreferrer nofollow\">intel.com<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<blockquote>\n<p><strong>\u0412\u044b\u0432\u043e\u0434<\/strong>: \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u044f\u0447\u0435\u0439\u043a\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432, \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041e\u043d\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u0430\u0434\u0440\u0435\u0441\u043d\u044b\u0445 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439.<\/p>\n<p><em>\u2014 \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435: Intel\u00ae 386\u2122 Programmer\u2019s Reference Manual (1986), Volume 1, Section 3.2 &#171;Registers&#187;, \u0438 Intel 80486\u2122 Microprocessor Family Programmer\u2019s Reference Manual (1992), Chapter 3 &#171;Architecture Overview&#187;<\/em><\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Intel \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u0437 \u0420\u043e\u0441\u0441\u0438\u0438 \u0438 \u0411\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u0438\u0438. \u042f \u0437\u043d\u0430\u044e \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043d\u0435\u0434\u043e\u0440\u0430\u0437\u0443\u043c\u0435\u043d\u0438\u0435 \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0418\u0422-\u0443\u043c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0418\u0422-\u0443\u043c\u043d\u0438\u0446, \u043e\u043d\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u044e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0443\u044e \u0438\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<\/blockquote>\n<p><strong>\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 \u0432 80386\/80486<\/strong><\/p>\n<p><strong>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u043e\u0431\u0449\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (General-Purpose Registers, GPR).<\/strong><\/p>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440: 32 \u0431\u0438\u0442\u0430 (\u0432 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435) \u0438 16 \u0431\u0438\u0442 (\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435).<br \/>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"center\">32 \u0431\u0438\u0442\u0430<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"center\">16 \u0431\u0438\u0442<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">8-\u0431\u0438\u0442\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438<\/p>\n<\/td>\n<td>\n<p align=\"center\">\u041a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EAX<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">AX<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">AH, AL<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0410\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440 (Accumulator)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EBX<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">BX<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">BH, BL<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 (Base Register)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">ECX<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">CX<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">CH, CL<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0447\u0451\u0442\u0447\u0438\u043a (Count Register)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EDX<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">DX<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">DH, DL<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 (Data Register)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">ESI<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">SI<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">&#8212;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0418\u043d\u0434\u0435\u043a\u0441 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 (Source Index)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EDI<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">DI<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">&#8212;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0418\u043d\u0434\u0435\u043a\u0441 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (Destination Index)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">ESP<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">SP<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">&#8212;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0441\u0442\u0435\u043a\u0430 (Stack Pointer)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EBP<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">BP<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">&#8212;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (Base Pointer)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430<\/strong><\/p>\n<p><strong>EAX \/ AX \/ AH \/ AL<\/strong> &#8212; \u0410\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440 (Accumulator).<\/p>\n<blockquote>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u0422\u0435\u0440\u043c\u0438\u043d &#171;\u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440&#187; \u0443\u0445\u043e\u0434\u0438\u0442 \u0441\u0432\u043e\u0438\u043c\u0438 \u043a\u043e\u0440\u043d\u044f\u043c\u0438 \u0432 \u0441\u0430\u043c\u044b\u0435 \u0440\u0430\u043d\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b 8080 \u0438 8086<\/p>\n<\/blockquote>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u043b\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 <code>mul<\/code>, <code>div<\/code>, <code>in<\/code>, <code>out<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 (\u0430\u043d\u0430\u043b\u043e\u0433 <code>return<\/code> \u0432 C);<\/p>\n<\/li>\n<li>\n<p>\u0427\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u0445 DOS\/BIOS (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, int 21h).<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b:<\/p>\n<pre><code class=\"cpp\">#include &lt;dos.h&gt;  void main(void) {   _AX = 0x13;         \/\/ \u042d\u0442\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 `mov ax, 13h`   geninterrupt(0x10); \/\/ \u042d\u0442\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 `int 10h` }<\/code><\/pre>\n<pre><code class=\"assembly\">; \u0431\u0430\u0439\u0442\u044b: b8 13 00 mov ax, 13h    ; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0438\u0434\u0435\u043e\u0440\u0435\u0436\u0438\u043c\u0430 BIOS \u0432 VGA 300x200, 256 \u0446\u0432\u0435\u0442\u043e\u0432                ; \u043a\u043e\u0434 mov ax, 13h \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u0435\u043d \u0442\u0430\u043a\u043e\u043c\u0443 \u043a\u043e\u0434\u0443 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0441\u0442\u0440\u043e\u043a:                ;                ; mov ah, 00h                ; mov al, 13h ; \u0431\u0430\u0439\u0442\u044b: cd 10 int 10h<\/code><\/pre>\n<pre><code class=\"cpp\">#include &lt;dos.h&gt; #include &lt;stdio.h&gt;  void main(void) {   int res;   res = 5;   res = res + 10; }<\/code><\/pre>\n<pre><code class=\"assembly\">; \u0431\u0430\u0439\u0442\u044b: be 05 00 mov si, 0x5    ; SI = 5 ; \u0431\u0430\u0439\u0442\u044b: 8b c6 mov ax, si     ; \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0432 \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440 AX = SI = 5 ; \u0431\u0430\u0439\u0442\u044b: 05 0a 00 add ax, 0xa    ; AX = 15, SI = 5<\/code><\/pre>\n<p><strong>EBX \/ BX \/ BH \/ BL<\/strong> &#8212; \u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 (Base Register)<\/p>\n<blockquote>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u041f\u043e\u0447\u0435\u043c\u0443 &#171;\u0431\u0430\u0437\u043e\u0432\u044b\u0439&#187;? EBX\/BX \u0447\u0430\u0441\u0442\u043e \u0441\u043b\u0443\u0436\u0438\u0442 \u043e\u0441\u043d\u043e\u0432\u043e\u0439 \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u0430<\/p>\n<\/blockquote>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u0430, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0436\u0438\u043c\u0430\u0445 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u0432\u0438\u0434\u0430 [ebx + esi], [bx + di] \u0438 \u0442.\u0434.;<\/p>\n<\/li>\n<li>\n<p>\u0427\u0430\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">mov ebx, [0x1234]     ; \u0430\u0434\u0440\u0435\u0441 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e,                       ; \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 player mov eax, [ebx + 4]    ; \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0443 Y<\/code><\/pre>\n<p><strong>ECX \/ CX \/ CH \/ CL<\/strong> &#8212; \u0421\u0447\u0451\u0442\u0447\u0438\u043a (Count Register)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0430 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0427\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445 <code>loop<\/code>, <code>loope<\/code>, <code>loopne<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <code>rep<\/code> (<code>rep movsb<\/code>, <code>rep stosb<\/code>);<\/p>\n<\/li>\n<li>\n<p> \u0412 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445 \u0441\u0434\u0432\u0438\u0433\u0430 (<code>shl<\/code>, <code>shr<\/code>) <code>CL<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u0438\u0442 \u0434\u043b\u044f \u0441\u0434\u0432\u0438\u0433\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">mov cx, 0x64       ; 100 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 dec ax loop 0x2345        ; \u0430\u0434\u0440\u0435\u0441 \u0446\u0438\u043a\u043b\u0430<\/code><\/pre>\n<p><strong>EDX \/ DX \/ DH \/ DL<\/strong> &#8212; \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 (Data Register)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a: \u0432\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434, \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435, \u0434\u0435\u043b\u0435\u043d\u0438\u0435.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0412 \u043f\u0430\u0440\u0435 \u0441 EAX \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 32-\u0431\u0438\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0432 16-\u0431\u0438\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435) \u0434\u043b\u044f <code>mul<\/code> \u0438 <code>div<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 DOS API (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, DS:DX &#8212; \u0430\u0434\u0440\u0435\u0441 \u0441\u0442\u0440\u043e\u043a\u0438).<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b:<\/p>\n<pre><code class=\"assembly\">mov ax, 50000 mov dx, 0 div bx           ; AX = \u0447\u0430\u0441\u0442\u043d\u043e\u0435, DX = \u043e\u0441\u0442\u0430\u0442\u043e\u043a<\/code><\/pre>\n<pre><code class=\"assembly\">mov dx, [0x3456] ; \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 mov ah, 3Dh      ; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0444\u0430\u0439\u043b\u0430 int 21h          ; \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b<\/code><\/pre>\n<p><strong>ESI \/ SI<\/strong> &#8212; \u0418\u043d\u0434\u0435\u043a\u0441 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 (Source Index)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <code>rep<\/code> \u0432 <code>movsb<\/code>, <code>movsw<\/code>, <code>movsd<\/code> ;<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0444\u043b\u0430\u0433\u0430 <code>DF<\/code> .<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">mov esi, [0x1234] mov edi, [0x5678] mov ecx, 100 rep movsb          ; \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c 100 \u0431\u0430\u0439\u0442<\/code><\/pre>\n<p><strong>EDI \/ DI<\/strong> &#8212; \u0418\u043d\u0434\u0435\u043a\u0441 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (Destination Index)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 <code>movsb<\/code>, <code>stosb<\/code>, <code>cmpsd<\/code> \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445;<\/p>\n<\/li>\n<li>\n<p>\u0427\u0430\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e\u043f\u0430\u043c\u044f\u0442\u044c (0xA000h) \u0438\u043b\u0438 \u0431\u0443\u0444\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043f\u0430\u0440\u0435 \u0441 ESI \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0431\u043b\u043e\u043a\u043e\u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">mov edi, 0xA000h    ; \u0432\u0438\u0434\u0435\u043e\u043f\u0430\u043c\u044f\u0442\u044c mov al, 15          ; \u0431\u0435\u043b\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c mov ecx, 64000      ; 320x200 rep stosb           ; \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d<\/code><\/pre>\n<p><strong>ESP \/ SP<\/strong> &#8212; \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0441\u0442\u0435\u043a\u0430 (Stack Pointer)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0443 \u0441\u0442\u0435\u043a\u0430.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 <code>push<\/code>, <code>pop<\/code>, <code>call<\/code>, <code>ret<\/code> ;<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u0440\u0435 \u0441 <code>SS<\/code> (\u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u0441\u0442\u0435\u043a\u0430): <code>SS:ESP<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">push ax         ; ESP -= 2 pop bx          ; BX = [ESP], ESP += 2<\/code><\/pre>\n<blockquote>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong>  \u041d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e<\/p>\n<\/blockquote>\n<p><strong>EBP \/ BP<\/strong> &#8212; \u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (Base Pointer)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043e \u043a\u0430\u0434\u0440\u0430 \u0441\u0442\u0435\u043a\u0430 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c (<code>[ebp+8]<\/code>) \u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c ( <code>[ebp-4]<\/code> );<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438: push bp ; mov bp, sp ;<\/p>\n<\/li>\n<li>\n<p>\u041f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0441\u0442\u0435\u043a-\u0442\u0440\u0435\u0439\u0441\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">push bp mov bp, sp mov ax, [bp+4]   ; \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 mov bx, [bp-2]   ; \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f pop bp ret<\/code><\/pre>\n<blockquote>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> EBP (BP) &#8212; \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u043b\u044f \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0438\u043d\u0438\u0440\u0438\u043d\u0433\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u0442\u0443\u0440\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<\/blockquote>\n<p>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u043e\u0431\u0449\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f &#8212; \u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u041f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0438\u0445 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f &#8212; \u043a\u043b\u044e\u0447 \u043a \u0430\u043d\u0430\u043b\u0438\u0437\u0443 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u0434\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0438 \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0438\u043d\u0438\u0440\u0438\u043d\u0433\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043f\u043e\u0434 DOS \u0438 \u0440\u0430\u043d\u043d\u0438\u0435 32-\u0431\u0438\u0442\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p><strong>\u0421\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b (Segment Registers)<\/strong><\/p>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440: 16 \u0431\u0438\u0442.<br \/>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0434\u043b\u044f \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"79\" width=\"79\">\n<p align=\"center\">\u0420\u0435\u0433\u0438\u0441\u0442\u0440<\/p>\n<\/td>\n<td data-colwidth=\"138\" width=\"138\">\n<p align=\"center\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"79\" width=\"79\">\n<p align=\"left\">CS<\/p>\n<\/td>\n<td data-colwidth=\"138\" width=\"138\">\n<p align=\"left\">Code Segment<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0435\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430 &#8212; \u043e\u0442\u043a\u0443\u0434\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0447\u0438\u0442\u0430\u0435\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 (<code>IP<\/code> &#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0432\u043d\u0443\u0442\u0440\u0438 <code>CS<\/code>).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"79\" width=\"79\">\n<p align=\"left\">DS<\/p>\n<\/td>\n<td data-colwidth=\"138\" width=\"138\">\n<p align=\"left\">Data Segment<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0435\u0433\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435 \u043a \u0434\u0430\u043d\u043d\u044b\u043c.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"79\" width=\"79\">\n<p align=\"left\">SS<\/p>\n<\/td>\n<td data-colwidth=\"138\" width=\"138\">\n<p align=\"left\">Stack Segment<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0435\u0433\u043c\u0435\u043d\u0442 \u0441\u0442\u0435\u043a\u0430 &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441 <code>SP<\/code> \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0441\u0442\u0435\u043a\u0443.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"79\" width=\"79\">\n<p align=\"left\">ES<\/p>\n<\/td>\n<td data-colwidth=\"138\" width=\"138\">\n<p align=\"left\">Extra Segment<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u042d\u043a\u0441\u0442\u0440\u0430 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 &#8212; \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 (<code>movsb<\/code>, <code>stosb<\/code>).<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"79\" width=\"79\">\n<p align=\"left\">FS, GS<\/p>\n<\/td>\n<td data-colwidth=\"138\" width=\"138\">\n<p align=\"left\">80386+<\/p>\n<\/td>\n<td>\n<p align=\"left\">Frame Segment \u0438 Global Segment &#8212; \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 64-\u0431\u0438\u0442\u043d\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u0417\u0430\u0447\u0435\u043c \u043e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b \u0432 \u0440\u0435\u0432\u0435\u0440\u0441\u0435?<\/strong><\/p>\n<p>\u041f\u0440\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0435 .COM \u0438\u043b\u0438 .EXE \u0444\u0430\u0439\u043b\u043e\u0432 \u043f\u043e\u0434 DOS \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0430\u0436\u043d\u044b:<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430\u043c\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0421\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u043c\u0438, \u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u043f\u0430\u043c\u044f\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0435\u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u0435\u0434\u0451\u0442 \u043a \u043d\u0435\u0432\u0435\u0440\u043d\u043e\u043c\u0443 \u0442\u043e\u043b\u043a\u043e\u0432\u0430\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043a\u043e\u0434\u0430.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c:<\/strong><\/p>\n<ul>\n<li>\n<p><code>CS:IP<\/code> &#8212; \u0432\u0441\u0435\u0433\u0434\u0430 \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f. <code>CS<\/code> &#8212; \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u043a\u043e\u0434\u0430, <code>IP<\/code> &#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043a\u043e\u043c\u0430\u043d\u0434. \u041f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b DOS \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0435\u0451 \u0432 \u0441\u0435\u0433\u043c\u0435\u043d\u0442, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430. Ghidra \u0438 IDA \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0434\u0440\u0435\u0441\u0430 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 0x100), \u043d\u043e \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u043e <code>CS:0x100<\/code> , \u0433\u0434\u0435 <code>CS<\/code> &#8212; \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 call 0x150, \u044d\u0442\u043e \u043d\u0435 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441. \u042d\u0442\u043e \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u044b\u0437\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0430. \u0424\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u0434\u0440\u0435\u0441: (CS &lt;&lt; 4) + 0x150. \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 EIP (IP) \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438;<\/p>\n<\/li>\n<li>\n<p><code>DS<\/code> &#8212; \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u0434\u0430\u043d\u043d\u044b\u0445: \u0433\u0434\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u043a\u0438, \u043c\u0430\u0441\u0441\u0438\u0432\u044b, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b. \u0412 DOS-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445 DS \u0447\u0430\u0441\u0442\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a <code>CS<\/code> (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 .COM \u0444\u0430\u0439\u043b\u0430\u0445), \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u043a\u043e\u0434 \u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0435. \u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u0438\u0434\u0438\u0442\u0435 mov ax, cs ; mov ds, ax &#8212; \u0437\u043d\u0430\u0447\u0438\u0442, \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043a\u043e\u0434 \u0432 \u043e\u0434\u043d\u043e\u043c \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u0435;<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"assembly\">mov ax, cs mov ds, ax<\/code><\/pre>\n<ul>\n<li>\n<p><code>DS:DX<\/code> &#8212; \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0441\u0442\u0440\u043e\u043a \u0432 DOS API \u0438 \u043e\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0449\u0430\u044f\u0441\u044f \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c $.<code>DX<\/code> &#8212; \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435, <code>DS<\/code> &#8212; \u0441\u0435\u0433\u043c\u0435\u043d\u0442. \u0415\u0441\u043b\u0438 <code>DS<\/code> \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u0441\u0442\u0440\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0438\u0433\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043e\u0434\u043d\u043e\u0441\u0435\u0433\u043c\u0435\u043d\u0442\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c (\u043a\u043e\u0434 = \u0434\u0430\u043d\u043d\u044b\u0435);<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"assembly\">mov ah, 09h           ; \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u0432\u044b\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438 mov dx, [0x1234]      ; \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 mov ax, cs mov ds, ax            ; DS = CS int 21h<\/code><\/pre>\n<ul>\n<li>\n<p><code>SS:SP<\/code> &#8212; \u0441\u0442\u0435\u043a, \u0433\u0434\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u044b. <code>SS<\/code> &#8212; \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u0441\u0442\u0435\u043a\u0430, <code>SP<\/code> &#8212; \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0441\u0442\u0435\u043a\u0430. \u0412 DOS-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445 <code>SS<\/code> \u0438 <code>SP<\/code> \u0447\u0430\u0441\u0442\u043e \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u043d\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"assembly\">mov ax, stack_seg mov ss, ax mov sp, 0xFFFE<\/code><\/pre>\n<ul>\n<li>\n<p><code>ES<\/code> &#8212; \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442: \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441 <code>DI<\/code>. \u0412 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 <code>ES<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>movsb<\/code> \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u0442 \u0431\u0430\u0439\u0442 \u0438\u0437 <code>DS:SI<\/code> \u0432 <code>ES:DI<\/code> .<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"assembly\">mov ax, 0xA000 mov es, ax mov di, 0               ; \u043d\u0430\u0447\u0430\u043b\u043e \u0432\u0438\u0434\u0435\u043e\u043f\u0430\u043c\u044f\u0442\u0438 mov al, 15              ; \u0431\u0435\u043b\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c mov cx, 64000           ; 320x200 rep stosb               ; \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d<\/code><\/pre>\n<p><strong>\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0444\u043b\u0430\u0433\u043e\u0432 EFLAGS<\/strong><\/p>\n<p>EFLAGS (FLAGS) &#8212; \u044d\u0442\u043e 32-\u0431\u0438\u0442\u043d\u044b\u0439 (16-\u0431\u0438\u0442\u043d\u044b\u0439) \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u0440\u0430\u043d\u0438\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u041e\u043d \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043a\u0430\u043a \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u044b, \u0446\u0438\u043a\u043b\u044b \u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0430.<\/p>\n<blockquote>\n<p><em>\u2014 \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435: Intel\u00ae 386\u2122 Programmer\u2019s Reference Manual, Volume 1, Section 3.2.3 &#171;EFLAGS Register&#187;<\/em><\/p>\n<\/blockquote>\n<p>\u0412 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0435 \u0434\u0438\u0437\u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, EFLAGS (FLAGS) &#8212; \u044d\u0442\u043e &#171;\u043d\u0435\u0432\u0438\u0434\u0438\u043c\u044b\u0439&#187; \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439. \u0412\u044b \u043d\u0435 \u0432\u0438\u0434\u0438\u0442\u0435 \u0435\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 <code>mov<\/code> \u0438\u043b\u0438 <code>add<\/code> , \u043d\u043e \u043e\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0435\u0442, \u043a\u0443\u0434\u0430 \u043f\u043e\u0439\u0434\u0451\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u043e\u0441\u043b\u0435 <code>cmp<\/code>, <code>test<\/code>, <code>sub<\/code>.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">\u0411\u0438\u0442<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"center\">\u0421\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u0438\u0435<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"center\">\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">16 \u0431\u0438\u0442<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">32 \u0431\u0438\u0442\u0430<\/p>\n<\/td>\n<td>\n<p align=\"center\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">0<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">CF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Carry Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 &#8212; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">1<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">Reserved<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td>\n<p align=\"left\">\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">2<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">PF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Parity Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0427\u0451\u0442\u043d\u043e\u0441\u0442\u044c &#8212; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0435\u0434\u0438\u043d\u0438\u0446 \u0432 \u043c\u043b\u0430\u0434\u0448\u0438\u0445 8 \u0431\u0438\u0442\u0430\u0445 \u0447\u0451\u0442\u043d\u043e\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">3<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">Reserved<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td>\n<p align=\"left\">\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">4<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">AF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Auxiliary Carry Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0444\u043b\u0430\u0433 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0430 \u0434\u043b\u044f BCD (Binary Coded Decimal)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">5<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">Reserved<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td>\n<p align=\"left\">\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">6<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">ZF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Zero Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u043d\u0443\u043b\u044f &#8212; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0430\u0432\u0435\u043d \u043d\u0443\u043b\u044e<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">7<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">SF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Sign Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u0437\u043d\u0430\u043a\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 &#8212; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">8<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">TF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Trap Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u0442\u0440\u0430\u0441\u0441\u0438\u0440\u043e\u0432\u043a\u0438 &#8212; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 &#171;\u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439&#187; \u0440\u0435\u0436\u0438\u043c (\u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">9<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">IF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Interrupt Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 &#8212; \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">10<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">DF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Direction Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f &#8212; \u0434\u043b\u044f \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">11<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">OF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Overflow Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f &#8212; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0431\u0438\u0442, \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0437\u0430 \u0441\u0442\u0430\u0440\u0448\u0438\u043c \u0437\u043d\u0430\u043a\u043e\u0432\u044b\u043c \u0431\u0438\u0442\u043e\u043c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">12<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">IOPL<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">I\/O Privilege Level<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 &#8212;  \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0439 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430. IOPL 0 &#8212; \u044d\u0442\u043e \u0440\u0435\u0436\u0438\u043c \u044f\u0434\u0440\u0430, \u0430 3 &#8212; \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0440\u0435\u0436\u0438\u043c.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">13<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">IOPL<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">I\/O Privilege Level<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">14<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">NT<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Nested Task Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 &#8212; \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0446\u0435\u043f\u043e\u0447\u043a\u043e\u0439 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">15<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">Reserved<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td>\n<p align=\"left\">\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">16<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">RF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Resume Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u0432\u043e\u0437\u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f &#8212; \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">17<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">VM<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Virtual 8086 Mode Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u0440\u0435\u0436\u0438\u043c\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b 8086 &#8212; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0435\u0436\u0438\u043c\u0430 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 8086<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">18<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">AC<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Alignment Check Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f &#8212; \u0443\u0441\u0442\u0430\u043d\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u044b\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">19<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">VIF<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Virtual Interrupt Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f &#8212; \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0444\u043b\u0430\u0433\u0430 IF \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 8086 <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">20<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">VIP<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Virtual Interrupt Pending Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f &#8212; \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 8086<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">21<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p align=\"left\">ID<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"left\">Identification Flag<\/p>\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"left\">\n<\/td>\n<td data-colwidth=\"50\" width=\"50\">\n<p align=\"center\">+<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0424\u043b\u0430\u0433 ID &#8212; \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u0444\u043b\u0430\u0433 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d, \u0442\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f cpuid<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u043b\u0430\u0433\u0438 \u0432 \u0440\u0435\u0432\u0435\u0440\u0441\u0435:<\/strong><\/p>\n<p><strong>CF<\/strong> (Carry Flag) (\u0431\u0438\u0442 0) &#8212; \u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0438 \u0437\u0430\u0451\u043c<\/p>\n<ul>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0435 \u0438\u0437 \u0441\u0442\u0430\u0440\u0448\u0435\u0433\u043e \u0431\u0438\u0442\u0430 (add, adc) \u0438\u043b\u0438 \u0437\u0430\u0435\u043c\u0435 (sub, sbb);<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 jc (jump if carry), jnc, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441 \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">add ax, bx     ; \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435, \u0442\u043e CF = 1 jc overflow    ; \u043f\u0435\u0440\u0435\u0439\u0442\u0438, \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435<\/code><\/pre>\n<p><strong>ZF<\/strong> (Zero Flag) (\u0431\u0438\u0442 6) &#8212; \u043e\u0441\u043d\u043e\u0432\u0430 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0440\u0430\u0432\u0435\u043d \u043d\u0443\u043b\u044e;<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 jz (jump if zero), jnz (jump if not zero).<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">cmp ax, 10     ; \u0443\u0441\u043b\u043e\u0432\u0438\u0435: \u0435\u0441\u043b\u0438 AX == 10, \u0442\u043e ZF = 1 jz label_done  ; \u0435\u0441\u043b\u0438 ZF = 1, \u0442\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u043c\u0435\u0442\u043a\u0435<\/code><\/pre>\n<p><strong>SF<\/strong> (Sign Flag) (\u0431\u0438\u0442 7) \u0438 <strong>OF<\/strong> (Overflow Flag) (\u0431\u0438\u0442 11) &#8212; \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0437\u043d\u0430\u043a\u0430 \u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f:<\/p>\n<ul>\n<li>\n<p>SF = 1, \u0435\u0441\u043b\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 (\u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0431\u0438\u0442 = 1);<\/p>\n<\/li>\n<li>\n<p>OF = 1, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0441\u043e \u0437\u043d\u0430\u043a\u043e\u043c (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 7FFFh + 1 \u2192 8000h)<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">cmp eax, ebx jl less_than   ; jl (less), jg (greater) \u2014 \u043d\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u044e\u0442 ZF, \u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 SF \u0438 OF.<\/code><\/pre>\n<p><strong>TF<\/strong> (Trap Flag) (\u0431\u0438\u0442 8) &#8212; &#171;\u043f\u043e\u0448\u0430\u0433\u043e\u0432\u044b\u0439&#187; \u0440\u0435\u0436\u0438\u043c:<\/p>\n<ul>\n<li>\n<p>TF = 1 &#8212; \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 (Single Step);<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u043b\u0430\u0434\u0447\u0438\u043a\u0430\u043c\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: debug, SoftICE \u0438 \u0434\u0440.)<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 (\u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u044b\u0439 \u043a\u043e\u0434):<\/p>\n<pre><code class=\"assembly\">pushf pop axor ax, 0100h     ; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c TFpush axpopf             ; TF = 1<\/code><\/pre>\n<p>\u0410\u043d\u0442\u0438-\u0440\u0435\u0432\u0435\u0440\u0441 (\u043e\u0434\u0438\u043d \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432):<\/p>\n<pre><code class=\"assembly\">pushf pop axtest ax, 0100h jnz 0x1234       ; \u0431\u0443\u0434\u044c\u0442\u0435 \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0432\u0430\u0441 \u0437\u0434\u0435\u0441\u044c \u043f\u043e\u0441\u043b\u0430\u043b\u0438... \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0432\u0435\u0442\u043a\u0443                  ; \u043d\u0430 \u0430\u043d\u0430\u043b\u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439, \u0432\u044b \u043f\u043e\u0442\u0440\u0430\u0442\u0438\u0442\u0435 \u0434\u0440\u0430\u0433\u043e\u0446\u0435\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f                  ; \u0438 \u044d\u0442\u043e \u0432 \u043b\u0443\u0447\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435...<\/code><\/pre>\n<p><strong>IF<\/strong> (Interrupt Flag) (\u0431\u0438\u0442 9) &#8212; \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438:<\/p>\n<ul>\n<li>\n<p>IF = 1 &#8212; \u043c\u0430\u0441\u043a\u0438\u0440\u0443\u0435\u043c\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f (IRQ) \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u044b;<\/p>\n<\/li>\n<li>\n<p>IF = 0 &#8212; \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u044b (\u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0441\u0435\u043a\u0446\u0438\u044f);<\/p>\n<\/li>\n<li>\n<p><code>sti<\/code> &#8212; set interrupt flag ( <code>IF<\/code> = 1);<\/p>\n<\/li>\n<li>\n<p><code>cli<\/code> &#8212; clear interrupt flag ( <code>IF<\/code> = 0). \u0427\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f: \u043f\u0435\u0440\u0435\u0434 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439, \u0432 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0435\u043a\u0446\u0438\u044f\u0445, \u0432 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430\u0445.<\/p>\n<\/li>\n<\/ul>\n<p><strong>DF<\/strong> (Direction Flag) (\u0431\u0438\u0442 10) &#8212; \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439:<\/p>\n<ul>\n<li>\n<p>DF = 0 &#8212; \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 (movsb, lods, stos) \u0438\u0434\u0443\u0442 \u0432\u043f\u0435\u0440\u0451\u0434 (\u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442 SI\/DI);<\/p>\n<\/li>\n<li>\n<p>DF = 1 &#8212; \u043d\u0430\u0437\u0430\u0434 (\u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442)<\/p>\n<\/li>\n<li>\n<p><code>cld<\/code> &#8212; clear direction flag ( <code>DF<\/code> = 0)<\/p>\n<\/li>\n<li>\n<p><code>std<\/code> &#8212; set direction flag ( <code>DF<\/code> = 1)<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">cld               ; \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435. \u0415\u0441\u043b\u0438 cld \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043f\u0435\u0440\u0435\u0434 rep,                   ; \u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e DF = 1 \u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0439\u0434\u0451\u0442 \u043d\u0430\u0437\u0430\u0434 mov si, [0x1234]  ; \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a mov di, [0x5678]  ; \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 mov cx, 100 rep movsb         ; \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c 100 \u0431\u0430\u0439\u0442 \u0432\u043f\u0435\u0440\u0451\u0434<\/code><\/pre>\n<p><strong>\u0412\u0430\u0436\u043d\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0424\u043b\u0430\u0433\u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e <code>cmp<\/code> . \u041c\u043d\u043e\u0433\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0435\u044f\u0432\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442 <code>EFLAGS<\/code> : <code>add<\/code>, <code>sub<\/code>, <code>and<\/code>, <code>or<\/code>, <code>xor<\/code>, <code>test<\/code>, <code>dec<\/code>, <code>inc<\/code>, <code>shl<\/code>, <code>shr<\/code> \u0438 \u0434\u0440. test ax, ax &#8212; \u0447\u0430\u0441\u0442\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u0440\u0430\u0432\u0435\u043d \u043b\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u043d\u0443\u043b\u044e<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"assembly\">test ax, ax     ; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 ZF, \u0435\u0441\u043b\u0438 AX == 0jz zero_value<\/code><\/pre>\n<ul>\n<li>\n<p><code>inc<\/code> \u0438 <code>dec<\/code> \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442 <code>CF<\/code>. inc eax &#8212; \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 <code>EAX<\/code>, \u043d\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044f <code>CF<\/code>. add eax, 1 &#8212; \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442 <code>EAX<\/code>, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 <code>CF<\/code> \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438. \u042d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u0430\u043d\u0442\u0438-\u0440\u0435\u0432\u0435\u0440\u0441\u0435<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"assembly\">inc axjc overflow   ; \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/code><\/pre>\n<ul>\n<li>\n<p>\u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e \u0444\u043b\u0430\u0433\u043e\u0432: <code>jo<\/code> \/ <code>jno<\/code> &#8212; Overflow, <code>js<\/code> \/ <code>jns<\/code> &#8212; Sign, <code>jp<\/code> \/ <code>jnp<\/code> &#8212; Parity, <code>ja<\/code> \/ <code>jb<\/code> &#8212; Above\/Below (\u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 CF \u0438 ZF)<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"assembly\">cmp al, 0Ahjb is_digit    ; \u0435\u0441\u043b\u0438 AL &lt; 10 (unsigned)<\/code><\/pre>\n<p><strong>\u041f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435<\/strong> EFLAGS (FLAGS) &#8212; <strong>\u043a\u043b\u044e\u0447 \u043a \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u043a\u0435 \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u043e\u0432, \u0446\u0438\u043a\u043b\u043e\u0432, \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0439 \u0438 \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u0442 \u043e\u0442\u043b\u0430\u0434\u043a\u0438<\/strong> <\/p>\n<h3>\u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f DOS: \u0442\u0430\u0439\u043d\u0430, \u0441\u043a\u0440\u044b\u0442\u0430\u044f \u0432 \u043a\u043e\u0434\u0435<\/h3>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435: \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 DOS-\u0438\u0433\u0440\u0443, \u0442\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432\u0430\u0448\u0438 \u043b\u044e\u0431\u0438\u043c\u044b\u0435 \u0433\u0435\u0440\u043e\u0438, \u0438\u0433\u0440\u0430 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0432\u0430\u0448\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044f, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u043e\u0445\u0440\u0430\u043d\u043a\u0438 \u043d\u0430 \u0434\u0438\u0441\u043a&#8230; \u041d\u043e \u043a\u0430\u043a \u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e? \u041a\u0430\u043a \u044d\u0442\u0430 \u0441\u0430\u043c\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 &#171;\u043e\u0431\u0449\u0430\u0442\u044c\u0441\u044f&#187; \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u043c, \u043d\u0435 \u0437\u043d\u0430\u044f \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0435\u0433\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u043e\u0432? \u041e\u0442\u0432\u0435\u0442 \u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u0445, &#171;\u0442\u0430\u0439\u043d\u043e\u043c \u044f\u0437\u044b\u043a\u0435&#187;, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u043d\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440, \u043d\u043e \u0438\u0437 \u043b\u044e\u0434\u0435\u0439 \u043c\u0430\u043b\u043e \u043a\u0442\u043e \u0435\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442. \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f &#8212; \u044d\u0442\u043e \u043a\u0430\u043a \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043e\u0434, \u0441\u043a\u0440\u044b\u0442\u044b\u0439 \u0432 \u0441\u0430\u043c\u043e\u043c \u0441\u0435\u0440\u0434\u0446\u0435 DOS. \u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 10h, \u043e\u043d\u0430 &#171;\u0433\u043e\u0432\u043e\u0440\u0438\u0442&#187;: &#171;\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0432\u0435\u0434\u0438 \u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d&#187;. \u041a\u043e\u0433\u0434\u0430 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f 16h &#8212; &#171;\u0421\u0447\u0438\u0442\u0430\u0439 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438&#187;. \u041a\u043e\u0433\u0434\u0430 21h &#8212; &#171;\u041e\u0442\u043a\u0440\u043e\u0439 \u0444\u0430\u0439\u043b \u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0439 \u0438\u0437 \u043d\u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435&#187;.<\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u044e\u0442 \u0442\u043e \u0441\u0430\u043c\u043e\u0435 \u0432\u043e\u043b\u0448\u0435\u0431\u0441\u0442\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u0435\u043b\u0430\u043b\u043e DOS-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0430\u043a\u0438\u043c\u0438 \u043c\u043e\u0449\u043d\u044b\u043c\u0438, \u0430 \u0438\u0433\u0440\u044b \u0442\u0430\u043a\u0438\u043c\u0438 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438. \u041e\u043d\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430, \u043a\u0430\u043a \u0431\u0443\u0434\u0442\u043e \u043e\u043d\u0438 \u0431\u044b\u043b\u0438 \u0447\u0430\u0441\u0442\u044c\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b \u0433\u043e\u0442\u043e\u0432\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0434\u0432\u0435\u0440\u044c, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u0442\u0438\u043d\u0430 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 DOS-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b. \u0412\u043f\u0435\u0440\u0435\u0434\u0438 \u0432\u0430\u0441 \u0436\u0434\u0443\u0442 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0446\u0438\u0444\u0440\u044b \u0438 \u043a\u043e\u0434\u044b, \u0430 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u0430\u0440\u0445\u0435\u043e\u043b\u043e\u0433\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f. \u041c\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0437\u0443\u0447\u0430\u0442\u044c \u0432\u0435\u0441\u044c RBIL, \u043d\u043e \u043f\u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u043c\u0441\u044f \u0441 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u0432\u0430\u0436\u043d\u044b\u043c\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u0435 \u0432 DOS-\u0438\u0433\u0440\u0430\u0445.<\/p>\n<p><strong>\u041f\u043e\u0447\u0435\u043c\u0443 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430 \u0434\u043b\u044f \u0440\u0435\u0432\u0435\u0440\u0441\u0430 DOS-\u0438\u0433\u0440?<\/strong><\/p>\n<p>\u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f &#8212; \u044d\u0442\u043e \u043c\u0430\u044f\u043a\u0438 \u0438 \u043e\u043d\u0438:<\/p>\n<ul>\n<li>\n<p> \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043e\u0434\u043d\u0443 \u0438 \u0442\u0443 \u0436\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 &#8212; <code>int N<\/code>;<\/p>\n<\/li>\n<li>\n<p> \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435, \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f: \u0432\u044b\u0432\u043e\u0434 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d, \u0447\u0442\u0435\u043d\u0438\u0435 \u043a\u043b\u0430\u0432\u0438\u0448, \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u0442.\u0434.;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0438\/\u0438\u043b\u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0432 \u0446\u0438\u043a\u043b\u0430\u0445;<\/p>\n<\/li>\n<li>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0432\u044b\u0437\u043e\u0432\u043e\u043c <code>int<\/code> \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0433\u043e\u0442\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p><strong>int 21h<\/strong> &#8212; \u0421\u0430\u043c\u043e\u0435 \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0432 API DOS: \u0444\u0430\u0439\u043b\u044b, \u0432\u0432\u043e\u0434, \u0432\u044b\u0445\u043e\u0434 \u0438 \u0442 .\u0434.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"167\" width=\"167\">\n<p align=\"center\">\u041a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/td>\n<td data-colwidth=\"145\" width=\"145\">\n<p align=\"center\">AH<\/p>\n<\/td>\n<td>\n<p align=\"center\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"167\" width=\"167\">\n<p align=\"center\">09h<\/p>\n<\/td>\n<td data-colwidth=\"145\" width=\"145\">\n<p align=\"center\">AH = 09h<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u044b\u0432\u0435\u0441\u0442\u0438 \u0441\u0442\u0440\u043e\u043a\u0443 \u0441 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0442\u043e\u0440\u043e\u043c (<code>$<\/code>):<br \/>&#171;I&#8217;ll be back$&#187;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"167\" width=\"167\">\n<p align=\"center\">3Dh<\/p>\n<\/td>\n<td data-colwidth=\"145\" width=\"145\">\n<p align=\"center\">AH = 3Dh<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"167\" width=\"167\">\n<p align=\"center\">3Fh<\/p>\n<\/td>\n<td data-colwidth=\"145\" width=\"145\">\n<p align=\"center\">AH = 3Fh<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0437 \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"167\" width=\"167\">\n<p align=\"center\">40h<\/p>\n<\/td>\n<td data-colwidth=\"145\" width=\"145\">\n<p align=\"center\">AH = 40h<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0444\u0430\u0439\u043b<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"167\" width=\"167\">\n<p align=\"center\">4Ch<\/p>\n<\/td>\n<td data-colwidth=\"145\" width=\"145\">\n<p align=\"center\">AH = 4Ch<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 (\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0444\u0430\u0439\u043b\u0430):<\/p>\n<pre><code class=\"assembly\">mov ah, 3Dh           ; \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b mov al, 0             ; \u0434\u043e\u043f. \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438: \u0440\u0435\u0436\u0438\u043c - \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u0435\u043d\u0438\u0435 mov dx, [0x1234]      ; DS:DX - \u0441\u0442\u0440\u043e\u043a\u0430 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0444\u0430\u0439\u043b\u0430 int 21h               ; \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f mov bx, ax            ; \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043c \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u0444\u0430\u0439\u043b\u0430<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 (\u0432\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f):<\/p>\n<pre><code class=\"assembly\">mov ah, 4Ch        ; \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 mov al, 0          ; \u0434\u043e\u043f. \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438: \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u2014 0 int 21h<\/code><\/pre>\n<p><strong>int 10h<\/strong> &#8212; BIOS: \u0432\u0438\u0434\u0435\u043e \u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0430<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"center\">\u041a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/td>\n<td data-colwidth=\"140\" width=\"140\">\n<p align=\"center\">AH<\/p>\n<\/td>\n<td>\n<p align=\"center\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"center\">00h<\/p>\n<\/td>\n<td data-colwidth=\"140\" width=\"140\">\n<p align=\"center\">AH = 00h<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e\u0440\u0435\u0436\u0438\u043c (<a href=\"https:\/\/mendelson.org\/wpdos\/videomodes.txt\" rel=\"noopener noreferrer nofollow\">\u0441\u043f\u0438\u0441\u043e\u043a \u0440\u0435\u0436\u0438\u043c\u043e\u0432<\/a>)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"center\">02h<\/p>\n<\/td>\n<td data-colwidth=\"140\" width=\"140\">\n<p align=\"center\">AH = 02h<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043a\u0443\u0440\u0441\u043e\u0440<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"160\" width=\"160\">\n<p align=\"center\">0Ch<\/p>\n<\/td>\n<td data-colwidth=\"140\" width=\"140\">\n<p align=\"center\">AH = 0Ch<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0438\u043a\u0441\u0435\u043b\u044c<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 (\u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430):<\/p>\n<pre><code class=\"assembly\">mov ax, 13h    ; ah = 00h - \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e\u0440\u0435\u0436\u0438\u043c                ; \u0434\u043e\u043f. \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438:                ; al = 13h - 320x200, 256\/256K, VGA,MCGA,ATI VIP, text: 40x25 int 10h        ; \u0432\u044b\u0437\u043e\u0432 BIOS<\/code><\/pre>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 (\u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u043f\u0438\u043a\u0441\u0435\u043b\u044f):<\/p>\n<pre><code class=\"assembly\">mov ah, 0Ch    ; \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c \u043f\u0438\u043a\u0441\u0435\u043b\u044c mov al, 15     ; \u0434\u043e\u043f. \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438: \u0446\u0432\u0435\u0442 - \u0431\u0435\u043b\u044b\u0439 mov cx, 100    ; X mov dx, 50     ; Y int 10h<\/code><\/pre>\n<p><strong>int 16h<\/strong> &#8212; BIOS: \u0432\u0432\u043e\u0434 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"157\" width=\"157\">\n<p align=\"center\">\u041a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/td>\n<td data-colwidth=\"150\" width=\"150\">\n<p align=\"center\">AH<\/p>\n<\/td>\n<td>\n<p align=\"center\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"157\" width=\"157\">\n<p align=\"center\">00h<\/p>\n<\/td>\n<td data-colwidth=\"150\" width=\"150\">\n<p align=\"center\">AH = 00h<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0416\u0434\u0430\u0442\u044c \u043d\u0430\u0436\u0430\u0442\u0438\u044f (\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"157\" width=\"157\">\n<p align=\"center\">01h<\/p>\n<\/td>\n<td data-colwidth=\"150\" width=\"150\">\n<p align=\"center\">AH = 01h<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043d\u0430\u0436\u0430\u0442\u0430 \u043b\u0438 \u043a\u043b\u0430\u0432\u0438\u0448\u0430 (\u043d\u0435\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0449\u0438\u0439)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 (\u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435 \u0432\u0432\u043e\u0434\u0430 \u0441 &#171;\u0437\u0430\u0432\u0438\u0441\u0430\u043d\u0438\u0435\u043c&#187; \u0438\u0433\u0440\u044b (\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u043e\u0439)):<\/p>\n<pre><code class=\"assembly\">mov ah, 00h    ; \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u0436\u0434\u0430\u0442\u044c \u043d\u0430\u0436\u0430\u0442\u0438\u044f int 16h        ; \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442: AL = ASCII, AH = \u0441\u043a\u0430\u043d-\u043a\u043e\u0434<\/code><\/pre>\n<p><strong>int 33h<\/strong> &#8212; \u043c\u044b\u0448\u044c (\u0435\u0441\u043b\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f)<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">\u041a\u043e\u0434 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"center\">AH<\/p>\n<\/td>\n<td data-colwidth=\"115\" width=\"115\">\n<p align=\"center\">AL<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">00h<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"center\">AH = 00h<\/p>\n<\/td>\n<td data-colwidth=\"115\" width=\"115\">\n<p align=\"center\">AL = 00h<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u044b\u0448\u044c (\u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0438\u0433\u0440\u044b)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">00h<\/p>\n<\/td>\n<td data-colwidth=\"121\" width=\"121\">\n<p align=\"center\">AH = 00h<\/p>\n<\/td>\n<td data-colwidth=\"115\" width=\"115\">\n<p align=\"center\">AL = 03h<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043c\u044b\u0448\u0438 (\u0432 \u0446\u0438\u043a\u043b\u0435)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">mov ax, 0000h   ; \u0444\u0443\u043d\u043a\u0446\u0438\u044f: \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u044b\u0448\u044c int 33h         ; \u0435\u0441\u043b\u0438 AX != 0000h \u2014 \u043c\u044b\u0448\u044c \u0435\u0441\u0442\u044c<\/code><\/pre>\n<p><strong>\u0422\u0430\u0439\u043c\u0435\u0440\u044b:<\/strong><\/p>\n<p><strong>int 08h<\/strong> &#8212; \u0442\u0430\u0439\u043c\u0435\u0440: \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439, \u0444\u0438\u0437\u0438\u043a\u0438. <\/p>\n<p><strong>int 1Ch<\/strong> &#8212; \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440. \u041c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0432\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u0434\u043b\u044f \u0444\u043e\u043d\u043e\u0432\u044b\u0445 \u0437\u0430\u0434\u0430\u0447<\/p>\n<blockquote>\n<p><strong>\u0412\u0430\u0436\u043d\u043e \u0437\u043d\u0430\u0442\u044c:<\/strong> int 20h &#8212; &#171;\u0441\u0442\u0430\u0440\u044b\u0439&#187; \u0441\u043f\u043e\u0441\u043e\u0431 \u0432\u044b\u0445\u043e\u0434\u0430 (Terminate), \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 .COM \u0444\u0430\u0439\u043b\u0430\u0445. \u041d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043a\u043e\u0434 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430<\/p>\n<\/blockquote>\n<p><strong>\u0420\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441 Ghidra:<\/strong><\/p>\n<p>\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043c\u0435\u0447\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0442\u0435\u0445 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043d\u0438\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u044b (\u043f\u0440\u0438\u043c\u0435\u0440\u044b):<\/p>\n<ul>\n<li>\n<p>FUN_00401000 \u2192 init_video() (\u0435\u0441\u043b\u0438 \u0432 \u043d\u0435\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f int 10h);<\/p>\n<\/li>\n<li>\n<p>FUN_00401200 \u2192 read_key() (\u0435\u0441\u043b\u0438 \u0432 \u043d\u0435\u0439 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f int 16h);<\/p>\n<\/li>\n<li>\n<p>FUN_00401500 \u2192 load_file() (int 21h, AH=3Dh)<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u0441 \u0446\u0438\u0442\u0430\u0442 \u0442\u0435\u0445 \u043b\u044e\u0434\u0435\u0439, \u043a\u043e\u0442\u0440\u044b\u0435 \u0432\u043d\u0435\u0441\u043b\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u044c\u043d\u044b\u0439 \u0432\u043a\u043b\u0430\u0434 \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434 DOS. \u0421 \u0420\u044d\u044f \u0414\u043e\u0431\u0431\u0441\u0430, \u0447\u044c\u0438 \u043a\u043d\u0438\u0433\u0438 <em>&#171;Programming in the MS-DOS Environment&#187;<\/em> \u0438 <em>&#171;Advanced MS-DOS Programming&#187;<\/em> \u043d\u0430\u0443\u0447\u0438\u043b\u0438 \u043d\u0430\u0441 \u043c\u044b\u0441\u043b\u0438\u0442\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430, \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u043a\u043e\u0434, \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432\u043c\u0435\u0441\u0442\u0435. \u0421 \u0420\u044d\u043d\u0434\u044d\u043b\u043b\u0430 \u0425\u0430\u0439\u0434\u044b, \u0447\u044c\u044f <em>&#171;The Art of Assembly Language&#187;<\/em> \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 \u0438\u0437 \u00ab\u044f\u0437\u044b\u043a\u0430 \u043c\u0430\u0448\u0438\u043d\u00bb \u0432 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0418 \u0441 \u0420\u0430\u043b\u044c\u0444\u0430 \u0411\u0440\u043e\u0443\u043d\u0430, \u0447\u0435\u0439 <em>Interrupt List<\/em> \u0441\u0442\u0430\u043b \u0434\u043b\u044f \u043d\u0430\u0441 \u043a\u0430\u0440\u0442\u043e\u0439 \u043c\u0438\u0440\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043a\u0430\u0436\u0434\u043e\u0435 <code>int 10h<\/code> \u0438\u043b\u0438 <code>int 21h<\/code> &#8212; \u044d\u0442\u043e \u0441\u0438\u0433\u043d\u0430\u043b. <\/p>\n<p>\u0418\u043c\u0435\u043d\u043d\u043e \u0438\u0445 \u0442\u0440\u0443\u0434\u044b \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0438 \u043d\u0430\u043c \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0431\u043e\u044f\u0442\u044c\u0441\u044f <code>.COM<\/code> \u0438<code>.EXE<\/code>-\u0444\u0430\u0439\u043b\u043e\u0432. \u041c\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u0447\u0438\u0442\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043d\u0435\u043f\u043e\u0437\u043d\u0430\u0432\u0430\u0435\u043c\u044b\u043c: \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b, \u0441\u0442\u0435\u043a, \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b, \u0444\u043b\u0430\u0433\u0438, \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f. \u041c\u044b \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438, \u043a\u0430\u043a <code>AX<\/code> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043d\u043e\u043c\u0435\u0440\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 <code>int 10h<\/code>, \u043a\u0430\u043a <code>CX<\/code> \u0441\u043b\u0443\u0436\u0438\u0442 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u043e\u043c \u0432 \u0446\u0438\u043a\u043b\u0430\u0445, \u043a\u0430\u043a <code>DS:DX<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 <code>int 21h<\/code>, \u043a\u0430\u043a <code>EFLAGS<\/code> \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430\u043c\u0438 \u043f\u043e\u0441\u043b\u0435 <code>cmp<\/code>. \u041c\u044b \u0443\u0432\u0438\u0434\u0435\u043b\u0438, \u043a\u0430\u043a \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u0438 \u0441\u0435\u0433\u043c\u0435\u043d\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432\u043c\u0435\u0441\u0442\u0435, \u0438 \u043a\u0430\u043a \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u044f\u0442\u0441\u044f \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u0441\u043e\u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439. \u041c\u044b \u0443\u0432\u0438\u0434\u0435\u043b\u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430 \u043d\u0430 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435 \u0438 C, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c, \u043a\u0430\u043a \u0441\u0438\u043b\u044c\u043d\u043e \u043e\u043d\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u044b. <\/p>\n<p>\u041d\u043e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u0433\u043e \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043f\u0443\u0442\u0438, \u043d\u0430\u0447\u0430\u0442\u043e\u0433\u043e \u0432 <a href=\"https:\/\/habr.com\/ru\/articles\/934490\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/a>. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043f\u043e\u0434\u043e\u0448\u043b\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0440\u0443\u0431\u0435\u0436\u0443 &#8212; \u0432\u043e\u0441\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u043a\u043e\u0434\u0430. \u0412\u043f\u0435\u0440\u0435\u0434\u0438: \u0440\u0430\u0437\u0431\u043e\u0440 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432, \u0440\u0435\u0436\u0438\u043c\u043e\u0432 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438, \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u043e\u043f\u044b\u0442\u0430\u0435\u043c\u0441\u044f \u0432\u0437\u044f\u0442\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0438\u0437 DOS-\u0438\u0433\u0440\u044b, &#171;\u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c&#187; \u0438\u0445 \u043b\u043e\u0433\u0438\u043a\u0443 \u0438 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430 C \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435. \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0438\u043d\u0438\u0440\u0438\u043d\u0433 &#8212; \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0430\u043d\u0430\u043b\u0438\u0437, \u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435, \u043e\u0442 \u0431\u0430\u0439\u0442\u043e\u0432 \u043a \u0441\u043c\u044b\u0441\u043b\u043e\u043e\u0431\u0440\u0430\u0437\u0443\u044e\u0449\u0435\u043c\u0443 \u043a\u043e\u0434\u0443.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/937082\/\"> https:\/\/habr.com\/ru\/articles\/937082\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<h3>\u042d\u043f\u0438\u0433\u0440\u0430\u0444<\/h3>\n<blockquote>\n<p><em>&#171;The registers are the CPU\u2019s own workspace. They are not memory, and they are not variables. They are the places where the processor keeps the data it is working on right now &#8212; like a craftsman\u2019s bench, where only the tools and materials for the current task are kept.&#187;<\/em><\/p>\n<p><em>&#171;The stack is not just a pile of return addresses. It is the memory of the program\u2019s decisions. Every <\/em><code><em>call<\/em><\/code><em> is a promise to return; every <\/em><code><em>push<\/em><\/code><em> is a thought set aside for later. In real mode, the stack pointer (SP) is the program\u2019s short-term memory.&#187;<\/em><\/p>\n<p><em>&#171;Segments are not an arbitrary limitation. They are a reflection of the physical world &#8212; of address lines, of memory chips, of the way data flows from one place to another. The segment:offset model is not a hack; it is a bridge between 16-bit registers and 20-bit addresses.&#187;<\/em><\/p>\n<p>&#8212; \u0420\u044d\u0439 \u0414\u0443\u043d\u043a\u0430\u043d (Ray Duncan): <em>&#171;<\/em><a href=\"https:\/\/www.pcjs.org\/documents\/books\/mspl13\/msdos\/encyclopedia\/section2\/\" rel=\"noopener noreferrer nofollow\"><em>Programming in the MS-DOS Environment<\/em><\/a><em>&#171;<\/em>, <em>&#171;<\/em><a href=\"https:\/\/www.pcjs.org\/documents\/books\/mspl13\/msdos\/advdos\/\" rel=\"noopener noreferrer nofollow\"><em>Advanced MS-DOS Programming<\/em><\/a><em>&#171;<\/em><\/p>\n<\/blockquote>\n<blockquote>\n<p><em>&#171;Registers are the fastest storage locations in the computer. But their speed is not what makes them special. What makes them special is that they are the only locations the CPU can operate on directly. You don\u2019t compute with memory &#8212; you compute with registers, and memory is just a place to keep data between uses.&#187;<\/em><\/p>\n<p><em>&#171;The stack is the foundation of structured programming. Without it, there would be no functions, no recursion, no local variables. The <\/em><code><em>call<\/em><\/code><em> and <\/em><code><em>ret<\/em><\/code><em> instructions are the verbs of program flow, and the stack is their grammar.&#187;<\/em><\/p>\n<p><em>&#171;Segmentation is often misunderstood as a flaw, but in the context of the 8086, it was a brilliant solution. It allowed a 16-bit processor to address 1 MB of memory &#8212; a compromise between cost, complexity, and capability. The segment registers (CS, DS, SS, ES) are not overhead &#8212; they are the keys to the kingdom.&#187;<\/em><\/p>\n<p>&#8212; \u0420\u044d\u043d\u0434\u044d\u043b\u043b \u0425\u0430\u0439\u0434 (Randall Hyde): <em>&#171;<\/em><a href=\"https:\/\/www.ic.unicamp.br\/~pannain\/mc404\/aulas\/pdfs\/Art%20Of%20Intel%20x86%20Assembly.pdf\" rel=\"noopener noreferrer nofollow\"><em>The Art of Assembly Language<\/em><\/a><em>&#171;<\/em><\/p>\n<\/blockquote>\n<blockquote>\n<p><em>\u201cCharm can fool you.\u201d<\/em><\/p>\n<p>&#8212; \u0420\u0430\u043b\u044c\u0444 \u0411\u0440\u043e\u0443\u043d (Ralf Brown): <em>&#171;Ralf Brown\u2019s Interrupt&#187; List&#187;<\/em> (<a href=\"http:\/\/guideme.itgo.com\/atozofc\/ch71_1.pdf\" rel=\"noopener noreferrer nofollow\">\u0447\u0430\u0441\u0442\u044c 1<\/a>, <a href=\"http:\/\/guideme.itgo.com\/atozofc\/ch71_2.pdf\" rel=\"noopener noreferrer nofollow\">\u0447\u0430\u0441\u0442\u044c 2<\/a>, <a href=\"http:\/\/guideme.itgo.com\/atozofc\/ch71_3.pdf\" rel=\"noopener noreferrer nofollow\">\u0447\u0430\u0441\u0442\u044c 3<\/a>)<\/p>\n<\/blockquote>\n<p>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u043e\u0433\u0440\u0443\u0437\u0438\u0442\u044c\u0441\u044f \u0432 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0435\u0442\u0430\u043b\u0438, \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c, \u043f\u043e\u0447\u0435\u043c\u0443 \u044d\u0442\u0430 \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0441 \u043a\u043e\u0434\u0430 \u0438 \u043d\u0435 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0439, \u0430 \u0441\u043e \u0441\u043b\u043e\u0432 \u0442\u0435\u0445, \u043a\u0442\u043e \u0432\u0441\u0451 \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u0438 \u043f\u043e\u043d\u0438\u043c\u0430\u043b \u0433\u043b\u0443\u0431\u0436\u0435 \u0432\u0441\u0435\u0445. <\/p>\n<p>\u0426\u0438\u0442\u0430\u0442\u044b \u0420\u044d\u044f \u0414\u0443\u043d\u043a\u0430\u043d\u0430, \u0420\u044d\u043d\u0434\u044d\u043b\u043b\u0430 \u0425\u0430\u0439\u0434\u044b \u0438 \u0420\u0430\u043b\u044c\u0444\u0430 \u0411\u0440\u043e\u0443\u043d\u0430 &#8212; \u044d\u0442\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u0440\u044b\u0432\u043a\u0438 \u0438\u0437 \u043a\u043d\u0438\u0433. \u042d\u0442\u043e \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u044b \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u043b\u0435\u0434\u0438\u044f, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u043f\u043e\u043a\u043e\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u043e\u0432, \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0435\u043d\u0435\u0440\u043e\u0432 \u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u0433\u0440.<\/p>\n<ul>\n<li>\n<p>\u0420\u044d\u0439 \u0414\u0443\u043d\u043a\u0430\u043d \u0432 \u0441\u0432\u043e\u0438\u0445 \u043a\u043d\u0438\u0433\u0430\u0445, &#171;Programming in the MS-DOS Environment&#187; \u0438 &#171;Advanced MS-DOS Programming&#187;, \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u043b API DOS. \u041e\u043d \u0443\u0447\u0438\u043b \u043c\u044b\u0441\u043b\u0438\u0442\u044c \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430, \u043f\u043e\u043d\u0438\u043c\u0430\u0442\u044c, \u043a\u0430\u043a \u0436\u0435\u043b\u0435\u0437\u043e, \u043f\u0430\u043c\u044f\u0442\u044c \u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u0432\u043c\u0435\u0441\u0442\u0435. \u0415\u0433\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u044b\u043b\u0438 \u0431\u0438\u0431\u043b\u0438\u0435\u0439 \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u043f\u0438\u0441\u0430\u043b \u043d\u0430 C \u0438 \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440\u0435 \u043f\u043e\u0434 DOS. \u041e\u043d\u0438 \u0434\u043e \u0441\u0438\u0445 \u043f\u043e\u0440 \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u043e\u0434\u043d\u0438\u043c\u0438 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0442\u043e\u0447\u043d\u044b\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b 16-\u0431\u0438\u0442\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b;<\/p>\n<\/li>\n<li>\n<p>\u0420\u044d\u043d\u0434\u044d\u043b\u043b \u0425\u0430\u0439\u0434 \u0441 &#171;The Art of Assembly Language&#187; \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0435 &#8212; \u043e\u043d \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b \u0430\u0441\u0441\u0435\u043c\u0431\u043b\u0435\u0440 \u0438\u0437 &#171;\u044f\u0437\u044b\u043a\u0430 \u043c\u0430\u0448\u0438\u043d&#187; \u0432 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u044f, \u043f\u043e\u0434\u0434\u0430\u044e\u0449\u0438\u0439\u0441\u044f \u043b\u043e\u0433\u0438\u043a\u0435 \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435. \u0415\u0433\u043e \u043a\u043d\u0438\u0433\u0430 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a, \u0430 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043c\u044b\u0448\u043b\u0435\u043d\u0438\u044f. \u0414\u043b\u044f \u043c\u043d\u043e\u0433\u0438\u0445, \u0438 \u043c\u0435\u043d\u044f \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435, \u043e\u043d\u0430 \u0441\u0442\u0430\u043b\u0430 \u043f\u0435\u0440\u0432\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u043a \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044e, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 &#171;\u0438\u0437\u043d\u0443\u0442\u0440\u0438&#187;;<\/p>\n<\/li>\n<li>\n<p>\u0420\u0430\u043b\u044c\u0444 \u0411\u0440\u043e\u0443\u043d \u0438 \u0435\u0433\u043e &#171;Interrupt List<em>&#171;<\/em> &#8212; \u044d\u0442\u043e \u0430\u0440\u0445\u0438\u0432 \u0437\u043d\u0430\u043d\u0438\u0439, \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u0432\u0440\u0443\u0447\u043d\u0443\u044e, \u0431\u0435\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u043c \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f\u043c. \u0415\u0433\u043e \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 &#8212; \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0438\u043a, \u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043a\u0440\u043e\u043f\u043e\u0442\u043b\u0438\u0432\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u0433\u0434\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u0430\u0439\u0442, \u043a\u0430\u0436\u0434\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u043a\u0430\u0436\u0434\u044b\u0439 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0431\u044b\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u044b, \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u044b \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b. RBIL \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 DOSBox, QEMU, FreeDOS \u0438 \u0441\u0442\u0430\u043b \u043e\u0441\u043d\u043e\u0432\u043e\u0439 \u0434\u043b\u044f \u0432\u0441\u0435\u0445, \u043a\u0442\u043e \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u0442\u0430\u0440\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u0440\u0430\u0431\u043e\u0442 \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0438\u0445 \u043e\u0441\u043c\u044b\u0441\u043b\u0435\u043d\u0438\u0435\u043c &#8212; \u043f\u0435\u0440\u0432\u044b\u0439 \u0448\u0430\u0433 \u043a \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u043c\u0443 \u0440\u0435\u0432\u0435\u0440\u0441-\u0438\u043d\u0436\u0438\u043d\u0438\u0440\u0438\u043d\u0433\u0443. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u044f \u0441 \u043d\u0438\u0445 \u0438 \u043d\u0430\u0447\u0430\u043b.<\/p>\n<h3>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b<\/h3>\n<p>\u041d\u0430 \u0425\u0430\u0431\u0440\u0435, \u0434\u0430 \u0438 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0430\u0445, \u044f \u043d\u0435 \u0440\u0430\u0437 \u0432\u0438\u0434\u0435\u043b \u0434\u0438\u0441\u043a\u0443\u0441\u0441\u0438\u0438 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b. \u041e\u0434\u0438\u043d \u0433\u043e\u0432\u043e\u0440\u0438\u0442: &#171;\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0432 CPU&#187;. \u0414\u0440\u0443\u0433\u043e\u0439: &#171;\u042d\u0442\u043e \u044f\u0447\u0435\u0439\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438&#187;.  \u0422\u0440\u0435\u0442\u0438\u0439: &#171;\u042d\u0442\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f, \u0430 \u043d\u0435 \u0434\u0430\u043d\u043d\u044b\u0435&#187;. \u0418 \u0432\u0441\u0435 \u043e\u043d\u0438, \u0432 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u0435\u0440\u0435, \u043f\u0440\u0430\u0432\u044b. \u041d\u043e \u0432\u0441\u0435 \u043e\u043d\u0438 &#8212; \u0447\u0430\u0441\u0442\u044c \u0438\u0441\u0442\u0438\u043d\u044b. \u042f \u043d\u0435 \u043b\u044e\u0431\u043b\u044e \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c: &#171;\u0427\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e&#187;. \u041a\u043e\u0433\u0434\u0430 \u043c\u0435\u043d\u044f \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u044e\u0442, \u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043f\u043e-\u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u0438, \u0431\u0435\u0437 \u0441\u0443\u0445\u0438\u0445 \u0446\u0438\u0442\u0430\u0442. \u041d\u043e \u0441 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c\u0438 \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u0438\u043d\u0430\u0447\u0435. \u041d\u0435 \u0445\u043e\u0447\u0443 \u043d\u0430\u0432\u044f\u0437\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0451 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043d\u0435 \u0445\u043e\u0447\u0443 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0445\u043e\u043b\u0438\u0432\u0430\u0440, \u043d\u0435 \u0445\u043e\u0447\u0443 \u0447\u0442\u043e\u0431\u044b \u0447\u0435\u0440\u0435\u0437 \u0433\u043e\u0434 \u043a\u0442\u043e-\u0442\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b: &#171;\u0410\u0432\u0442\u043e\u0440 \u043e\u0448\u0438\u0431\u0441\u044f! \u0420\u0435\u0433\u0438\u0441\u0442\u0440 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0442\u043e, \u0447\u0442\u043e \u043e\u043d \u0441\u043a\u0430\u0437\u0430\u043b&#187;. \u042f \u0434\u0430\u043c \u0432\u0430\u043c \u0442\u043e, \u043d\u0430 \u0447\u0442\u043e \u043e\u043f\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432\u0441\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f &#8212; \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b Intel, \u043e\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e 4004 \u0434\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 x86-64. \u042d\u0442\u043e \u043d\u0435 \u043f\u043e\u0431\u0435\u0433 \u043e\u0442 \u043e\u0442\u0432\u0435\u0442\u0430, \u0430 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u0432\u0441\u0442\u0430\u0442\u044c \u043d\u0430 \u0442\u0432\u0451\u0440\u0434\u0443\u044e \u043f\u043e\u0447\u0432\u0443. \u0422\u043e, \u0447\u0442\u043e \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u0431\u0435\u0437 \u0438\u0441\u043a\u0430\u0436\u0435\u043d\u0438\u0439, \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0442\u043e\u043c, \u0433\u0434\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u043e.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\">\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0413\u043e\u0434<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0441\u044b\u043b\u043a\u0430<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 4004<\/p>\n<\/td>\n<td>\n<p align=\"left\">1971<\/p>\n<\/td>\n<td>\n<p align=\"left\">MCS-4 User\u2019s Manual<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 8008<\/p>\n<\/td>\n<td>\n<p align=\"left\">1972<\/p>\n<\/td>\n<td>\n<p align=\"left\">8008 User&#8217;s Manual<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 8080<\/p>\n<\/td>\n<td>\n<p align=\"left\">1974<\/p>\n<\/td>\n<td>\n<p align=\"left\">8080 User&#8217;s Manual<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 8086<\/p>\n<\/td>\n<td>\n<p align=\"left\">1978<\/p>\n<\/td>\n<td>\n<p align=\"left\">8086 Family Manual<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 80286<\/p>\n<\/td>\n<td>\n<p align=\"left\">1982<\/p>\n<\/td>\n<td>\n<p align=\"left\">80286\/80287 PRM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 80386<\/p>\n<\/td>\n<td>\n<p align=\"left\">1985<\/p>\n<\/td>\n<td>\n<p align=\"left\">80386 PPR<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">Intel 80486<\/p>\n<\/td>\n<td>\n<p align=\"left\">1989<\/p>\n<\/td>\n<td>\n<p align=\"left\">80486 PRM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/archive.org\" rel=\"noopener noreferrer nofollow\">archive.org<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">IA-32 \/ x86-64<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u043d\u0430\u0448\u0435 \u0432\u0440\u0435\u043c\u044f<\/p>\n<\/td>\n<td>\n<p align=\"left\">Intel SDM<\/p>\n<\/td>\n<td>\n<p align=\"left\"><a href=\"http:\/\/intel.com\" rel=\"noopener noreferrer nofollow\">intel.com<\/a><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<blockquote>\n<p><strong>\u0412\u044b\u0432\u043e\u0434<\/strong>: \u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b &#8212; \u044d\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u044f\u0447\u0435\u0439\u043a\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u043e\u0439, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u043e\u0432, \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041e\u043d\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u0430\u0434\u0440\u0435\u0441\u043d\u044b\u0445 \u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439.<\/p>\n<p><em>\u2014 \u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435: Intel\u00ae 386\u2122 Programmer\u2019s Reference Manual (1986), Volume 1, Section 3.2 &#171;Registers&#187;, \u0438 Intel 80486\u2122 Microprocessor Family Programmer\u2019s Reference Manual (1992), Chapter 3 &#171;Architecture Overview&#187;<\/em><\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u044b \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Intel \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438\u0437 \u0420\u043e\u0441\u0441\u0438\u0438 \u0438 \u0411\u0435\u043b\u043e\u0440\u0443\u0441\u0441\u0438\u0438. \u042f \u0437\u043d\u0430\u044e \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043d\u0435\u0434\u043e\u0440\u0430\u0437\u0443\u043c\u0435\u043d\u0438\u0435 \u043d\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0418\u0422-\u0443\u043c\u043d\u0438\u043a\u043e\u0432 \u0438 \u0418\u0422-\u0443\u043c\u043d\u0438\u0446, \u043e\u043d\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u0439\u0442\u0438 \u0432\u0441\u044e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0443\u044e \u0438\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.<\/p>\n<\/blockquote>\n<p><strong>\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432 \u0432 80386\/80486<\/strong><\/p>\n<p><strong>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u043e\u0431\u0449\u0435\u0433\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (General-Purpose Registers, GPR).<\/strong><\/p>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440: 32 \u0431\u0438\u0442\u0430 (\u0432 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435) \u0438 16 \u0431\u0438\u0442 (\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435).<br \/>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0412\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"center\">32 \u0431\u0438\u0442\u0430<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"center\">16 \u0431\u0438\u0442<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">8-\u0431\u0438\u0442\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438<\/p>\n<\/td>\n<td>\n<p align=\"center\">\u041a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EAX<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">AX<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">AH, AL<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0410\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440 (Accumulator)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EBX<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">BX<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">BH, BL<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 (Base Register)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">ECX<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">CX<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">CH, CL<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0421\u0447\u0451\u0442\u0447\u0438\u043a (Count Register)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EDX<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">DX<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"left\">DH, DL<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 (Data Register)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">ESI<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">SI<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">&#8212;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0418\u043d\u0434\u0435\u043a\u0441 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 (Source Index)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EDI<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">DI<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">&#8212;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0418\u043d\u0434\u0435\u043a\u0441 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (Destination Index)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">ESP<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">SP<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">&#8212;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0441\u0442\u0435\u043a\u0430 (Stack Pointer)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"135\" width=\"135\">\n<p align=\"left\">EBP<\/p>\n<\/td>\n<td data-colwidth=\"128\" width=\"128\">\n<p align=\"left\">BP<\/p>\n<\/td>\n<td data-colwidth=\"132\" width=\"132\">\n<p align=\"center\">&#8212;<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c (Base Pointer)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><strong>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430<\/strong><\/p>\n<p><strong>EAX \/ AX \/ AH \/ AL<\/strong> &#8212; \u0410\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440 (Accumulator).<\/p>\n<blockquote>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u0422\u0435\u0440\u043c\u0438\u043d &#171;\u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440&#187; \u0443\u0445\u043e\u0434\u0438\u0442 \u0441\u0432\u043e\u0438\u043c\u0438 \u043a\u043e\u0440\u043d\u044f\u043c\u0438 \u0432 \u0441\u0430\u043c\u044b\u0435 \u0440\u0430\u043d\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b 8080 \u0438 8086<\/p>\n<\/blockquote>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u043b\u044f \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 <code>mul<\/code>, <code>div<\/code>, <code>in<\/code>, <code>out<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 (\u0430\u043d\u0430\u043b\u043e\u0433 <code>return<\/code> \u0432 C);<\/p>\n<\/li>\n<li>\n<p>\u0427\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f\u0445 DOS\/BIOS (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, int 21h).<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b:<\/p>\n<pre><code class=\"cpp\">#include &lt;dos.h&gt;  void main(void) {   _AX = 0x13;         \/\/ \u042d\u0442\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 `mov ax, 13h`   geninterrupt(0x10); \/\/ \u042d\u0442\u043e \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u0447\u0442\u043e \u0438 `int 10h` }<\/code><\/pre>\n<pre><code class=\"assembly\">; \u0431\u0430\u0439\u0442\u044b: b8 13 00 mov ax, 13h    ; \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0432\u0438\u0434\u0435\u043e\u0440\u0435\u0436\u0438\u043c\u0430 BIOS \u0432 VGA 300x200, 256 \u0446\u0432\u0435\u0442\u043e\u0432                ; \u043a\u043e\u0434 mov ax, 13h \u0440\u0430\u0432\u043d\u043e\u0446\u0435\u043d\u0435\u043d \u0442\u0430\u043a\u043e\u043c\u0443 \u043a\u043e\u0434\u0443 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0441\u0442\u0440\u043e\u043a:                ;                ; mov ah, 00h                ; mov al, 13h ; \u0431\u0430\u0439\u0442\u044b: cd 10 int 10h<\/code><\/pre>\n<pre><code class=\"cpp\">#include &lt;dos.h&gt; #include &lt;stdio.h&gt;  void main(void) {   int res;   res = 5;   res = res + 10; }<\/code><\/pre>\n<pre><code class=\"assembly\">; \u0431\u0430\u0439\u0442\u044b: be 05 00 mov si, 0x5    ; SI = 5 ; \u0431\u0430\u0439\u0442\u044b: 8b c6 mov ax, si     ; \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0432 \u0430\u043a\u043a\u0443\u043c\u0443\u043b\u044f\u0442\u043e\u0440 AX = SI = 5 ; \u0431\u0430\u0439\u0442\u044b: 05 0a 00 add ax, 0xa    ; AX = 15, SI = 5<\/code><\/pre>\n<p><strong>EBX \/ BX \/ BH \/ BL<\/strong> &#8212; \u0411\u0430\u0437\u043e\u0432\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 (Base Register)<\/p>\n<blockquote>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong> \u041f\u043e\u0447\u0435\u043c\u0443 &#171;\u0431\u0430\u0437\u043e\u0432\u044b\u0439&#187;? EBX\/BX \u0447\u0430\u0441\u0442\u043e \u0441\u043b\u0443\u0436\u0438\u0442 \u043e\u0441\u043d\u043e\u0432\u043e\u0439 \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u0430\u0434\u0440\u0435\u0441\u0430<\/p>\n<\/blockquote>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0430\u0434\u0440\u0435\u0441\u0430, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0436\u0438\u043c\u0430\u0445 \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u0432\u0438\u0434\u0430 [ebx + esi], [bx + di] \u0438 \u0442.\u0434.;<\/p>\n<\/li>\n<li>\n<p>\u0427\u0430\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438\u043b\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">mov ebx, [0x1234]     ; \u0430\u0434\u0440\u0435\u0441 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c, \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e,                       ; \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 player mov eax, [ebx + 4]    ; \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442\u0443 Y<\/code><\/pre>\n<p><strong>ECX \/ CX \/ CH \/ CL<\/strong> &#8212; \u0421\u0447\u0451\u0442\u0447\u0438\u043a (Count Register)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0430 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0427\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445 <code>loop<\/code>, <code>loope<\/code>, <code>loopne<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <code>rep<\/code> (<code>rep movsb<\/code>, <code>rep stosb<\/code>);<\/p>\n<\/li>\n<li>\n<p> \u0412 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445 \u0441\u0434\u0432\u0438\u0433\u0430 (<code>shl<\/code>, <code>shr<\/code>) <code>CL<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u0438\u0442 \u0434\u043b\u044f \u0441\u0434\u0432\u0438\u0433\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">mov cx, 0x64       ; 100 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0439 dec ax loop 0x2345        ; \u0430\u0434\u0440\u0435\u0441 \u0446\u0438\u043a\u043b\u0430<\/code><\/pre>\n<p><strong>EDX \/ DX \/ DH \/ DL<\/strong> &#8212; \u0420\u0435\u0433\u0438\u0441\u0442\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 (Data Register)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a: \u0432\u0432\u043e\u0434-\u0432\u044b\u0432\u043e\u0434, \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435, \u0434\u0435\u043b\u0435\u043d\u0438\u0435.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0412 \u043f\u0430\u0440\u0435 \u0441 EAX \u043e\u0431\u0440\u0430\u0437\u0443\u0435\u0442 32-\u0431\u0438\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (\u0432 16-\u0431\u0438\u0442\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435) \u0434\u043b\u044f <code>mul<\/code> \u0438 <code>div<\/code>;<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 DOS API (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, DS:DX &#8212; \u0430\u0434\u0440\u0435\u0441 \u0441\u0442\u0440\u043e\u043a\u0438).<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440\u044b:<\/p>\n<pre><code class=\"assembly\">mov ax, 50000 mov dx, 0 div bx           ; AX = \u0447\u0430\u0441\u0442\u043d\u043e\u0435, DX = \u043e\u0441\u0442\u0430\u0442\u043e\u043a<\/code><\/pre>\n<pre><code class=\"assembly\">mov dx, [0x3456] ; \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 mov ah, 3Dh      ; \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0444\u0430\u0439\u043b\u0430 int 21h          ; \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0444\u0430\u0439\u043b<\/code><\/pre>\n<p><strong>ESI \/ SI<\/strong> &#8212; \u0418\u043d\u0434\u0435\u043a\u0441 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 (Source Index)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u0440\u0435\u0444\u0438\u043a\u0441\u043e\u043c <code>rep<\/code> \u0432 <code>movsb<\/code>, <code>movsw<\/code>, <code>movsd<\/code> ;<\/p>\n<\/li>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0438\u043b\u0438 \u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0444\u043b\u0430\u0433\u0430 <code>DF<\/code> .<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">mov esi, [0x1234] mov edi, [0x5678] mov ecx, 100 rep movsb          ; \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c 100 \u0431\u0430\u0439\u0442<\/code><\/pre>\n<p><strong>EDI \/ DI<\/strong> &#8212; \u0418\u043d\u0434\u0435\u043a\u0441 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f (Destination Index)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 \u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c\u0438.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 <code>movsb<\/code>, <code>stosb<\/code>, <code>cmpsd<\/code> \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445;<\/p>\n<\/li>\n<li>\n<p>\u0427\u0430\u0441\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e\u043f\u0430\u043c\u044f\u0442\u044c (0xA000h) \u0438\u043b\u0438 \u0431\u0443\u0444\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430;<\/p>\n<\/li>\n<li>\n<p>\u0412 \u043f\u0430\u0440\u0435 \u0441 ESI \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0431\u043b\u043e\u043a\u043e\u0432 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">mov edi, 0xA000h    ; \u0432\u0438\u0434\u0435\u043e\u043f\u0430\u043c\u044f\u0442\u044c mov al, 15          ; \u0431\u0435\u043b\u044b\u0439 \u043f\u0438\u043a\u0441\u0435\u043b\u044c mov ecx, 64000      ; 320x200 rep stosb           ; \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u044d\u043a\u0440\u0430\u043d<\/code><\/pre>\n<p><strong>ESP \/ SP<\/strong> &#8212; \u0423\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0441\u0442\u0435\u043a\u0430 (Stack Pointer)<\/p>\n<p>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0432\u0435\u0440\u0448\u0438\u043d\u0443 \u0441\u0442\u0435\u043a\u0430.<br \/>\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\n<p>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 <code>push<\/code>, <code>pop<\/code>, <code>call<\/code>, <code>ret<\/code> ;<\/p>\n<\/li>\n<li>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u0430\u0440\u0435 \u0441 <code>SS<\/code> (\u0441\u0435\u0433\u043c\u0435\u043d\u0442 \u0441\u0442\u0435\u043a\u0430): <code>SS:ESP<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code class=\"assembly\">push ax         ; ESP -= 2 pop bx          ; BX = [ESP], ESP += 2<\/code><\/pre>\n<blockquote>\n<p><strong>\u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435:<\/strong>  \u041d\u0435<\/p>\n<\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-470721","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/470721","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=470721"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/470721\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=470721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=470721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=470721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}