{"id":373541,"date":"2024-05-21T05:38:35","date_gmt":"2024-05-21T05:38:35","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=373541"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=373541","title":{"rendered":"<span>16-\u0431\u0438\u0442\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u043a\u0430\u0445<\/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<h2>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h2>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435. \u042d\u0442\u043e \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f, \u0438 \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0415\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u0435 \u043a\u0430\u043a\u0438\u0435 \u043b\u0438\u0431\u043e \u043e\u0448\u0438\u0431\u043a\u0438 \u0438\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0435 \u043f\u043e\u0437\u043d\u0430\u043d\u0438\u044f \u0432 \u044d\u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u043f\u0438\u0448\u0438\u0442\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438 \u044f \u0432\u043d\u0435\u0441\u0443 \u043f\u0440\u0430\u0432\u043a\u0438. \u0410\u0432\u0442\u043e\u0440 \u0435\u0449\u0451 \u0443\u0447\u0438\u0442\u0441\u044f \u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u0440\u0435\u043c\u0435\u0441\u043b\u0443. \u041f\u043e\u043b\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u041e\u0421 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438. \u041e\u0421 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 <abbr class=\"habraabbr\" title=\"Netwide Assembler\" data-title=\"&lt;p>Netwide Assembler&lt;\/p>&#187; data-abbr=&#187;NASM &#171;>NASM<\/abbr>, \u0434\u043b\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 Intel x86-64.<\/p>\n<h2>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u0431\u044b\u043b\u043e \u0441\u043b\u043e\u0432\u043e&#8230;<\/h2>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/articles\/518972\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a>.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 &#171;<strong>Power<\/strong>&#171;, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u0435, \u043f\u043e\u0434\u0430\u0451\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0443. \u0417\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u0434 <strong><abbr class=\"habraabbr\" title=\"Basic Input\/Output System\" data-title=\"&lt;p>Basic Input\/Output System&lt;\/p>&#187; data-abbr=&#187;BIOS &#171;>BIOS<\/abbr><\/strong>.<\/p>\n<p>\u041a\u043e\u0434 BIOS \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0443\u044e\u0449\u0438\u0445, \u044d\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong><abbr class=\"habraabbr\" title=\"Power-On Self-Test\" data-title=\"&lt;p>Power-On Self-Test&lt;\/p>&#187; data-abbr=&#187;POST &#171;>POST<\/abbr><\/strong>. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u044b\u0445 512 \u0431\u0430\u0439\u0442 (1 \u0441\u0435\u043a\u0442\u043e\u0440) \u0441 \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 BIOS, \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <strong>Boot<\/strong> -> <strong>Boot Device Priority<\/strong> (\u041c\u043e\u0436\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 BIOS). \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0441\u043a\u0430\u0436\u0435\u043c \u0442\u0430\u043a, &#171;\u0438\u0449\u0435\u0442&#187; \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u043a\u0442\u043e\u0440, \u043e\u043d \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043d\u0430\u043c \u043a\u0430\u043a <strong><abbr class=\"habraabbr\" title=\"Master Boot Record\" data-title=\"&lt;p>Master Boot Record&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;MBR &#171;>MBR<\/abbr><\/strong>.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2f4\/ab6\/f79\/2f4ab6f79d0159139a43b460478a6fab.png\" alt=\"\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u041e\u0421\" title=\"\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u041e\u0421\" width=\"1920\" height=\"1080\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2f4\/ab6\/f79\/2f4ab6f79d0159139a43b460478a6fab.png\"\/><\/p>\n<div><figcaption>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u041e\u0421<\/figcaption><\/div>\n<\/figure>\n<h2>\u0418 \u0441\u043b\u043e\u0432\u043e \u0431\u044b\u043b\u043e 0xaa55<\/h2>\n<p>\u041a\u0430\u043a \u044f \u0432\u044b\u0440\u0430\u0437\u0438\u043b\u0441\u044f \u0432\u044b\u0448\u0435, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 &#171;\u0438\u0449\u0435\u0442&#187; \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u043a\u0442\u043e\u0440. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0441\u0435\u043a\u0442\u043e\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <strong>0xaa55<\/strong>. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 &#171;\u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442&#187;, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u043a\u0442\u043e\u0440, \u0437\u0430\u0442\u0435\u043c \u0441\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u041e\u0417\u0423 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <strong>0x7c00<\/strong> \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0435\u0433\u043e \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0436\u0451\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u043a\u0442\u043e\u0440, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 0x19 \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0434\u0438\u0441\u043a\u0443. \u0415\u0441\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442, \u0442\u043e \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u043e \u0442\u0438\u043f\u0443 &#171;<strong>No bootable devices found.<\/strong>&#171;.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d78\/ce6\/84c\/d78ce684c924844304707332dc861f1f.jpg\" alt=\"\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\" title=\"\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\" width=\"1280\" height=\"720\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d78\/ce6\/84c\/d78ce684c924844304707332dc861f1f.jpg\" data-blurred=\"true\"\/><\/p>\n<div><figcaption>\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432<\/figcaption><\/div>\n<\/figure>\n<h2>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b<\/h2>\n<p>\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 &#171;<strong>Real Mode<\/strong>&#171;, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b 16-\u0431\u0438\u0442\u043d\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b: <strong>ax, bx, cx, dx, sp, si, di, bp. <\/strong>\u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u043a 8-\u0431\u0438\u0442\u043d\u044b\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c. 8-\u0431\u0438\u0442\u043d\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442 16-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0421\u0442\u0430\u0440\u0448\u0438\u0439 8-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041c\u043b\u0430\u0434\u0448\u0438\u0439 8-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>16-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">AH<\/p>\n<\/td>\n<td>\n<p align=\"left\">AL<\/p>\n<\/td>\n<td>\n<p align=\"left\">AX<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">BH<\/p>\n<\/td>\n<td>\n<p align=\"left\">BL<\/p>\n<\/td>\n<td>\n<p align=\"left\">BX<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">CH<\/p>\n<\/td>\n<td>\n<p align=\"left\">CL<\/p>\n<\/td>\n<td>\n<p align=\"left\">CX<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">DH<\/p>\n<\/td>\n<td>\n<p align=\"left\">DL<\/p>\n<\/td>\n<td>\n<p align=\"left\">DX<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f<\/h2>\n<p>BIOS \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0446\u0435\u043b\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0435\u0439, \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0439, \u0436\u0451\u0441\u0442\u043a\u0438\u043c\u0438 \u0434\u0438\u0441\u043a\u0430\u043c\u0438 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435 (256 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439). \u042f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u041e\u0421.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\"><strong>\u041d\u043e\u043c\u0435\u0440 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x13<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u0434\u0438\u0441\u043a\u043e\u043c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x10<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0438\u0434\u0435\u043e \u0441\u0435\u0440\u0432\u0438\u0441. <em>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d<\/em><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x16<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u043e\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x15<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0430\u043c\u044f\u0442\u044c\u044e. <em>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430<\/em><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x19<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <abbr class=\"habraabbr\" title=\"\u0422\u0435\u043f\u043b\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 - \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0431\u0435\u0437 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0431\u0435\u0437 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u042d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u0430\u043a &quot;\u043c\u044f\u0433\u043a\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430&quot; \u0438\u043b\u0438 &quot;\u0442\u0435\u043f\u043b\u044b\u0439 \u0441\u0442\u0430\u0440\u0442&quot;. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0435\u043f\u043b\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 DOS).\" data-title=\"&lt;p>\u0422\u0435\u043f\u043b\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b&amp;nbsp;&lt;strong>\u0431\u0435\u0437 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f&lt;\/strong>. \u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0431\u0435\u0437 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u042d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u0430\u043a &quot;\u043c\u044f\u0433\u043a\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430&quot; \u0438\u043b\u0438 &quot;\u0442\u0435\u043f\u043b\u044b\u0439 \u0441\u0442\u0430\u0440\u0442&quot;. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0435\u043f\u043b\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 DOS).  &lt;\/p>&#187; data-abbr=&#187;\u00ab\u0442\u0435\u043f\u043b\u043e\u0439\u00bb&#187;>\u00ab\u0442\u0435\u043f\u043b\u043e\u0439\u00bb<\/abbr> \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0431\u0435\u0437 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438\u043b\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 (<abbr class=\"habraabbr\" title=\"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 (\u0430\u043d\u0433\u043b. Interrupt Descriptor Table, IDT) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 x86 \u0438 \u0440\u044f\u0434\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0438 \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u0412 \u043c\u0438\u043a\u0440\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445 Intel 8086\/80186 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0430 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0430\u0434\u0440\u0435\u0441\u0430 0000:0000 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 256 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442:\u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435. \u0412 IDT \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439: \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438 (\u043f\u0435\u0440\u0432\u044b\u0435 32) \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439.\" data-title=\"&lt;p>&lt;a href=&quot;https:\/\/ru.wikipedia.org\/wiki\/%D0%A2%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D0%B0_%D0%B2%D0%B5%D0%BA%D1%82%D0%BE%D1%80%D0%BE%D0%B2_%D0%BF%D1%80%D0%B5%D1%80%D1%8B%D0%B2%D0%B0%D0%BD%D0%B8%D0%https:\/\/ru.wikipedia.org\/wiki\/%D0%A2%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D0%B0_%D0%B2%D0%B5%D0%BA%D1%82%D0%BE%D1%80%D0%BE%D0%B2_%D0%BF%D1%80%D0%B5%D1%80%D1%8B%D0%B2%D0%B0%D0%BD%D0%B8%D0%B9B9&quot;>&lt;strong>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439&lt;\/strong>&lt;\/a>&lt;strong> (\u0430\u043d\u0433\u043b. Interrupt Descriptor Table, IDT)&lt;\/strong>&amp;nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 x86 \u0438 \u0440\u044f\u0434\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0438&amp;nbsp;&lt;strong>\u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f&lt;\/strong>.&lt;\/p>&lt;p>\u0412 \u043c\u0438\u043a\u0440\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445 Intel 8086\/80186 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0430 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0430\u0434\u0440\u0435\u0441\u0430 0000:0000 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 256 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442:\u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435.&lt;\/p>&lt;p>\u0412 IDT \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439:&lt;\/p>&lt;p>\u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f,&lt;\/p>&lt;p>\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f,&lt;\/p>&lt;p>\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438 (\u043f\u0435\u0440\u0432\u044b\u0435 32) \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439.&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;IVT&#187;>IVT<\/abbr>)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u0420\u0435\u0436\u0438\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 x86-64<\/h2>\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b x86-64 \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 3 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u0430\u0445. \u042d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 (<strong>real mode<\/strong>), \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0439 (<strong>protected mode<\/strong>) \u0438 64-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c (<strong>long mode<\/strong>). \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430, \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 BIOS. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0443\u044e\u0449\u0438\u043c\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430.<\/p>\n<p><strong>\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c (real mode)<\/strong> &#8212; \u042d\u0442\u043e \u0440\u0435\u0436\u0438\u043c \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u042d\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 16-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e 1\u041c\u0431 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043c\u0430\u043b\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438.<\/p>\n<p><strong>\u0417\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c (protected mode \u0438\u043b\u0438 legacy mode) <\/strong>&#8212; \u042d\u0442\u043e 32-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c, \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0433\u043b\u0430\u0432\u043d\u044b\u043c. \u0412 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430. \u042d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c \u0434\u0430\u0451\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a 4\u0413\u0431 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0410 \u043f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a 64\u0413\u0431 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430. \u0417\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u043c \u044d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. &#171;\u0420\u043e\u0434\u043d\u043e\u0439&#187; \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 <strong><abbr class=\"habraabbr\" title=\"\u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e - 4 \u0431\u0430\u0439\u0442\u0430\" data-title=\"&lt;p>\u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e &#8212; 4 \u0431\u0430\u0439\u0442\u0430&lt;\/p>&#187; data-abbr=&#187;DWORD&#187;>DWORD<\/abbr>. <\/strong><\/p>\n<p><strong>Long mode<\/strong> &#8212; 64-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c. \u0412 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a <abbr class=\"habraabbr\" title=\"\u2248 4 \u041f\u0431\" data-title=\"&lt;p>&lt;strong>\u2248&lt;\/strong>4 \u041f\u0431&lt;\/p>&#187; data-abbr=&#187;2\u2075\u00b2&#187;>2\u2075\u00b2<\/abbr> \u0431\u0430\u0439\u0442\u0430\u043c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 <abbr class=\"habraabbr\" title=\"\u2248 256\u0422\u0431\" data-title=\"&lt;p>&lt;strong>\u2248&lt;\/strong>256\u0422\u0431&lt;\/p>&#187; data-abbr=&#187;2\u2074\u2078&#187;>2\u2074\u2078<\/abbr> \u0431\u0430\u0439\u0442\u0430\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412 64-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u044c \u0438\u0437 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430. \u0412 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 &#171;\u0420\u043e\u0434\u043d\u043e\u0439&#187; \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u044d\u0442\u043e <strong><abbr class=\"habraabbr\" title=\"\u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e - 4 \u0431\u0430\u0439\u0442\u0430\" data-title=\"&lt;p>\u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e &#8212; 4 \u0431\u0430\u0439\u0442\u0430&lt;\/p>&#187; data-abbr=&#187;DWORD&#187;>DWORD<\/abbr><\/strong>, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 <strong><abbr class=\"habraabbr\" title=\"\u0427\u0435\u0442\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e - 8 \u0431\u0430\u0439\u0442\" data-title=\"&lt;p>\u0427\u0435\u0442\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e &#8212; 8 \u0431\u0430\u0439\u0442&lt;\/p>&#187; data-abbr=&#187;QWORD &#171;>QWORD<\/abbr><\/strong>.<\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e 3 \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f 2 \u043f\u043e\u0434\u0440\u0435\u0436\u0438\u043c\u0430<\/p>\n<p><strong>\u0420\u0435\u0436\u0438\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 8086<\/strong> &#8212; \u042d\u0442\u043e \u043f\u043e\u0434\u0440\u0435\u0436\u0438\u043c \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 16-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u043c\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u0447\u043d\u043e\u0439 32-\u0431\u0438\u0442\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n<p><strong>\u0420\u0435\u0436\u0438\u043c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043b\u044f long mode<\/strong> &#8212; \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b 4\u0413\u0431 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043f\u043e\u043b\u043d\u0430\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 32 \u0438 16-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0420\u0435\u0436\u0438\u043c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u043c\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u0447\u043d\u043e\u0439 64-\u0431\u0438\u0442\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438, \u0440\u0430\u0437\u043c\u0435\u0440 \u0430\u0434\u0440\u0435\u0441\u0430 32-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439, \u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c <strong><abbr class=\"habraabbr\" title=\"\u0427\u0435\u0442\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e - 8 \u0431\u0430\u0439\u0442\" data-title=\"&lt;p>\u0427\u0435\u0442\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e &#8212; 8 \u0431\u0430\u0439\u0442&lt;\/p>&#187; data-abbr=&#187;QWORD&#187;>QWORD<\/abbr><\/strong>.<\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 <strong>\u0420\u0435\u0436\u0438\u043c \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f <\/strong>(System Management Mode), \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0432\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f <abbr class=\"habraabbr\" title=\"SMI (System Management Interrupt) - \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. SMI \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439\" data-title=\"&lt;p>SMI (System Management Interrupt) &#8212; \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. SMI \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439&lt;\/p>&#187; data-abbr=&#187;SMI&#187;>SMI<\/abbr>. \u0420\u0435\u0436\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0445 \u043f\u043e\u043b\u043d\u043e\u0439 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u043e\u0442 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0438 \u0434\u0430\u0436\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0420\u0435\u0436\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u043d\u0435\u0440\u0433\u043e\u0441\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0438\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430.<\/p>\n<h2>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/h2>\n<p><strong>\u0417\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a<\/strong> &#8212; \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0420\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c 512 \u0431\u0430\u0439\u0442. \u042d\u0442\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0443\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u043a\u043e\u0434 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u043c \u0441\u0435\u043a\u0442\u043e\u0440\u0435, \u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0437\u0430 \u0435\u0451 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f <abbr class=\"habraabbr\" title=\"\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u0434\u0438\u0441\u043a\u043e\u043c\" data-title=\"&lt;p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u0434\u0438\u0441\u043a\u043e\u043c&lt;\/p>&#187; data-abbr=&#187;\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 0x13&#8243;>\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 0x13<\/abbr>.<\/p>\n<pre><code class=\"assembly\">org 0x7c00  jmp pre_boot  pre_boot:     cli         ; \u0417\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f     xor ax, ax  ; \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b     mov ds, ax  ; \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b     mov es, ax  ; \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b     mov ss, ax  ; \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b     mov sp, 0x7c00     ; \u0427\u0442\u0435\u043d\u0438\u0435 \u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u041e\u0417\u0423     mov ah, 0x02; \u0424\u0443\u043d\u043a\u0446\u0438\u044f 0x02 - \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u0434\u0438\u0441\u043a\u043e\u043c     mov al, 7   ; \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 7 = 7*512 = 3584 \u0431\u0430\u0439\u0442     mov ch, 0x00   ; \u041d\u043e\u043c\u0435\u0440 \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u0430     mov cl, 0x02   ; \u041d\u043e\u043c\u0435\u0440 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u0430 2. 1 \u0441\u0435\u043a\u0442\u043e\u0440 - \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, 2 \u0441\u0435\u043a\u0442\u043e\u0440 - \u041e\u0421.     mov dh, 0x00   ; \u0421\u0442\u043e\u0440\u043e\u043d\u0430 \u0434\u0438\u0441\u043a\u0430     mov dl, 0x80   ; \u041d\u043e\u043c\u0435\u0440 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u041d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 0x80 - 0, 0x81 - 1, ...     mov bx, 0x7e00 ; \u0410\u0434\u0440\u0435\u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445     int 0x13       ; \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0442\u043e\u0440\u0430     jc read_error  ; \u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u043a\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430 read_error.      jmp 0x7e00    ; \u0415\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u043c\u0443 \u043a\u043e\u0434\u0443. 0x7c00 + 512 = 0x7e00  read_error:     mov ah, 0x0e ; \u041d\u043e\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0438 0x10, \u0432\u044b\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d.     mov al, 'R'  ; \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b     int 0x10     ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b     mov al, 'E'     int 0x10     mov al, 'A'     int 0x10     mov al, 'D'     int 0x10     mov al, ' '     int 0x10     mov al, 'E'     int 0x10     mov al, 'R'     int 0x10     mov al, 'R'     int 0x10     mov al, 'O'     int 0x10     mov al, 'R'     int 0x10     mov al, '!'     int 0x10       jmp $        ; \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u044d\u0442\u043e\u0439 \u043c\u0435\u0442\u043a\u0435. \u0417\u0430\u0432\u0438\u0441\u0430\u0435\u043c \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0441 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043e\u0448\u0438\u0431\u043a\u0438.  times 510 - ($- $$) db 0 ; \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043e\u0441\u0442\u0430\u0432\u0448\u0443\u044e\u0441\u044f \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430 \u043d\u0443\u043b\u044f\u043c\u0438. dw 0xaa55 ; \u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0435\u043a\u0442\u043e\u0440\u0430.<\/code><\/pre>\n<p><strong>\u0412\u0430\u0436\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435!<\/strong><\/p>\n<p>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0438 \u0435\u0451 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 7 \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435, \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0430 &#171;<strong>READ ERROR!<\/strong>&#171;. \u041f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u041e\u0421, \u0438\u043c\u0435\u0439\u0442\u0435 \u044d\u0442\u043e \u0432\u0432\u0438\u0434\u0443!<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/6ea\/9ae\/aa3\/6ea9aeaa3c9571cd1484bfe0cae80f32.png\" alt=\"\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u0430. \u0423\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.\" title=\"\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u0430. \u0423\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.\" width=\"722\" height=\"400\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6ea\/9ae\/aa3\/6ea9aeaa3c9571cd1484bfe0cae80f32.png\"\/><\/p>\n<div><figcaption>\u041e\u0448\u0438\u0431\u043a\u0430 \u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u0430. \u0423\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430.<\/figcaption><\/div>\n<\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0433\u043e\u0442\u043e\u0432, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430. \u042d\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u044f \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0443 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0444\u0430\u0439\u043b\u0435, \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 &#171;drivers&#187;.<\/p>\n<p>\u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0432 \u0441\u0442\u0438\u043b\u0435 \u044f\u0437\u044b\u043a\u0430 <strong>C<\/strong>, \u0447\u0442\u043e \u0431\u044b \u0431\u044b\u0441\u0442\u0440\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0432 \u043a\u0430\u043a\u0438\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b, \u043a\u0430\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0434\u043b\u044f \u0432\u044b\u0437\u043e\u0432\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0439\u0434\u0451\u043c\u0441\u044f \u043f\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0443:<\/p>\n<ul>\n<li>\n<p><strong>cls<\/strong> &#8212; \u041e\u0447\u0438\u0441\u0442\u043a\u0430 \u044d\u043a\u0440\u0430\u043d\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>out_char<\/strong> &#8212; \u0412\u044b\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d.<\/p>\n<\/li>\n<li>\n<p><strong>out_string<\/strong> &#8212; \u0412\u044b\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d.<\/p>\n<\/li>\n<li>\n<p><strong>in_char<\/strong> &#8212; \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430.<\/p>\n<\/li>\n<li>\n<p><strong>in_string<\/strong> &#8212; \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>compare_str<\/strong> &#8212; \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0434\u0432\u0443\u0445 \u0441\u0442\u0440\u043e\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>clear_buffer<\/strong> &#8212; \u041e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u0431\u0443\u0444\u0435\u0440 (\u0417\u0430\u043d\u0443\u043b\u0438\u0442\u044c).<\/p>\n<\/li>\n<li>\n<p><strong>new_line<\/strong> &#8212; \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u043a\u0430\u0440\u0435\u0442\u043a\u0438 \u0432\u0432\u043e\u0434\u0430 \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"assembly\">; ============================================================================ ; \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 BIOS ; ============================================================================ global cls          ; void cls(); global out_char     ; void out_char(char bl); global out_string   ; void out_string(char* si);  global in_char      ; char in_char() return char al; global in_string    ; void in_string(char[]* si);  global comapre_strs ; int (const char* first_word[] si, const char* last_word[] bx) return cx (1 - \u0440\u0430\u0432\u043d\u044b, 0 - \u043d\u0435 \u0440\u0430\u0432\u043d\u044b);  global clear_buffer ; void (const char* buf_address[] si, int buf_size bx);  global new_line ; void new_line();  section .text  new_line:        ; \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u043a\u0430\u0440\u0435\u0442\u043a\u0438 \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443     push ax      ; \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 ax \u0432 \u0441\u0442\u0435\u043a\u0435     mov ah, 0x0e ; \u041d\u043e\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f 0x10. \u0412\u044b\u0432\u043e\u0434     mov al, 0x0a ; \u0421\u0438\u043c\u0432\u043e\u043b \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u043a\u0430\u0440\u0435\u0442\u043a\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u043e     int 0x10     ; \u0412\u044b\u0437\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0432\u0438\u0434\u0435\u043e\u0441\u0435\u0440\u0432\u0438\u0441\u043e\u043c     mov al, 0x0d ; \u0421\u0438\u043c\u0432\u043e\u043b \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u0441\u0442\u0440\u043e\u043a\u0438     int 0x10     pop ax       ; \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 ax     ret          ; \u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438  cls:     push ax      ; \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 ax     mov ah, 0x00 ; \u041d\u043e\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f 0x10. \u0418\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0435\u043e\u0440\u0435\u0436\u0438\u043c\u0430     mov al, 0x03 ; \u041d\u043e\u043c\u0435\u0440 \u0432\u0438\u0434\u0435\u043e\u0440\u0435\u0436\u0438\u043c\u0430. 0x03 - \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u0432\u0438\u0434\u0435\u043e\u0440\u0435\u0436\u0438\u043c.     int 0x10          pop ax       ; \u0412\u043e\u0441\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 ax     ret          ; \u0412\u044b\u0445\u043e\u0434\u0438\u043c \u0438\u0437 \u0444\u0443\u043d\u043a\u0446\u0438\u0438  out_char:        ; \u0412\u044b\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d     push ax     mov ah, 0x0e     mov al, bl   ; \u0412 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 bl \u043c\u044b \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u043b\u0438 \u0441\u0438\u043c\u0432\u043e\u043b \u043d\u0430 \u0432\u044b\u0432\u043e\u0434     int 0x10     pop ax     ret  out_string:      ; \u0412\u044b\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d     push ax     mov ah, 0x0e     call __out_string_next_char     pop ax     ret __out_string_next_char:     mov al, [si]        ; \u0412 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 si \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0442\u0440\u043e\u043a\u0438. \u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0438\u0437 \u0430\u0434\u0440\u0435\u0441\u0430 si \u0432 al     cmp al, 0           ; \u0417\u0430\u0442\u0435\u043c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u043c al \u0441 0     jz __out_string_if_zero  ; \u0435\u0441\u043b\u0438 al = 0 \u0437\u043d\u0430\u0447\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c     int 0x10                 ; \u0435\u0441\u043b\u0438 al != 0 \u0437\u043d\u0430\u0447\u0438\u0442, \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0430\u0434\u0440\u0435\u0441\u0443 \u0447\u0442\u043e-\u0442\u043e \u0435\u0441\u0442\u044c, \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b \u043d\u0430 \u044d\u043a\u0440\u0430\u043d     inc si                   ; \u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u043c si \u043d\u0430 1     jmp __out_string_next_char ; \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0441\u043d\u043e\u0432\u0430 __out_string_if_zero:     ret                    ; \u041f\u043e\u043a\u0438\u0434\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e  in_char:        ; \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430     push bx     mov ah, 0     int 0x16    ; \u0421\u0438\u043c\u0432\u043e\u043b \u0441\u043e\u0445\u0440\u0430\u043d\u0451\u043d \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 al     mov ah, 0x0e     mov bh, 0     mov bl, 0x07     int 0x10    ; \u0412\u044b\u0432\u043e\u0434 \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d     pop bx     ret   comapre_strs:       ; \u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a     push si     push bx     push ax __comapre_strs_comp:     mov ah, [bx]     cmp [si], ah     jne __comapre_strs_first_zero     inc si     inc bx     jmp __comapre_strs_comp __comapre_strs_first_zero:     cmp byte [bx], 0     jne __comapre_strs_not_equal     mov cx, 1     pop si     pop bx     pop ax     ret __comapre_strs_not_equal:     mov cx, 0     pop si     pop bx     pop ax     ret   clear_buffer:     ; si - \u0410\u0434\u0440\u0435\u0441 \u0431\u0443\u0444\u0435\u0440\u0430     ; bx - \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u0430\u0439\u0442 \u043d\u0430 \u043e\u0447\u0438\u0441\u0442\u043a\u0443     push cx     mov cx, 0 __clear_buffer_loop:     cmp cx, bx     je __clear_buffer_end_loop     mov byte [si], 0     inc si     inc cx     jmp __clear_buffer_loop __clear_buffer_end_loop:     pop cx     ret    in_string:             ; \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434 \u0441\u0442\u0440\u043e\u043a\u0438. \u0410\u0434\u0440\u0435\u0441 \u0431\u0443\u0444\u0435\u0440\u0430 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 si     push ax     push cx     xor cx, cx __input_string_loop:     mov ah, 0     int 0x16     cmp al, 0x0d            ; \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0436\u0430\u043b Enter, \u0442\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u044d\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435     je __input_string_enter     cmp al, 0x08            ; \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0436\u0430\u043b Backspace, \u0442\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c \u044d\u0442\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u0435     je __input_string_backspace      mov [si], al     inc si     inc cx      mov ah, 0x0e     mov bh, 0     mov bl, 0x07     int 0x10     cmp cx, 255               ; \u0415\u0441\u043b\u0438 \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u0451\u043b 255 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432     je __input_string_enter   ; \u0422\u043e \u043f\u0440\u044b\u0433\u0430\u0435\u043c \u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 Enter     jmp __input_string_loop __input_string_enter:     mov ah, 0x0e ; \u041d\u043e\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 int 0x10 - \u0432\u044b\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430      mov al, 0x0d ; \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u043a\u0430\u0440\u0435\u0442\u043a\u0438 \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443     mov bh, 0     mov bl, 0x07 ; \u0426\u0432\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 0 - \u0447\u0451\u0440\u043d\u044b\u0439 \u0444\u043e\u043d 7 - \u0431\u0435\u043b\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b     int 0x10     mov al, 0xa  ; \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u043a\u0430\u0440\u0435\u0442\u043a\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u0442\u0440\u043e\u043a\u0438     int 0x10      mov byte [si], 0 ; \u041f\u043e\u043c\u0435\u0449\u0430\u0435\u043c \u0432 \u043a\u043e\u043d\u0435\u0446 \u0441\u0442\u0440\u043e\u043a\u0438 0     pop cx     pop ax     ret __input_string_backspace:     cmp cx, 0         ; \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u043e\u043c\u0435\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043f\u043e \u0441\u0447\u0451\u0442\u0443. \u0415\u0441\u043b\u0438 \u044d\u0442\u043e 0 \u0441\u0438\u043c\u0432\u043e\u043b - \u0437\u043d\u0430\u0447\u0438\u0442 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u0441\u0442\u0438\u0440\u0430\u043d\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e \u0441\u0442\u0435\u0440\u0435\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u0443\u044e \u041e\u0421 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e.     je __input_string_loop ; \u0415\u0441\u043b\u0438 \u044d\u0442\u043e 0 \u0441\u0438\u043c\u0432\u043e\u043b, \u0442\u043e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u0446\u0438\u043a\u043b \u0432\u0432\u043e\u0434\u0430     mov ah, 0x0e            ; \u0418\u043d\u0430\u0447\u0435, \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 Backspace, \u041f\u0440\u043e\u0431\u0435\u043b, Backspace     mov al, 0x08            ; Backspace     int 0x10     mov al, 0x20            ; \u041f\u0440\u043e\u0431\u0435\u043b     int 0x10     mov al, 0x08            ; Backspace     int 0x10      mov byte [si], 0     dec si                 ; \u0423\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c si \u043d\u0430 1. si - \u0430\u0434\u0440\u0435\u0441 cx - \u043d\u043e\u043c\u0435\u0440 \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430. \u0423\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u043c \u0434\u0432\u0430 \u044d\u0442\u0438\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u043d\u0430 \u043e\u0434\u0438\u043d     dec cx     jmp __input_string_loop ; \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u0446\u0438\u043a\u043b \u0432\u0432\u043e\u0434\u0430<\/code><\/pre>\n<p>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0438 <strong>157-163<\/strong>. \u0412 \u0441\u0442\u0440\u043e\u043a\u0435 157 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u044f \u0443\u043a\u0430\u0437\u0430\u043b, &#171;<em>\u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430\u00a0Backspace, \u041f\u0440\u043e\u0431\u0435\u043b, Backspace<\/em>&#171;. \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 Backspace \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0432\u0432\u043e\u0434\u0430, \u043a\u0430\u0440\u0435\u0442\u043a\u0430 \u0441\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432\u043b\u0435\u0432\u043e \u043d\u0430 1 \u0441\u0438\u043c\u0432\u043e\u043b \u0438 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043f\u043e\u0434 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u043c. \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0435\u0451 \u0441\u0442\u0435\u0440\u0435\u0442\u044c, \u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u044c \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0438\u043c\u0432\u043e\u043b (\u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0435\u0442 \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c <strong>Insert<\/strong> \u043d\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u0435). \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0431\u043e\u0440 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439, Backspace, \u041f\u0440\u043e\u0431\u0435\u043b, Backspace. \u0427\u0442\u043e \u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435, \u0432 \u043a\u043e\u0434\u0435 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u043d\u044b \u044d\u0442\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f.<\/p>\n<h2>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430<\/h2>\n<p>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0438 \u043d\u0430\u0431\u043e\u0440 \u043a\u043e\u043c\u0430\u043d\u0434. \u0420\u0430\u0431\u043e\u0442\u0443 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c \u043f\u043e \u043f\u043e\u0434\u043e\u0431\u0438\u044e Callback \u0444\u0443\u043d\u043a\u0446\u0438\u0439.<\/p>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u043e\u0434\u0438\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 -> \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a \u043a\u043e\u043c\u0430\u043d\u0434 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434 \u0441 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438. \u0415\u0441\u043b\u0438 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434 \u0440\u0430\u0432\u043d\u044b, \u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443. \u0415\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u0430, \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 &#171;Comand not found!&#187;.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d70\/fd9\/f14\/d70fd9f14598d5ad429a02ad465df60c.png\" alt=\"\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\" title=\"\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\" width=\"835\" height=\"443\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d70\/fd9\/f14\/d70fd9f14598d5ad429a02ad465df60c.png\"\/><\/p>\n<div><figcaption>\u0413\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043c\u0430\u043d\u0434<\/figcaption><\/div>\n<\/figure>\n<pre><code class=\"assembly\">jmp boot  boot:     call cls                 ; \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u044d\u043a\u0440\u0430\u043d     call IBM_WELCOME_WINDOW  ; \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0432\u044b\u0432\u043e\u0434\u0430 \u043b\u043e\u0433\u043e\u0442\u0438\u043f\u0430 IBM     call cls                 ; \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u044d\u043a\u0440\u0430\u043d     mov si, welcome     call out_string          ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435     jmp input_loop           ; \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u0446\u0438\u043a\u043b\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430  IBM_WELCOME_WINDOW:     mov si, IBM_WELCOME     call out_string      mov ax, 0x8600  ; \u0412\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f, \u0432 \u043c\u0441     mov cx, 30      ; \u041d\u043e\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 30 - \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435     int 0x15        ; \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c 0x15 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f     ret  input_loop:      mov si, buffer     mov bx, 255     call clear_buffer ; \u041e\u0447\u0438\u0449\u0430\u0435\u043c \u0431\u0443\u0444\u0435\u0440 \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430      mov si, prompt       call out_string   ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c live@cd>      mov si, buffer         call in_string    ; \u0414\u0430\u0451\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u044b      jmp OS_callback   ; \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e \u0432\u0432\u0451\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c       jmp input_loop    ; \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u043c \u0446\u0438\u043a\u043b    OS_callback:     mov si, help_in     mov bx, buffer     call comapre_strs   ; \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434 \u0441 help     cmp cx, 1     je Callback_HELP    ; \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u0451\u043b help, \u0442\u043e \u043f\u0440\u044b\u0433\u0430\u0435\u043c \u0432 Callback_HELP      mov si, cls_in      ; \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434 \u0441 cls     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_CLS     ; \u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0432\u0432\u0451\u043b cls, \u0442\u043e \u043f\u0440\u044b\u0433\u0430\u0435\u043c \u0432 Callback_CLS      mov si, info_in     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_INFO      mov si, reboot_in     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_REBOOT      mov si, echo_in     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_ECHO       jne Callback_WRONG  ; \u0415\u0441\u043b\u0438 \u043d\u0438 \u043e\u0434\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u0430, \u0442\u043e \u0441\u043e\u043e\u0431\u0449\u0430\u0435\u043c, \u0447\u0442\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u0432\u0435\u0434\u0435\u043d\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e     jmp input_loop  Callback_HELP:     mov si, help_out     call out_string     ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c     jmp input_loop Callback_CLS:     call cls            ; \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u044d\u043a\u0440\u0430\u043d\u0430     jmp input_loop  Callback_WRONG:         ; \u041d\u0435\u0432\u0435\u0440\u043d\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430     mov si, wrong_command_1     call out_string           ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f: Command '     mov si, buffer            ;      call out_string           ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0442\u043e, \u0447\u0442\u043e \u0432\u0432\u0451\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c     mov si, wrong_command_2   ;      call out_string           ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432\u0442\u043e\u0440\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f: ' not found. Type 'help' to get all commands     jmp input_loop            ; \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0446\u0438\u043a\u043b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430  Callback_INFO:     mov si, info_out     call out_string           ; \u0422\u043e\u0442 \u0436\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c, \u0447\u0442\u043e \u0438 help     jmp input_loop  Callback_REBOOT:     mov ah, 0                 ; \u041d\u043e\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 0 - \"\u0442\u0451\u043f\u043b\u0430\u044f\" \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430     int 0x19                  ; \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c 0x19 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435     jmp $                     ; \u0417\u0430\u0432\u0438\u0441\u0430\u0435\u043c. \u041c\u043e\u0436\u043d\u043e \u043d\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u0434\u043e\u0431\u0430\u0432\u0438\u043b  Callback_ECHO:     mov si, echo_out               call out_string           ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u043f\u0440\u043e\u0441\u044c\u0431\u0443 \u0432\u0432\u0435\u0441\u0442\u0438 \u0441\u043b\u043e\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u0432\u0435\u0434\u0435\u043c      mov si, buffer                 call in_string            ; \u041e\u0436\u0438\u0434\u0430\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434      mov si, buffer     call out_string           ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u043e      call new_line             ; \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043d\u0430 \u043d\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443          jmp input_loop            ; \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u0432 \u0446\u0438\u043a\u043b \u0432\u0432\u043e\u0434\u0430   %include \"drivers\/IO.asm\"     ; \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 IO.asm ; \u0414\u0430\u043b\u0435\u0435 \u0441\u0435\u043a\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u0442\u0443\u0442 \u0434\u0443\u043c\u0430\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435\u043c \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0435\u0442. welcome db \"Welcome to TermOS!\", 0x0a, 0x0d, \"Type 'help' to get command list!\", 0x0a, 0x0d, 0 prompt db \"live@cd:>\", 0  wrong_command_1 db \"Command: '\", 0 wrong_command_2 db \"' not found. Type 'help' to get all commands\", 0x0a, 0x0d, 0 echo_out db \"Echo: \", 0    help_in db \"help\", 0 cls_in db \"cls\", 0 info_in db \"info\", 0 reboot_in db \"reboot\", 0 echo_in db \"echo\", 0    info_out db \"TermOS x16 (Terminal Operation System 16-bit) v.0.0:\", 0x0a, 0x0d, \"        This is operation system in development.\", 0x0a, 0x0d, \"         Author: Daniil Kulikovskiy.\", 0x0a, 0x0d, \"          Made in Russia!\", 0x0a, 0x0d, 0 help_out db \"          cls - Clear screen\", 0x0a, 0x0d, \"         info - Get system info\", 0x0a, 0x0d, \"        reboot - Reboot computer\", 0x0a, 0x0d, \"       echo - Write text in screen\", 0x0a, 0x0d, 0     IBM_WELCOME db \"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"              ======== ========    ======          =======                     \", 0x0a, 0x0d,\"              ======== =========   ========       ========                     \", 0x0a, 0x0d,\"                ===       ==  ===    =======     =======                       \", 0x0a, 0x0d,\"                ===       ======     ========   ========                       \", 0x0a, 0x0d,\"                ===       ======     ==  ===== =====  ==                       \", 0x0a, 0x0d,\"                ===       ==  ===    ==   =========   ==                       \", 0x0a, 0x0d,\"              ======== =========  =====    =======    =====                    \", 0x0a, 0x0d,\"              ======== ========   =====       =       =====                    \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\" (C) COPYRIGHT 1981, 1996 IBM CORPARATION - ALL RIGHTS RESERVED                \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d, 0   buffer times 255 db 0<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/aef\/d8b\/8aa\/aefd8b8aa69dc3ecab03b7f5a0b18172.png\" alt=\"\u0417\u0430\u0431\u0430\u0432\u044b \u0440\u0430\u0434\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043b\u043e\u0433\u043e\u0442\u0438\u043f &quot;IBM&quot; \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u044d\u043a\u0440\u0430\u043d.\" title=\"\u0417\u0430\u0431\u0430\u0432\u044b \u0440\u0430\u0434\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043b\u043e\u0433\u043e\u0442\u0438\u043f &quot;IBM&quot; \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u044d\u043a\u0440\u0430\u043d.\" width=\"718\" height=\"398\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aef\/d8b\/8aa\/aefd8b8aa69dc3ecab03b7f5a0b18172.png\"\/><\/p>\n<div><figcaption>\u0417\u0430\u0431\u0430\u0432\u044b \u0440\u0430\u0434\u0438, \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043b\u043e\u0433\u043e\u0442\u0438\u043f &#171;IBM&#187; \u043d\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u044d\u043a\u0440\u0430\u043d.<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u041f\u043e\u043f\u0440\u043e\u0448\u0443 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c!<\/strong><\/p>\n<p><strong>jmp<\/strong> &#8212; \u0431\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u043c\u0435\u0442\u043a\u0435 \u0438\u043b\u0438 \u0430\u0434\u0440\u0435\u0441\u0443.<\/p>\n<p><strong>call<\/strong> &#8212; \u0431\u0435\u0437\u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u043c\u0435\u0442\u043a\u0435 \u0438\u043b\u0438 \u0430\u0434\u0440\u0435\u0441\u0443, \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u0430\u0434\u0440\u0435\u0441\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0442\u0430 \u0432 \u0441\u0442\u0435\u043a. \u041f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 call, \u0432\u0441\u0435\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c ret.<\/p>\n<p><strong>ret<\/strong> &#8212; \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0430\u0434\u0440\u0435\u0441\u0443 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c\u0443 \u0432 \u0441\u0442\u0435\u043a\u0435.<\/p>\n<p><strong>\u041f\u043e\u0447\u0435\u043c\u0443 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043c\u0435\u0442\u043a\u0438 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f 0x0a, 0x0d, 0<\/strong>?<\/p>\n<p><strong>0x0a<\/strong> &#8212; \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/p>\n<p><strong>0x0d<\/strong> &#8212; \u041f\u0435\u0440\u0435\u0432\u043e\u0434 \u043a\u0430\u0440\u0435\u0442\u043a\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u043e \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p><strong>0<\/strong> &#8212; \u041a \u0441\u0442\u0440\u043e\u043a\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u043b\u044c, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043a\u043e\u043d\u0435\u0446 \u0441\u0442\u0440\u043e\u043a\u0438.<\/p>\n<p>\u041d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b &#171;<strong>help<\/strong>&#171;, \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0438\u043d\u0446\u0438\u043f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u0430\u043d\u0434. \u0412 \u043a\u043e\u0434\u0435 \u0435\u0441\u0442\u044c 2 \u043c\u0435\u0442\u043a\u0438 <strong>help_in<\/strong> \u0438 <strong>help_out. help_in<\/strong> &#8212; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0441 \u043d\u0438\u043c \u0431\u0443\u0434\u0435\u0442 \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0432\u0432\u043e\u0434. <strong>help_out<\/strong> &#8212; \u0412\u044b\u0432\u043e\u0434\u0438\u043c\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d.<\/p>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043a\u043e\u0434\u0435, \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u043c\u0435\u0442\u043a\u0435 <strong>input_loop<\/strong>, \u0433\u0434\u0435 \u043e\u0447\u0438\u0449\u0430\u0435\u0442\u0441\u044f \u0431\u0443\u0444\u0435\u0440 \u0438  \u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f \u0432\u0432\u043e\u0434 \u043a\u043e\u043c\u0430\u043d\u0434\u044b. \u0412\u0432\u0435\u0434\u0451\u043d\u043d\u0430\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0431\u0443\u0444\u0435\u0440\u0435, \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u043c\u0435\u0442\u043a\u0435 <strong>OS_callback<\/strong> &#8212; \u0412 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0438 \u0435\u0441\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0441\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043f\u0440\u043e\u0432\u0435\u0440\u043e\u043a, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0438\u043d\u0430\u0447\u0435 \u0432\u044b\u0432\u043e\u0434 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u0432 \u0446\u0438\u043a\u043b \u0432\u0432\u043e\u0434\u0430.<\/p>\n<p>\u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0451 \u043b\u043e\u0433\u0438\u043a\u0443 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 callback \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0437\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u0434 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0432 <strong>OS_callback<\/strong>. \u0412\u0430\u0436\u043d\u043e, \u043f\u043e\u0441\u043b\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0430\u0448\u0435\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, \u0432\u0441\u0435\u0433\u0434\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u0432 \u043c\u0435\u0442\u043a\u0443 <strong>input_loop<\/strong> \u0434\u043b\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u041e\u0421.<\/p>\n<pre><code class=\"assembly\">OS_callback:     mov si, you_command_in     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_YOU_COMMAND  ...  Callback_YOU_COMMAND:   ...    jmp input_loop you_command_in db \"you command\",0<\/code><\/pre>\n<p> <strong>\u041d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u044e<\/strong>! \u041f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430, \u043d\u0435 \u0437\u0430\u0431\u044b\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430. \u041c\u043e\u0436\u0435\u0442 \u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u0442\u0430\u043a, \u0447\u0442\u043e \u0432\u044b \u0434\u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b, \u0430 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043e\u043d \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0438\u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u043d\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430!<\/p>\n<h2>\u0421\u0431\u043e\u0440\u043a\u0430 \u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a<\/h2>\n<p>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e NASM \u0432 &#171;<strong><abbr class=\"habraabbr\" title=\"\u0424\u043e\u0440\u043c\u0430\u0442 BIN \u2013 \u044d\u0442\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 (\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u043e\u0435 \u043e\u0442 \u00abbinary\u00bb). \u0424\u0430\u0439\u043b\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 0 \u0438 1.\" data-title=\"&lt;p>\u0424\u043e\u0440\u043c\u0430\u0442 BIN \u2013 \u044d\u0442\u043e&amp;nbsp;&lt;strong>\u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u0432\u043e\u0438\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430&lt;\/strong>&amp;nbsp;(\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u043d\u043e\u0435 \u043e\u0442 \u00abbinary\u00bb). \u0424\u0430\u0439\u043b\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 0 \u0438 1.&lt;\/p>&#187; data-abbr=&#187;BIN&#187;>BIN<\/abbr>&#171;<\/strong> \u0444\u043e\u0440\u043c\u0430\u0442\u0435. \u0423 \u0432\u0430\u0441 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b NASM \u0438 qemu.<\/p>\n<pre><code class=\"bash\">nasm -f bin TermOS.asm -o TermOS.bin qemu-system-x86_64 TermOS.bin<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ada\/72d\/ef4\/ada72def4fa1e71d0238b26f9186ac31.png\" alt=\"\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0430\u044f\u0441\u044f \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0421\u0438\u0441\u0442\u0435\u043c\u0430 TermOS\" title=\"\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0430\u044f\u0441\u044f \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0421\u0438\u0441\u0442\u0435\u043c\u0430 TermOS\" width=\"720\" height=\"401\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ada\/72d\/ef4\/ada72def4fa1e71d0238b26f9186ac31.png\"\/><\/p>\n<div><figcaption>\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0430\u044f\u0441\u044f \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0421\u0438\u0441\u0442\u0435\u043c\u0430 TermOS<\/figcaption><\/div>\n<\/figure>\n<h2>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434<\/h2>\n<p>drivers\/IO.asm<\/p>\n<pre><code class=\"assembly\">; ============================================================================ ; \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u0434\u043b\u044f \u0432\u0432\u043e\u0434\u0430\/\u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 BIOS ; ============================================================================ global cls          ; void cls(); global out_char     ; void out_char(char bl); global out_string   ; void out_string(char* si);  global in_char      ; char in_char() return char ax (al); global in_string    ; void in_string(char[]* si);  global comapre_strs ; int (const char* first_word[] si, const char* last_word[] bx) return cx (1 - \u0440\u0430\u0432\u043d\u044b, 0 - \u043d\u0435 \u0440\u0430\u0432\u043d\u044b);  global clear_buffer ; void (const char* buf_address[] si, int buf_size bx);  global new_line ; void new_line();  section .text  new_line:     push ax     mov ah, 0x0e     mov al, 0x0a     int 0x10     mov al, 0x0d     int 0x10     pop ax     ret  cls:     push ax     mov ah, 0x00     mov al, 0x03     int 0x10     pop ax     ret  out_char:     push ax     mov ah, 0x0e     mov al, bl     int 0x10     pop ax     ret  out_string:     push ax     mov ah, 0x0e     call __out_string_next_char     pop ax     ret __out_string_next_char:     mov al, [si]     cmp al, 0     jz __out_string_if_zero     int 0x10     inc si     jmp __out_string_next_char __out_string_if_zero:     ret  in_char:     push bx     mov ah, 0     int 0x16    ; \u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440 al     mov ah, 0x0e     mov bh, 0     mov bl, 0x07     int 0x10    ; \u0412\u044b\u0432\u043e\u0434 \u0432\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0433\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d     pop bx     ret   comapre_strs:     push si     push bx     push ax __comapre_strs_comp:     mov ah, [bx]     cmp [si], ah     jne __comapre_strs_first_zero     inc si     inc bx     jmp __comapre_strs_comp __comapre_strs_first_zero:     cmp byte [bx], 0     jne __comapre_strs_not_equal     mov cx, 1     pop si     pop bx     pop ax     ret __comapre_strs_not_equal:     mov cx, 0     pop si     pop bx     pop ax     ret   clear_buffer:     ; si - \u0410\u0434\u0440\u0435\u0441 \u0431\u0443\u0444\u0435\u0440\u0430     ; bx - \u041a\u043e\u043b\u0447\u0438\u0441\u0435\u0432\u0442\u043e \u0431\u0430\u0439\u0442 \u043d\u0430 \u043e\u0447\u0438\u0441\u0442\u043a\u0443     push cx     mov cx, 0 __clear_buffer_loop:     cmp cx, bx     je __clear_buffer_end_loop     mov byte [si], 0     inc si     inc cx     jmp __clear_buffer_loop __clear_buffer_end_loop:     pop cx     ret    in_string:     push ax     push cx     xor cx, cx __input_string_loop:     mov ah, 0     int 0x16     cmp al, 0x0d            ; Enter     je __input_string_enter     cmp al, 0x08            ; Backspace     je __input_string_backspace      mov [si], al     inc si     inc cx      mov ah, 0x0e     mov bh, 0     mov bl, 0x07     int 0x10     cmp cx, 255     je __input_string_enter     jmp __input_string_loop __input_string_enter:     mov ah, 0x0e     mov al, 0x0d     mov bh, 0     mov bl, 0x07     int 0x10     mov al, 0xa     int 0x10      mov byte [si], 0     pop cx     pop ax     ret __input_string_backspace:     cmp cx, 0     je __input_string_loop     ; 0x20                  ; \u041f\u0440\u043e\u0431\u0435\u043b     mov ah, 0x0e     mov al, 0x08            ; Backspace     int 0x10     mov al, 0x20            ; \u041f\u0440\u043e\u0431\u0435\u043b     int 0x10     mov al, 0x08     int 0x10      mov byte [si], 0     dec si     dec cx     jmp __input_string_loop <\/code><\/pre>\n<p>TermOS.asm<\/p>\n<pre><code class=\"assembly\">org 0x7c00  jmp pre_boot  pre_boot:     cli     xor ax, ax     mov ds, ax     mov es, ax     mov ss, ax     mov sp, 0x7c00          mov ah, 0x02     mov al, 7   ; \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435     mov ch, 0x00     mov cl, 0x02     mov dh, 0x00     mov dl, 0x80     mov bx, 0x7e00     int 0x13       ; \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0442\u043e\u0440\u0430     jc read_error       jmp 0x7e00    ; \u041f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u043c\u0443 \u043a\u043e\u0434\u0443  read_error:     mov ah, 0x0e     mov al, 'R'     int 0x10     mov al, 'E'     int 0x10     mov al, 'A'     int 0x10     mov al, 'D'     int 0x10     mov al, ' '     int 0x10     mov al, 'E'     int 0x10     mov al, 'R'     int 0x10     mov al, 'R'     int 0x10     mov al, 'O'     int 0x10     mov al, 'R'     int 0x10     mov al, '!'     int 0x10       jmp $  times 510 - ($- $$) db 0 dw 0xaa55  jmp boot  boot:     call cls     call IBM_WELCOME_WINDOW     call cls     mov si, welcome     call out_string     jmp input_loop  IBM_WELCOME_WINDOW:     mov si, IBM_WELCOME     call out_string      mov ax, 0x8600     mov cx, 30     int 0x15     ret  input_loop:      mov si, buffer     mov bx, 255     call clear_buffer      mov si, prompt     call out_string      mov si, buffer     call in_string      jmp OS_callback       jmp input_loop    OS_callback:     mov si, help_in     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_HELP      mov si, cls_in     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_CLS      mov si, info_in     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_INFO      mov si, reboot_in     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_REBOOT      mov si, echo_in     mov bx, buffer     call comapre_strs     cmp cx, 1     je Callback_ECHO       jne Callback_WRONG     jmp input_loop  Callback_HELP:     mov si, help_out     call out_string     jmp input_loop Callback_CLS:     call cls     jmp input_loop  Callback_WRONG:     mov si, wrong_command_1     call out_string     mov si, buffer     call out_string     mov si, wrong_command_2     call out_string     jmp input_loop  Callback_INFO:     mov si, info_out     call out_string     jmp input_loop  Callback_REBOOT:     mov ah, 0     int 0x19     jmp $  Callback_ECHO:     mov si, echo_out     call out_string     mov si, buffer     call in_string      mov si, buffer     call out_string      call new_line          jmp input_loop   %include \"drivers\/IO.asm\" welcome db \"Welcome to TermOS!\", 0x0a, 0x0d, \"Type 'help' to get command list!\", 0x0a, 0x0d, 0 prompt db \"live@cd:>\", 0  wrong_command_1 db \"Command: '\", 0 wrong_command_2 db \"' not found. Type 'help' to get all commands\", 0x0a, 0x0d, 0 echo_out db \"Echo: \", 0    help_in db \"help\", 0 cls_in db \"cls\", 0 info_in db \"info\", 0 reboot_in db \"reboot\", 0 echo_in db \"echo\", 0    info_out db \"TermOS x16 (Terminal Operation System 16-bit) v.0.0:\", 0x0a, 0x0d, \"        This is operation system in development.\", 0x0a, 0x0d, \"         Author: Daniil Kulikovskiy.\", 0x0a, 0x0d, \"          Made in Russia!\", 0x0a, 0x0d, 0 help_out db \"          cls - Clear screen\", 0x0a, 0x0d, \"         info - Get system info\", 0x0a, 0x0d, \"        reboot - Reboot computer\", 0x0a, 0x0d, \"       echo - Write text in screen\", 0x0a, 0x0d, 0     IBM_WELCOME db \"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"              ======== ========    ======          =======                     \", 0x0a, 0x0d,\"              ======== =========   ========       ========                     \", 0x0a, 0x0d,\"                ===       ==  ===    =======     =======                       \", 0x0a, 0x0d,\"                ===       ======     ========   ========                       \", 0x0a, 0x0d,\"                ===       ======     ==  ===== =====  ==                       \", 0x0a, 0x0d,\"                ===       ==  ===    ==   =========   ==                       \", 0x0a, 0x0d,\"              ======== =========  =====    =======    =====                    \", 0x0a, 0x0d,\"              ======== ========   =====       =       =====                    \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\" (C) COPYRIGHT 1981, 1996 IBM CORPARATION - ALL RIGHTS RESERVED                \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d,\"                                                                               \", 0x0a, 0x0d, 0   buffer times 255 db 0<\/code><\/pre>\n<h2>\u0421\u043f\u0438\u0441\u043e\u043a \u043b\u0438\u0442\u0435\u0440\u0430\u0442\u0443\u0440\u044b<\/h2>\n<p><a href=\"https:\/\/habr.com\/ru\/companies\/neobit\/articles\/211470\/\" rel=\"noopener noreferrer nofollow\">\u041a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0431\u0435\u0437 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/articles\/518972\/\" rel=\"noopener noreferrer nofollow\">\u041e \u0440\u0430\u0431\u043e\u0442\u0435 \u041f\u041a \u0447.3: \u041e\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u043e \u043f\u043e\u043b\u043d\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 Windows 10<\/a><\/p>\n<\/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\/807459\/\"> https:\/\/habr.com\/ru\/articles\/807459\/<\/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<h2>\u041f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435<\/h2>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435. \u042d\u0442\u043e \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f, \u0438 \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0415\u0441\u043b\u0438 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u0435 \u043a\u0430\u043a\u0438\u0435 \u043b\u0438\u0431\u043e \u043e\u0448\u0438\u0431\u043a\u0438 \u0438\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u0435\u0435 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0435 \u043f\u043e\u0437\u043d\u0430\u043d\u0438\u044f \u0432 \u044d\u0442\u043e\u0439 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u043f\u0438\u0448\u0438\u0442\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438 \u044f \u0432\u043d\u0435\u0441\u0443 \u043f\u0440\u0430\u0432\u043a\u0438. \u0410\u0432\u0442\u043e\u0440 \u0435\u0449\u0451 \u0443\u0447\u0438\u0442\u0441\u044f \u044d\u0442\u043e\u043c\u0443 \u043d\u0435\u043f\u0440\u043e\u0441\u0442\u043e\u043c\u0443 \u0440\u0435\u043c\u0435\u0441\u043b\u0443. \u041f\u043e\u043b\u043d\u044b\u0439 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u041e\u0421 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0442\u0430\u0442\u044c\u0438. \u041e\u0421 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430 <abbr class=\"habraabbr\" title=\"Netwide Assembler\" data-title=\"&lt;p>Netwide Assembler&lt;\/p>&#187; data-abbr=&#187;NASM &#171;>NASM<\/abbr>, \u0434\u043b\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u0432 Intel x86-64.<\/p>\n<h2>\u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u0431\u044b\u043b\u043e \u0441\u043b\u043e\u0432\u043e&#8230;<\/h2>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0441\u043e\u0432\u0435\u0442\u0443\u044e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/articles\/518972\/\" rel=\"noopener noreferrer nofollow\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a>.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 &#171;<strong>Power<\/strong>&#171;, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u0435, \u043f\u043e\u0434\u0430\u0451\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0443. \u0417\u0430\u0442\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043a\u043e\u0434 <strong><abbr class=\"habraabbr\" title=\"Basic Input\/Output System\" data-title=\"&lt;p>Basic Input\/Output System&lt;\/p>&#187; data-abbr=&#187;BIOS &#171;>BIOS<\/abbr><\/strong>.<\/p>\n<p>\u041a\u043e\u0434 BIOS \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0443\u044e\u0449\u0438\u0445, \u044d\u0442\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <strong><abbr class=\"habraabbr\" title=\"Power-On Self-Test\" data-title=\"&lt;p>Power-On Self-Test&lt;\/p>&#187; data-abbr=&#187;POST &#171;>POST<\/abbr><\/strong>. \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0432\u044b\u0445 512 \u0431\u0430\u0439\u0442 (1 \u0441\u0435\u043a\u0442\u043e\u0440) \u0441 \u0436\u0451\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 BIOS, \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 <strong>Boot<\/strong> -> <strong>Boot Device Priority<\/strong> (\u041c\u043e\u0436\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0435\u0440\u0441\u0438\u0438 BIOS). \u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0441\u043a\u0430\u0436\u0435\u043c \u0442\u0430\u043a, &#171;\u0438\u0449\u0435\u0442&#187; \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u043a\u0442\u043e\u0440, \u043e\u043d \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d \u043d\u0430\u043c \u043a\u0430\u043a <strong><abbr class=\"habraabbr\" title=\"Master Boot Record\" data-title=\"&lt;p>Master Boot Record&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;MBR &#171;>MBR<\/abbr><\/strong>.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442\u043e\u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u041e\u0421<\/figcaption><\/div>\n<\/figure>\n<h2>\u0418 \u0441\u043b\u043e\u0432\u043e \u0431\u044b\u043b\u043e 0xaa55<\/h2>\n<p>\u041a\u0430\u043a \u044f \u0432\u044b\u0440\u0430\u0437\u0438\u043b\u0441\u044f \u0432\u044b\u0448\u0435, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 &#171;\u0438\u0449\u0435\u0442&#187; \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u043a\u0442\u043e\u0440. \u0412 \u043a\u043e\u043d\u0446\u0435 \u0441\u0435\u043a\u0442\u043e\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u043e <strong>0xaa55<\/strong>. \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u044d\u0442\u043e\u043c\u0443 \u043c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0443, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 &#171;\u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442&#187;, \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u043a\u0442\u043e\u0440, \u0437\u0430\u0442\u0435\u043c \u0441\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u0435\u0433\u043e \u0432 \u041e\u0417\u0423 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <strong>0x7c00<\/strong> \u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0435\u0433\u043e \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u0436\u0451\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0441\u0435\u043a\u0442\u043e\u0440, \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 0x19 \u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0434\u0438\u0441\u043a\u0443. \u0415\u0441\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435\u0442, \u0442\u043e \u0432\u044b\u0432\u0435\u0434\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u043e \u0442\u0438\u043f\u0443 &#171;<strong>No bootable devices found.<\/strong>&#171;.<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043d\u0435 \u043d\u0430\u0448\u0451\u043b \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432<\/figcaption><\/div>\n<\/figure>\n<h2>\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u044b<\/h2>\n<p>\u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 &#171;<strong>Real Mode<\/strong>&#171;, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b 16-\u0431\u0438\u0442\u043d\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b: <strong>ax, bx, cx, dx, sp, si, di, bp. <\/strong>\u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u043a 8-\u0431\u0438\u0442\u043d\u044b\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u043c. 8-\u0431\u0438\u0442\u043d\u044b\u0435 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442 16-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p align=\"left\"><strong>\u0421\u0442\u0430\u0440\u0448\u0438\u0439 8-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041c\u043b\u0430\u0434\u0448\u0438\u0439 8-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>16-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0433\u0438\u0441\u0442\u0440<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">AH<\/p>\n<\/td>\n<td>\n<p align=\"left\">AL<\/p>\n<\/td>\n<td>\n<p align=\"left\">AX<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">BH<\/p>\n<\/td>\n<td>\n<p align=\"left\">BL<\/p>\n<\/td>\n<td>\n<p align=\"left\">BX<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">CH<\/p>\n<\/td>\n<td>\n<p align=\"left\">CL<\/p>\n<\/td>\n<td>\n<p align=\"left\">CX<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p align=\"left\">DH<\/p>\n<\/td>\n<td>\n<p align=\"left\">DL<\/p>\n<\/td>\n<td>\n<p align=\"left\">DX<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f<\/h2>\n<p>BIOS \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c \u0446\u0435\u043b\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0435\u0439, \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0439, \u0436\u0451\u0441\u0442\u043a\u0438\u043c\u0438 \u0434\u0438\u0441\u043a\u0430\u043c\u0438 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435 (256 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439). \u042f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0445 \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u041e\u0421.<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\"><strong>\u041d\u043e\u043c\u0435\u0440 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f<\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x13<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u0434\u0438\u0441\u043a\u043e\u043c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x10<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0412\u0438\u0434\u0435\u043e \u0441\u0435\u0440\u0432\u0438\u0441. <em>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d<\/em><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x16<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u043e\u0439<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x15<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0430\u043c\u044f\u0442\u044c\u044e. <em>\u041f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u0434\u0430<\/em><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"168\" width=\"168\">\n<p align=\"left\">0x19<\/p>\n<\/td>\n<td>\n<p align=\"left\">\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <abbr class=\"habraabbr\" title=\"\u0422\u0435\u043f\u043b\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 - \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0431\u0435\u0437 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0431\u0435\u0437 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u042d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u0430\u043a &quot;\u043c\u044f\u0433\u043a\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430&quot; \u0438\u043b\u0438 &quot;\u0442\u0435\u043f\u043b\u044b\u0439 \u0441\u0442\u0430\u0440\u0442&quot;. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0435\u043f\u043b\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 DOS).\" data-title=\"&lt;p>\u043a\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a&quot; \u0438\u043b\u0438 &quot;\u0442\u0435\u043f\u043b\u044b\u0439 \u0441\u0442\u0430\u0440\u0442&quot;. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0435\u043f\u043b\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 DOS).&#187; data-title=&#187;&lt;p>\u0422\u0435\u043f\u043b\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 &#8212; \u044d\u0442\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b&amp;nbsp;&lt;strong>\u0431\u0435\u0437 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0438\u0442\u0430\u043d\u0438\u044f&lt;\/strong>. \u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0431\u0435\u0437 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u0438\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u042d\u0442\u043e \u0442\u0430\u043a\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e \u043a\u0430\u043a &quot;\u043c\u044f\u0433\u043a\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430&quot; \u0438\u043b\u0438 &quot;\u0442\u0435\u043f\u043b\u044b\u0439 \u0441\u0442\u0430\u0440\u0442&quot;. \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0435\u043f\u043b\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 DOS).  &lt;\/p>&#187; data-abbr=&#187;\u00ab\u0442\u0435\u043f\u043b\u043e\u0439\u00bb&#187;>\u00ab\u0442\u0435\u043f\u043b\u043e\u0439\u00bb<\/abbr> \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0431\u0435\u0437 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438\u043b\u0438 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 (<abbr class=\"habraabbr\" title=\"\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 (\u0430\u043d\u0433\u043b. Interrupt Descriptor Table, IDT) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 x86 \u0438 \u0440\u044f\u0434\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0438 \u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f. \u0412 \u043c\u0438\u043a\u0440\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445 Intel 8086\/80186 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0430 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0430\u0434\u0440\u0435\u0441\u0430 0000:0000 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 256 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442:\u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435. \u0412 IDT \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439: \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438 (\u043f\u0435\u0440\u0432\u044b\u0435 32) \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439.\" data-title=\"&lt;p>\u0430\u0442\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442:\u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435. \u0412 IDT \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439: \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438 (\u043f\u0435\u0440\u0432\u044b\u0435 32) \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439.&#187; data-title=&#187;&lt;p>&lt;a href=&quot;https:\/\/ru.wikipedia.org\/wiki\/%D0%A2%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D0%B0_%D0%B2%D0%B5%D0%BA%D1%82%D0%BE%D1%80%D0%BE%D0%B2_%D0%BF%D1%80%D0%B5%D1%80%D1%8B%D0%B2%D0%B0%D0%BD%D0%B8%D0%https:\/\/ru.wikipedia.org\/wiki\/%D0%A2%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D0%B0_%D0%B2%D0%B5%D0%BA%D1%82%D0%BE%D1%80%D0%BE%D0%B2_%D0%BF%D1%80%D0%B5%D1%80%D1%8B%D0%B2%D0%B0%D0%BD%D0%B8%D0%B9B9&quot;>&lt;strong>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439&lt;\/strong>&lt;\/a>&lt;strong> (\u0430\u043d\u0433\u043b. Interrupt Descriptor Table, IDT)&lt;\/strong>&amp;nbsp;\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0435 x86 \u0438 \u0440\u044f\u0434\u0435 \u0434\u0440\u0443\u0433\u0438\u0445 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440 \u0438&amp;nbsp;&lt;strong>\u0441\u043b\u0443\u0436\u0438\u0442 \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u043d\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f&lt;\/strong>.&lt;\/p>&lt;p>\u0412 \u043c\u0438\u043a\u0440\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430\u0445 Intel 8086\/80186 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0430 \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u043a\u0438\u043b\u043e\u0431\u0430\u0439\u0442\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0430\u0434\u0440\u0435\u0441\u0430 0000:0000 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 256 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0441\u0435\u0433\u043c\u0435\u043d\u0442:\u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435.&lt;\/p>&lt;p>\u0412 IDT \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0442\u0438\u043f\u044b \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439:&lt;\/p>&lt;p>\u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f,&lt;\/p>&lt;p>\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f,&lt;\/p>&lt;p>\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f, \u0437\u0430\u0440\u0435\u0437\u0435\u0440\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c, \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438 (\u043f\u0435\u0440\u0432\u044b\u0435 32) \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439.&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;IVT&#187;>IVT<\/abbr>)<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u0420\u0435\u0436\u0438\u043c\u044b \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 x86-64<\/h2>\n<p>\u041f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u044b x86-64 \u043c\u043e\u0433\u0443\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 3 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u0430\u0445. \u042d\u0442\u043e \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 (<strong>real mode<\/strong>), \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0439 (<strong>protected mode<\/strong>) \u0438 64-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c (<strong>long mode<\/strong>). \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430, \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0439 BIOS. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0443\u044e\u0449\u0438\u043c\u0438 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430.<\/p>\n<p><strong>\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c (real mode)<\/strong> &#8212; \u042d\u0442\u043e \u0440\u0435\u0436\u0438\u043c \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u042d\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 16-\u0431\u0438\u0442\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e 1\u041c\u0431 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438, \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0432 \u043c\u0430\u043b\u043e\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438.<\/p>\n<p><strong>\u0417\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c (protected mode \u0438\u043b\u0438 legacy mode) <\/strong>&#8212; \u042d\u0442\u043e 32-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c, \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0433\u043b\u0430\u0432\u043d\u044b\u043c. \u0412 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430. \u042d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c \u0434\u0430\u0451\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a 4\u0413\u0431 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0410 \u043f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0430 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a 64\u0413\u0431 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430. \u0417\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u044b\u043c \u044d\u0442\u043e\u0442 \u0440\u0435\u0436\u0438\u043c \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u0449\u0438\u0442\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. &#171;\u0420\u043e\u0434\u043d\u043e\u0439&#187; \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 <strong><abbr class=\"habraabbr\" title=\"\u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e - 4 \u0431\u0430\u0439\u0442\u0430\" data-title=\"&lt;p>ata-title=&#187;&lt;p>\u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e &#8212; 4 \u0431\u0430\u0439\u0442\u0430&lt;\/p>&#187; data-abbr=&#187;DWORD&#187;>DWORD<\/abbr>. <\/strong><\/p>\n<p><strong>Long mode<\/strong> &#8212; 64-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c. \u0412 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u043a <abbr class=\"habraabbr\" title=\"\u2248 4 \u041f\u0431\" data-title=\"&lt;p>t;p>&lt;strong>\u2248&lt;\/strong>4 \u041f\u0431&lt;\/p>&#187; data-abbr=&#187;2\u2075\u00b2&#187;>2\u2075\u00b2<\/abbr> \u0431\u0430\u0439\u0442\u0430\u043c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 <abbr class=\"habraabbr\" title=\"\u2248 256\u0422\u0431\" data-title=\"&lt;p>t;p>&lt;strong>\u2248&lt;\/strong>256\u0422\u0431&lt;\/p>&#187; data-abbr=&#187;2\u2074\u2078&#187;>2\u2074\u2078<\/abbr> \u0431\u0430\u0439\u0442\u0430\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438. \u0412 64-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u0438\u0448\u044c \u0438\u0437 \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430. \u0412 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 &#171;\u0420\u043e\u0434\u043d\u043e\u0439&#187; \u0434\u043b\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u044d\u0442\u043e <strong><abbr class=\"habraabbr\" title=\"\u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e - 4 \u0431\u0430\u0439\u0442\u0430\" data-title=\"&lt;p>ata-title=&#187;&lt;p>\u0414\u0432\u043e\u0439\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e &#8212; 4 \u0431\u0430\u0439\u0442\u0430&lt;\/p>&#187; data-abbr=&#187;DWORD&#187;>DWORD<\/abbr><\/strong>, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 <strong><abbr class=\"habraabbr\" title=\"\u0427\u0435\u0442\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e - 8 \u0431\u0430\u0439\u0442\" data-title=\"&lt;p>data-title=&#187;&lt;p>\u0427\u0435\u0442\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e &#8212; 8 \u0431\u0430\u0439\u0442&lt;\/p>&#187; data-abbr=&#187;QWORD &#171;>QWORD<\/abbr><\/strong>.<\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e 3 \u0432\u044b\u0448\u0435\u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f 2 \u043f\u043e\u0434\u0440\u0435\u0436\u0438\u043c\u0430<\/p>\n<p><strong>\u0420\u0435\u0436\u0438\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 8086<\/strong> &#8212; \u042d\u0442\u043e \u043f\u043e\u0434\u0440\u0435\u0436\u0438\u043c \u0437\u0430\u0449\u0438\u0449\u0451\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 16-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u043c\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u0447\u043d\u043e\u0439 32-\u0431\u0438\u0442\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435.<\/p>\n<p><strong>\u0420\u0435\u0436\u0438\u043c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u043b\u044f long mode<\/strong> &#8212; \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b 4\u0413\u0431 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043f\u043e\u043b\u043d\u0430\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 32 \u0438 16-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430. \u0420\u0435\u0436\u0438\u043c \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 \u043c\u043d\u043e\u0433\u043e\u0437\u0430\u0434\u0430\u0447\u043d\u043e\u0439 64-\u0431\u0438\u0442\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435. \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438, \u0440\u0430\u0437\u043c\u0435\u0440 \u0430\u0434\u0440\u0435\u0441\u0430 32-\u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0439, \u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c <strong><abbr class=\"habraabbr\" title=\"\u0427\u0435\u0442\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e - 8 \u0431\u0430\u0439\u0442\" data-title=\"&lt;p>data-title=&#187;&lt;p>\u0427\u0435\u0442\u0432\u0435\u0440\u043d\u043e\u0439 \u0441\u043b\u043e\u0432\u043e &#8212; 8 \u0431\u0430\u0439\u0442&lt;\/p>&#187; data-abbr=&#187;QWORD&#187;>QWORD<\/abbr><\/strong>.<\/p>\n<p>\u041f\u043e\u043c\u0438\u043c\u043e \u0432\u044b\u0448\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u044b\u0445 \u0440\u0435\u0436\u0438\u043c\u043e\u0432, \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 <strong>\u0420\u0435\u0436\u0438\u043c \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f <\/strong>(System Management Mode), \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0432\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f <abbr class=\"habraabbr\" title=\"SMI (System Management Interrupt) - \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. SMI \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439\" data-title=\"&lt;p>\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439&#187; data-title=&lt;p>SMI (System Management Interrupt) &#8212; \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f. SMI \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0442 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u044b\u0435, \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0435 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439&lt;\/p>&#187; data-abbr=&#187;SMI&#187;>SMI<\/abbr>. \u0420\u0435\u0436\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0445 \u043f\u043e\u043b\u043d\u043e\u0439 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 \u043e\u0442 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0438 \u0434\u0430\u0436\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0420\u0435\u0436\u0438\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u043d\u0435\u0440\u0433\u043e\u0441\u0431\u0435\u0440\u0435\u0436\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430 \u0438\u043b\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430.<\/p>\n<h2>\u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435<\/h2>\n<p><strong>\u0417\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a<\/strong> &#8212; \u044d\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u0420\u0430\u0437\u043c\u0435\u0440 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c 512 \u0431\u0430\u0439\u0442. \u042d\u0442\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0442\u043e\u0431\u044b \u0443\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u0441\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u043c \u043a\u043e\u0434 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u0432 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u043c \u0441\u0435\u043a\u0442\u043e\u0440\u0435, \u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0437\u0430 \u0435\u0451 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f <abbr class=\"habraabbr\" title=\"\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u0434\u0438\u0441\u043a\u043e\u043c\" data-title=\"&lt;p>&#187; data-title=&#187;&lt;p>\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u0434\u0438\u0441\u043a\u043e\u043c&lt;\/p>&#187; data-abbr=&#187;\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 0x13&#8243;>\u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 0x13<\/abbr>.<\/p>\n<pre><code class=\"assembly\">org 0x7c00  jmp pre_boot  pre_boot:     cli         ; \u0417\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u043c \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f     xor ax, ax  ; \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b     mov ds, ax  ; \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b     mov es, ax  ; \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b     mov ss, ax  ; \u0417\u0430\u043d\u0443\u043b\u044f\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b     mov sp, 0x7c00     ; \u0427\u0442\u0435\u043d\u0438\u0435 \u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0432 \u041e\u0417\u0423     mov ah, 0x02; \u0424\u0443\u043d\u043a\u0446\u0438\u044f 0x02 - \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0436\u0451\u0441\u0442\u043a\u0438\u043c \u0434\u0438\u0441\u043a\u043e\u043c     mov al, 7   ; \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 7 = 7*512 = 3584 \u0431\u0430\u0439\u0442     mov ch, 0x00   ; \u041d\u043e\u043c\u0435\u0440 \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u0430     mov cl, 0x02   ; \u041d\u043e\u043c\u0435\u0440 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u0430 2. 1 \u0441\u0435\u043a\u0442\u043e\u0440 - \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a, 2 \u0441\u0435\u043a\u0442\u043e\u0440 - \u041e\u0421.     mov dh, 0x00   ; \u0421\u0442\u043e\u0440\u043e\u043d\u0430 \u0434\u0438\u0441\u043a\u0430     mov dl, 0x80   ; \u041d\u043e\u043c\u0435\u0440 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u041d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0441 0x80 - 0, 0x81 - 1, ...     mov bx, 0x7e00 ; \u0410\u0434\u0440\u0435\u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445     int 0x13       ; \u041f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0441\u0435\u043a\u0442\u043e\u0440\u0430     jc read_error  ; \u0415\u0441\u043b\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0430, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u043a\u0443\u0441\u043a\u0430 \u043a\u043e\u0434\u0430 read_error.      jmp 0x7e00    ; \u0415\u0441\u043b\u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u043c\u0443 \u043a\u043e\u0434\u0443. 0x7c00 + 512 = 0x7e00  read_error:     mov ah, 0x0e ; \u041d\u043e\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u0438 0x10, \u0432\u044b\u0432\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d.     mov al, 'R'  ; \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u0438\u043c\u0432\u043e\u043b     int 0x10     ; \u0412\u044b\u0432\u043e\u0434\u0438\u043c \u0441\u0438\u043c\u0432\u043e\u043b     mov al, 'E'     int 0x10     mov al, 'A'     int 0x10     mov al, 'D'     int 0x10     mov al, ' '     int 0x10     mov al, 'E'     int 0x10     mov al, 'R'     int 0x10     mov al, 'R'     int 0x10     mov al, 'O'     int 0x10     mov al, 'R'     int 0x10     mov al, '!'     int 0x10       jmp $        ; \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043a \u044d\u0442\u043e\u0439 \u043c\u0435\u0442\u043a\u0435. \u0417\u0430\u0432\u0438\u0441\u0430\u0435\u043c \u043d\u0430 \u043c\u0435\u0441\u0442\u0435 \u0441 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u043e\u0448\u0438\u0431\u043a\u0438.  times 510 - ($- $$) db 0 ; \u0417\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043e\u0441\u0442\u0430\u0432\u0448\u0443\u044e\u0441\u044f \u0447\u0430\u0441\u0442\u044c \u043a\u043e\u0434\u0430 \u043d\u0443\u043b\u044f\u043c\u0438. dw 0xaa55 ; \u041c\u0430\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u0441\u0435\u043a\u0442\u043e\u0440\u0430.<\/code><\/pre>\n<p><strong>\u0412\u0430\u0436\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435!<\/strong><\/p>\n<p>\u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435 \u0438 \u0435\u0451 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 7 \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432. \u0412 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u0431\u0443\u0434\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435, \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043e\u0448\u0438\u0431\u043a\u0430 &#171;<strong>READ ERROR!<\/strong>&#171;. \u041f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u041e\u0421, \u0438\u043c\u0435\u0439\u0442\u0435 \u044d\u0442\u043e \u0432\u0432\u0438\u0434\u0443!<\/p>\n<figure class=\"full-width\">\n<div><figcaption>\u041e\u0448\u0438\u0431\u043a\u0430<\/figcaption><\/div>\n<\/figure>\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-373541","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/373541","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=373541"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/373541\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=373541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=373541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=373541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}