{"id":488,"date":"2026-03-07T19:48:10","date_gmt":"2026-03-07T11:48:10","guid":{"rendered":"http:\/\/8.129.82.128\/?p=488"},"modified":"2026-03-07T19:52:10","modified_gmt":"2026-03-07T11:52:10","slug":"8086-%e6%b1%87%e7%bc%962","status":"publish","type":"post","link":"http:\/\/8.129.82.128\/?p=488","title":{"rendered":"8086 \u6c47\u7f16#2"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"zh-CN\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>\u7b2c\u4e8c\u7ae0 \u5bc4\u5b58\u5668 &#8211; \u6c47\u7f16\u8bed\u8a00\u63d0\u7eb2<\/title>\n    <style>\n        #asm-wrapper {\n            all: initial;\n            display: block;\n            width: 100%;\n            min-height: 100vh;\n            margin: 0;\n            padding: 30px 25px;\n            box-sizing: border-box;\n            font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Microsoft YaHei\", sans-serif !important;\n            line-height: 1.8;\n            background: linear-gradient(180deg, #d4ecf7 0%, #a8e6cf 50%, #88d8b0 100%) !important;\n            color: #2c3e50 !important;\n        }\n        #asm-wrapper * { box-sizing: border-box; margin: 0; padding: 0; }\n        #asm-wrapper h1 { text-align: center; color: #1a5276 !important; font-size: 1.8em; border-bottom: 3px solid #27ae60 !important; padding-bottom: 15px; }\n        #asm-wrapper h2 { color: #1e8449 !important; border-left: 4px solid #27ae60 !important; padding-left: 15px; margin-top: 30px; }\n        #asm-wrapper h3 { color: #196f3d !important; margin-top: 20px; }\n        #asm-wrapper p { margin: 10px 0; }\n        #asm-wrapper ul, #asm-wrapper ol { margin: 10px 0; padding-left: 25px; }\n        #asm-wrapper li { margin: 5px 0; }\n        #asm-wrapper strong { color: #e74c3c !important; font-weight: 700 !important; }\n        #asm-wrapper pre { background: #1e3d2f !important; color: #a8e6cf !important; padding: 15px 20px; border-radius: 8px; overflow-x: auto; font-size: 0.85em; line-height: 1.6; margin: 15px 0; border: 2px solid #27ae60; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }\n        #asm-wrapper pre code { background: none !important; padding: 0; color: inherit !important; border: none; }\n        #asm-wrapper table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 0.9em; }\n        #asm-wrapper th, #asm-wrapper td { border: 1px solid #7f8c8d; padding: 10px 12px; text-align: left; }\n        #asm-wrapper th { background: #27ae60 !important; color: white !important; }\n        #asm-wrapper tr:nth-child(even) { background: #d5f5e3 !important; }\n        #asm-wrapper img { max-width: 100%; height: auto; display: block; margin: 25px 0; padding: 15px; background: white !important; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.15); border: 2px solid #27ae60; }\n        #asm-wrapper hr { border: none; border-top: 2px dashed #27ae60; margin: 30px 0; }\n<\/style>\n<\/head>\n<body>\n    <div id=\"asm-wrapper\">\n        <h1>\u7b2c\u4e8c\u7ae0 \u5bc4\u5b58\u5668<\/h1>\n        \u7b2c\u4e8c\u7ae0 \u5bc4\u5b58\u5668<\/strong><strong><\/strong><\/p>\n<p>2.0\u7eea\u8bba<\/p>\n<p><![if !supportLists]>1. <![endif]>CPU\u7ec4\u6210\uff1a<strong>\u8fd0\u7b97\u5668<\/strong>\u3001<strong>\u63a7\u5236\u5668<\/strong>\u3001<strong>\u5bc4\u5b58\u5668<\/strong>\uff0c\u8fd9\u4e9b\u5668\u4ef6\u9760<strong>\u5185\u90e8\u603b\u7ebf<\/strong>\u76f8\u8fde\u3002<\/p>\n<p><![if !supportLists]>2. <![endif]><strong>\u5185\u90e8\u603b\u7ebf<\/strong>\u5b9e\u73b0CPU\u5185\u90e8\u5404\u4e2a\u5668\u4ef6\u4e4b\u95f4\u7684\u8054\u7cfb\u3002<\/p>\n<p><![if !supportLists]>3. <![endif]><strong>\u5916\u90e8\u603b\u7ebf<\/strong>\u5b9e\u73b0CPU\u548c\u4e3b\u677f\u4e0a\u5176\u5b83\u5668\u4ef6\u7684\u8054\u7cfb\u3002<\/p>\n<p><![if !supportLists]>4. <![endif]>\u8fd0\u7b97\u5668\u8fdb\u884c\u4fe1\u606f\u5904\u7406<\/p>\n<p><![if !supportLists]>5. <![endif]>\u5bc4\u5b58\u5668\u8fdb\u884c\u4fe1\u606f\u5b58\u50a8<\/p>\n<p><![if !supportLists]>6. <![endif]>\u63a7\u5236\u5668\u63a7\u5236\u5404\u79cd\u5668\u4ef6\u8fdb\u884c\u5de5\u4f5c<\/p>\n<p><![if !supportLists]>7. <![endif]>\u5185\u90e8\u603b\u7ebf\u8fde\u63a5\u5404\u79cd\u5668\u4ef6\uff0c\u5728\u5b83\u4eec\u4e4b\u95f4\u8fdb\u884c\u6570\u636e\u7684\u4f20\u9001<\/p>\n<p><![if !supportLists]>8. <![endif]>8086CPU\u517114\u4e2a:AX BX CX DX SI DI SP BP IP CS SS DS ES PSW<\/p>\n<p>2.1\u901a\u7528\u5bc4\u5b58\u5668<\/p>\n<p>1.8086CPU\u7684\u6240\u6709<strong>\u5bc4\u5b58\u5668<\/strong>\u90fd\u662f\u5341\u516d\u4f4d\u7684<\/p>\n<p><![if !supportLists]>2. <![endif]>AX BX CX DX\u4e3a4\u4e2a<strong>\u901a\u7528\u5bc4\u5b58\u5668<\/strong>\uff0c\u5b58\u653e\u4e00\u822c\u6027\u7684\u6570\u636e<\/p>\n<p><![if !supportLists]>3. <![endif]><img decoding=\"async\" width=\"299\"  height=\"119\"  src=\"http:\/\/8.129.82.128\/wp-content\/uploads\/2026\/03\/asm202405\u7248\u63d0\u7eb23529.png\"  align=\"left\"  hspace=\"12\" >8086\u56db\u4e2a\u901a\u7528\u5bc4\u5b58\u5668\u53ef\u4ee5\u5206\u4e3a8\u4e2a8\u4f4d\u5bc4\u5b58\u5668\u4f7f\u7528<\/p>\n<p>&#183;AX\u5206\u4e3a AH AL<\/p>\n<p>&#183;BX\u5206\u4e3aBH BL<\/p>\n<p>&#183;CX\u5206\u4e3aCH CL<\/p>\n<p>&#183;DX\u5206\u4e3aDH DL<\/p>\n<p>&#183;AX\u7684\u4f4e8\u4f4d\u6784\u6210AL\u5bc4\u5b58\u5668\uff0c\u9ad88\u4f4d\u6784\u6210AH\u5bc4\u5b58\u5668<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" width=\"330\"  height=\"232\"  src=\"http:\/\/8.129.82.128\/wp-content\/uploads\/2026\/03\/asm202405\u7248\u63d0\u7eb23626.png\"  align=\"left\"  hspace=\"12\" > <\/p>\n<p> <\/p>\n<p> <\/p>\n<p><img decoding=\"async\" width=\"352\"  height=\"123\"  src=\"http:\/\/8.129.82.128\/wp-content\/uploads\/2026\/03\/asm202405\u7248\u63d0\u7eb23630.png\"  align=\"left\"  hspace=\"12\" > <\/p>\n<p> <\/p>\n<p>2.2\u5b57\u5728\u5bc4\u5b58\u5668\u4e2d\u7684\u5b58\u50a8<\/p>\n<p>1.8086<strong>\u5b57\u957f<\/strong>(word size)\u4e3a16bit<\/p>\n<p><![if !supportLists]>2. <![endif]>\u5728\u6c47\u7f16\u8bed\u8a00\u4e2d16\u8fdb\u5236\u6570\u540e\u52a0H\uff0c\u4e8c\u8fdb\u5236\u540e\u52a0B\uff0c\u5341\u8fdb\u5236\u540e\u4ec0\u4e48\u90fd\u4e0d\u52a0<\/p>\n<p>2.3\u51e0\u6761\u6c47\u7f16\u6307\u4ee4<\/p>\n<p>***\u6c47\u7f16\u6307\u4ee4<strong><u>\u4e0d\u533a\u5206\u5927\u5c0f\u5199<\/u><\/strong>***<\/p>\n<p>1.mov\u6307\u4ee4\u7528\u4e8e<u>\u4f20\u9001\u6570\u636e<\/u><\/p>\n<p>add\u6307\u4ee4\u4e3a<u>\u52a0\u6cd5\u6307\u4ee4<\/u><\/p>\n<p>2.\u5728\u95ee\u98982.1\u4e2d\uff0c<strong>\u76f8\u52a0\u540e\u7684\u7ed3\u679c\u4e3a1044ch,\u800cax\u4e3a16\u4f4d\u5bc4\u5b58\u5668\uff0c\u4e0d\u80fd\u4fdd\u5b58\u6700\u9ad8\u4f4d1\uff0c\u6240\u4ee5ax=044ch\u3002<\/strong><strong><\/strong><\/p>\n<p>3.\u5728\u95ee\u98982.2\u4e2d\uff0c\u76f8\u52a0\u540e\u5f97\u5230\u503c\u4e3a158h,\u4f46\u662fal\u4e3a8\u4f4d\u5bc4\u5b58\u5668\uff0c\u6700\u9ad8\u4f4d1\u4e22\u5931,\u6240\u4ee5al=58h.(\u6ce8\u8be5\u8fdb\u4f4d\u503c\u5e76\u6ca1\u6709\u88ab\u4e22\u5f03\uff0c\u53ea\u662f\u5728CPU\u7684\u5176\u4ed6\u5730\u65b9)<\/p>\n<pre><code>4.\u5728\u6267\u884c\u6307\u4ee4\u65f6\uff0c<u>al\u4f5c\u4e3a\u4e00\u4e2a\u72ec\u7acb\u7684\u5bc4\u5b58\u5668\u4f7f\u7528<\/u>\uff0c\u4e0eah\u6ca1\u6709\u5173\u7cfb\u3002add al,93H\u8fdb\u884c8\u4f4d\u8ba1\u7b97\uff0c\u8fdb\u4f4d\u4e0d\u4f1a\u88ab\u4fdd\u5b58\u5728ah\u4e2d\u3002<\/code><\/pre>\n<p>5.\u5728\u8fdb\u884c\u6570\u636e\u4f20\u9001\u548c\u8fd0\u7b97\u65f6\uff0c<u>\u6307\u4ee4\u4e24\u4e2a\u64cd\u4f5c\u5bf9\u8c61\u7684\u4f4d\u6570\u5e94\u5f53\u76f8\u540c<\/u>\u3002<\/p>\n<p> <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"365\"  height=\"162\"  src=\"http:\/\/8.129.82.128\/wp-content\/uploads\/2026\/03\/asm202405\u7248\u63d0\u7eb23981.png\"  align=\"left\"  hspace=\"12\" > <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"401\"  height=\"185\"  src=\"http:\/\/8.129.82.128\/wp-content\/uploads\/2026\/03\/asm202405\u7248\u63d0\u7eb23990.png\"  align=\"left\"  hspace=\"12\" > <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p> <\/p>\n<p>\u68c0\u6d4b\u70b9 2.1 <\/p>\n<p>(1) \u5199\u51fa\u6bcf\u6761\u6c47\u7f16\u6307\u4ee4\u6267\u884c\u540e\u76f8\u5173\u5bc4\u5b58\u5668\u4e2d\u7684\u503c\u3002<\/p>\n<pre><code>mov ax,62627   AX=F4A3H  \nmov ah,31H     AX=31A3H  \nmov al,23H     AX=3123H  \nadd ax,ax      AX=6246H  \nmov bx,826CH   BX=826CH  \nmov cx,ax      CX=6246H  \nmov ax,bx      AX=826CH  \nadd ax,bx      AX=04D8H  \nmov al,bh      AX=0482H  \nmov ah,bl      AX=6C82H  \nadd ah,ah      AX=D882H  \nadd al,6       AX=D888H  \nadd al,al      AX=D810H  \nmov ax,cx      AX=6246H <\/code><\/pre>\n<p>(2) \u53ea\u80fd\u4f7f\u7528\u76ee\u524d\u5b66\u8fc7\u7684\u6c47\u7f16\u6307\u4ee4\uff0c\u6700\u591a\u4f7f\u75284\u6761\u6307\u4ee4\uff0c\u7f16\u7a0b\u8ba1\u7b972\u76844\u6b21\u65b9\u3002  <\/p>\n<pre><code>mov  ax,2         AX=2  \nadd  ax,ax        AX=4  \nadd  ax,ax        AX=8  \nadd  ax,ax        AX=16 <\/code><\/pre>\n<p>2.4~2.8086\u4e2d\u7684\u5730\u5740\u3001\u6bb5\u7684\u6982\u5ff5<\/p>\n<p><![if !supportLists]>1. <![endif]>\u6bcf\u4e2a\u5185\u5b58\u5355\u5143\u5728\u5185\u5b58\u5730\u5740\u7a7a\u95f4\u4e2d\u90fd\u6709\u4e00\u4e2a\u552f\u4e00\u7684\u5730\u5740\uff0c\u53eb\u505a<strong>\u7269\u7406\u5730\u5740<\/strong><\/p>\n<p><![if !supportLists]>2. <![endif]><strong>16\u4f4dCPU\u7684\u7ed3\u6784\u7279\u6027<\/strong><strong><\/strong><\/p>\n<p><strong>&#183;\u8fd0\u7b97\u5668\u4e00\u6b21\u6700\u591a\u53ef\u4ee5\u5904\u740616\u4f4d\u7684\u6570\u636e<\/strong><strong><\/strong><\/p>\n<p><strong>&#183;\u5bc4\u5b58\u5668\u7684\u6700\u5927\u5bbd\u5ea6\u4e3a16\u4f4d<\/strong><strong><\/strong><\/p>\n<p><strong>&#183;\u5bc4\u5b58\u5668\u548c\u8fd0\u7b97\u5668\u4e4b\u95f4\u7684\u901a\u8def\u4e3a16\u4f4d<\/strong><strong><\/strong><\/p>\n<p>->\u5bf9\u4e8e16\u4f4d\u7684CPU\uff0c\u80fd\u4e00\u6b21\u6027\u5904\u7406\u3001\u4f20\u8f93\u3001\u6682\u65f6\u5b58\u50a816\u4f4d\u7684\u5730\u5740<\/p>\n<p>3.8086CPU\u4f7f\u7528\u4e24\u4e2a\u5730\u5740\u5408\u621020\u4f4d\u5730\u5740\uff0c\u5176\u4e2d\uff0c\u4e00\u4e2a\u53eb<strong>\u6bb5\u5730\u5740<\/strong>\u3001\u4e00\u4e2a\u53eb<strong>\u504f\u79fb\u5730\u5740<\/strong>\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"311\"  height=\"221\"  src=\"http:\/\/8.129.82.128\/wp-content\/uploads\/2026\/03\/asm202405\u7248\u63d0\u7eb24726.png\"  align=\"left\"  hspace=\"12\" >\u5730\u5740\u52a0\u6cd5\u5668\u91c7\u7528<\/p>\n<p><strong><u>\u7269\u7406\u5730\u5740=\u6bb5\u5730\u5740*16+\u504f\u79fb\u5730\u5740<\/u><\/strong>\u7684\u65b9\u6cd5\u5408\u6210\u7269\u7406\u5730\u5740\u3002(\u76f8\u5f53\u4e8e\u6bb5\u5730\u5740\u5728\u4e8c\u8fdb\u5236\u4e0b\u5de6\u79fb4\u4f4d\uff0c\u4ea6\u5373\u572816\u8fdb\u5236\u4e0b\u5de6\u79fb1\u4f4d\uff0c\u518d\u4e0e\u504f\u79fb\u5730\u5740\u76f8\u52a0\u5f97\u5230\u7269\u7406\u5730\u5740)<\/p>\n<p>4.<u>\u4e00\u4e2a\u6570\u636e\u7684\u4e8c\u8fdb\u5236\u5f62\u5f0f\u5de6\u79fb1\u4f4d\uff0c\u76f8\u5f53\u4e8e\u8be5\u6570\u4e582.\u4ee5\u5176\u4e8c\u8fdb\u5236\u5f62\u5f0f\u5de6\u79fbN\u4f4d\uff0c\u76f8\u5f53\u4e8e\u8be5\u6570\u636e\u4e58\u4ee52\u7684N\u6b21\u65b9\u3002<\/u><u><\/u><\/p>\n<p><u>5.\u4e00\u4e2aR\u8fdb\u5236\u7684\u6570\u636e\u5de6\u79fb1\u4f4d\uff0c\u76f8\u5f53\u4e8e\u4e58R<\/u><u><\/u><\/p>\n<p>6.\u53ef\u5c06\u6bb5\u5730\u5740*16\u770b\u4f5c<strong>\u57fa\u5730\u5740<\/strong><\/p>\n<p>7.\u5185\u5b58\u5e76\u672a\u5206\u6bb5\uff0c\u6bb5\u7684\u5212\u5206\u6765\u81eaCPU\u3002<\/p>\n<p>8.<u>\u4e00\u4e2a\u6bb5\u7684\u8d77\u59cb\u5730\u5740\u4e3a16\u7684\u500d\u6570\uff0c\u4e00\u4e2a\u6bb5\u957f\u5ea6\u6700\u5927\u4e3a64KB<\/u><u><\/u><\/p>\n<p>9.\u4e0d\u540c\u7684\u6bb5\u5730\u5740\u548c\u504f\u79fb\u5730\u5740\u53ef\u4ee5\u5f62\u6210\u540c\u4e00\u7269\u7406\u5730\u5740\u3002<\/p>\n<p>10.SA:OA\u8868\u793a\u6bb5\u5730\u5740\u4e3aSA\uff0c\u504f\u79fb\u5730\u5740\u4e3aOA\u7684\u5185\u5b58<\/p>\n<p>\u68c0\u6d4b\u70b92.2<\/p>\n<p>(1) \u7ed9\u5b9a\u6bb5\u5730\u5740\u4e3a0001H\uff0c\u4ec5\u901a\u8fc7\u53d8\u5316\u504f\u79fb\u5730\u5740\u5bfb\u5740\uff0cCPU\u7684\u5bfb\u5740\u8303\u56f4\u4e3a<u> 0010H <\/u>\u5230<u> 1000FH <\/u>\u3002 <\/p>\n<pre><code>\u89e3\u9898\u8fc7\u7a0b\uff1a<\/code><\/pre>\n<p>\u7269\u7406\u5730\u5740\uff1dSA*16+EA    <\/p>\n<p>EA\u7684\u53d8\u5316\u8303\u56f4\u4e3a0h~ffffh    <\/p>\n<p>\u7269\u7406\u5730\u5740\u8303\u56f4\u4e3a(SA*16+0h)~(SA*16+ffffh)    <\/p>\n<p>\u73b0\u5728SA=0001h,\u90a3\u4e48\u5bfb\u5740\u8303\u56f4\u4e3a    <\/p>\n<pre><code>(0001h*16+0h)~(0001h*16+ffffh)    \n=0010h~1000fh <\/code><\/pre>\n<p>2.9~2.12 \u4ee3\u7801\u6bb5\u5bc4\u5b58\u5668CS\u3001CS\u548cIP\u3001\u4fee\u6539CS\u548cIP<\/p>\n<p><![if !supportLists]>1. <![endif]>\u6bb5\u5730\u5740\u5728\u6bb5\u5bc4\u5b58\u5668\u4e2d\u5b58\u653e\u30028086\u7684\u6bb5\u5bc4\u5b58\u5668:CS\u3001DS\u3001SS\u3001ES<\/p>\n<p><![if !supportLists]>2. <![endif]>CS\u4e3a<strong>\u4ee3\u7801\u6bb5\u5bc4\u5b58\u5668<\/strong>\u3001IP\u4e3a<strong>\u6307\u4ee4\u6307\u9488\u5bc4\u5b58\u5668<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>3. <![endif]><strong>\u4efb\u610f\u65f6\u523b\uff0cCPU\u5c06CS:IP\u6307\u5411\u7684\u5185\u5bb9\u4f5c\u4e3a\u6307\u4ee4\u6267\u884c<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>4. <![endif]>8086CPU\u8bfb\u53d6\u3001\u6267\u884c\u6307\u4ee4\u7684\u8fc7\u7a0b<\/p>\n<p><![if !supportLists]>(1) <![endif]><img loading=\"lazy\" decoding=\"async\" width=\"367\"  height=\"191\"  src=\"http:\/\/8.129.82.128\/wp-content\/uploads\/2026\/03\/asm202405\u7248\u63d0\u7eb25347.png\"  align=\"left\"  hspace=\"12\" ><strong>\u4eceCS:IP\u6307\u5411\u7684\u5185\u5b58\u5355\u5143\u8bfb\u53d6\u6307\u4ee4\uff0c\u8bfb\u53d6\u7684\u6307\u4ee4\u8fdb\u5165<\/strong><strong>\u6307\u4ee4\u7f13\u51b2\u5668<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(2) <![endif]><strong>IP=IP+\u6240\u8bfb\u53d6\u6307\u4ee4\u7684\u957f\u5ea6\uff0c\u4ece\u800c\u6307\u5411\u4e0b\u4e00\u6761\u6307\u4ee4<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(3) <![endif]><strong>\u6267\u884c\u6307\u4ee4\u3002\u8f6c\u5230\u6b65\u9aa4(1),\u91cd\u590d\u6b64\u8fc7\u7a0b\u3002<\/strong><strong><\/strong><\/p>\n<p>5.8086CPU\u52a0\u7535\u590d\u4f4d\u540eCS=FFFFH,IP=0000H\uff0c<u>FFFF0H\u5355\u5143\u662f8086CPU\u5f00\u673a\u540e\u6267\u884c\u7684\u7b2c\u4e00\u6761\u6307\u4ee4<\/u>\u3002<\/p>\n<p>6.mov\u6307\u4ee4\u4e3a\u4f20\u9001\u6307\u4ee4<\/p>\n<p>7.<u>mov\u65e0\u6cd5\u4fee\u6539CS\u548cIP<\/u>\u3002\u7528\u4e8e\u6539\u53d8CS\u548cIP\u7684\u6307\u4ee4\u53eb\u505a<strong>\u8f6c\u79fb\u6307\u4ee4<\/strong><\/p>\n<p>8.jmp\u6307\u4ee4<\/p>\n<pre><code>(1)\u4fee\u6539CS:IP <strong> jmp \u6bb5\u5730\u5740:\u504f\u79fb\u5730\u5740<\/strong>\n(2)\u4fee\u6539IP <strong>jmp \u67d0\u4e00\u5408\u6cd5\u5bc4\u5b58\u5668<\/strong><strong><\/strong><\/code><\/pre>\n<p>\u68c0\u6d4b\u70b92.3<\/p>\n<p>\u4e0b\u9762\u76843\u6761\u6307\u4ee4\u6267\u884c\u540e\uff0ccpu\u51e0\u6b21\u4fee\u6539IP\uff1f\u90fd\u662f\u5728\u4ec0\u4e48\u65f6\u5019\uff1f\u6700\u540eIP\u4e2d\u7684\u503c\u662f\u591a\u5c11\uff1f  <\/p>\n<pre><code>mov ax,bx  \nsub ax,ax  \njmp ax  \n\u7b54\uff1a\u4e00\u5171\u4fee\u6539\u56db\u6b21 \n\u7b2c\u4e00\u6b21\uff1a\u8bfb\u53d6mov ax,bx\u4e4b\u540e  \n\u7b2c\u4e8c\u6b21\uff1a\u8bfb\u53d6sub ax,ax\u4e4b\u540e  \n\u7b2c\u4e09\u6b21\uff1a\u8bfb\u53d6jmp ax\u4e4b\u540e  \n\u7b2c\u56db\u6b21\uff1a\u6267\u884cjmp ax\u4fee\u6539IP  <\/code><\/pre>\n<p>\u6700\u540eIP\u7684\u503c\u4e3a0000H\uff0c\u56e0\u4e3a\u6700\u540eax\u4e2d\u7684\u503c\u4e3a0000H\uff0c\u6240\u4ee5IP\u4e2d\u7684\u503c\u4e5f\u4e3a0000H  <\/p>\n<p><u>\u6ce8:sub\u4e3a<\/u><strong><u>\u51cf\u6cd5\u6307\u4ee4<\/u><\/strong><u><\/u><\/p>\n<p>\u5b9e\u9a8c1 \u67e5\u770bCPU\u548c\u5185\u5b58\uff0c\u7528\u673a\u5668\u6307\u4ee4\u548c\u6c47\u7f16\u6307\u4ee4\u7f16\u7a0b<\/p>\n<p>1.debug\u7684\u4f7f\u7528(\u4e00)<\/p>\n<p><strong>&#183;R\u547d\u4ee4\u67e5\u770b\u3001\u6539\u53d8CPU\u5bc4\u5b58\u5668\u7684\u5185\u5bb9<\/strong><strong><\/strong><\/p>\n<p><strong>&#183;D\u547d\u4ee4\u67e5\u770b\u5185\u5b58\u4e2d\u7684\u5185\u5bb9<\/strong><strong><\/strong><\/p>\n<p><strong>&#183;E\u547d\u4ee4\u6539\u5199\u5185\u5b58\u4e2d\u7684\u5185\u5bb9<\/strong><strong><\/strong><\/p>\n<p><strong>&#183;U\u547d\u4ee4\u5c06\u673a\u5668\u6307\u4ee4\u7ffb\u8bd1\u4e3a\u6c47\u7f16\u6307\u4ee4<\/strong><strong><\/strong><\/p>\n<p><strong>&#183;T\u547d\u4ee4\u6267\u884c\u4e00\u6761\u673a\u5668\u6307\u4ee4<\/strong><strong><\/strong><\/p>\n<p><strong>&#183;A\u547d\u4ee4\u7528\u6c47\u7f16\u6307\u4ee4\u7684\u683c\u5f0f\u5728\u5185\u5b58\u4e2d\u5199\u5165\u4e00\u6761\u673a\u5668\u6307\u4ee4<\/strong><strong><\/strong><\/p>\n<pre><code><strong>\u5404\u4e2a\u547d\u4ee4\u7684\u7528\u6cd5<\/strong><strong><\/strong><\/code><\/pre>\n<p><![if !supportLists]>(1) <![endif]><strong>R \u5bc4\u5b58\u5668<\/strong><strong>\u4fee\u6539\u5bc4\u5b58\u5668\u7684\u503c<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(2) <![endif]><strong>R<\/strong><strong>\u67e5\u770b\u6240\u6709\u5bc4\u5b58\u5668\u7684\u503c<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(3) <![endif]><strong>D \u6bb5\u5730\u5740:\u504f\u79fb\u5730\u5740<\/strong><strong>\u5217\u51fa\u4ece\u6307\u5b9a\u5185\u5b58\u5355\u5143\u5f00\u59cb\u7684128\u4e2a\u5185\u5b58\u5355\u5143\u7684\u5185\u5bb9<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(4) <![endif]><strong>D<\/strong><strong>\u5217\u51fa\u9884\u8bbe\u5730\u5740\u5904\u7684\u5185\u5bb9(128\u4e2a\u5185\u5b58\u5355\u5143)<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(5) <![endif]><strong>D \u6bb5\u5730\u5740:\u8d77\u59cb\u504f\u79fb\u5730\u5740 \u7ed3\u5c3e\u504f\u79fb\u5730\u5740<\/strong><strong>\u6307\u5b9a\u67e5\u770b\u8303\u56f4<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(6) <![endif]><strong>E \u8d77\u59cb\u5730\u5740 \u6570\u636e \u6570\u636e \u6570\u636e&#8230;&#8230;.<\/strong><strong>\u6539\u5199\u8fde\u7eed\u7684\u5185\u5b58\u5355\u5143<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(7) <![endif]><strong>E \u6bb5\u5730\u5740:\u504f\u79fb\u5730\u5740<\/strong><strong>\u6539\u5199\u6307\u5b9a\u4f4d\u7f6e\u7684\u5185\u5b58\u5355\u5143<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(8) <![endif]><strong>U \u6bb5\u5730\u5740:\u504f\u79fb\u5730\u5740<\/strong><strong>\u5c06\u6307\u5b9a\u4f4d\u7f6e\u7684\u673a\u5668\u7801\u7ffb\u8bd1\u4e3a\u6c47\u7f16\u6307\u4ee4<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(9) <![endif]><strong>T<\/strong><strong>\u6267\u884cCS:IP\u5904\u7684\u6307\u4ee4<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(10) <![endif]><strong>A \u6bb5\u5730\u5740:\u504f\u79fb\u5730\u5740<\/strong><strong>\u4ee5\u6c47\u7f16\u6307\u4ee4\u7684\u5f62\u5f0f\u5199\u5165\u6307\u4ee4\u3002<\/strong><strong><\/strong><\/p>\n<p><![if !supportLists]>(11) <![endif]><strong>Q<\/strong><strong>\u9000\u51faDEBUG<\/strong><strong><\/strong><\/p>\n<p>2\u5b9e\u9a8c\u4efb\u52a1<\/p>\n<p>(1)\u4f7f\u7528Debug\uff0c\u5c06\u4e0b\u9762\u7684\u7a0b\u5e8f\u6bb5\u5199\u5165\u5185\u5b58\uff0c\u9010\u6761\u6267\u884c\uff0c\u89c2\u5bdf\u6bcf\u6761\u6307\u4ee4\u6267\u884c\u540e\uff0cCPU\u4e2d\u76f8\u5173\u5bc4\u5b58\u5668\u4e2d\u5185\u5bb9\u7684\u53d8\u5316\u3002<\/p>\n<p>\u673a\u5668\u7801          \u6c47\u7f16\u6307\u4ee4         \u5bc4\u5b58\u5668<\/p>\n<pre><code>b8 20 4e      mov ax,4E20H     ax=4E20H \n05 16 14      add ax,1416H     ax=6236H \nbb 00 20      mov BX,2000H     bx=2000H \n01 d8         add ax,bx        ax=8236H \n89 c3         mov bx,ax        bx=8236H \n01 d8         add ax,bx        ax=046CH \nb8 1a 00      mov ax,001AH     ax=001AH \nbb 26 00      mov bx,0026H     bx=0026H \n00 d8         add al,bl        ax=0040H \n00 dc         add ah,bl        ax=2640H \n00 c7         add bh,al        bx=4026H \nb4 00         mov ah,0         ax=0040H \n00 d8         add al,bl        ax=0066H \n04 9c         add al,9CH       ax=0002H <\/code><\/pre>\n<p>(2)\u5c06\u4e0b\u9762\u76843\u6761\u6307\u4ee4\u5199\u5165\u4ece2000\uff1a0\u5f00\u59cb\u7684\u5185\u5b58\u5355\u5143\u4e2d\uff0c\u5229\u7528\u8fd93\u6761\u6307\u4ee4\u8ba1\u7b972\u76848\u6b21\u65b9\u3002<\/p>\n<pre><code>mov ax,1\nadd ax,ax\njmp 2000:0003<\/code><\/pre>\n<p>(3) \u67e5\u770b\u5185\u5b58\u4e2d\u7684\u5185\u5bb9<\/p>\n<p><u>PC\u4e3b\u677f\u4e0a\u7684ROM\u4e2d\u6709\u4e2a\u4e00\u51fa\u4ea7\u65e5\u671f\uff0c\u5728\u5185\u5b58FFF00H-FFFFFH\u7684\u67d0\u51e0\u4e2a\u5355\u5143\u4e2d<\/u>\uff0c\u8bf7\u627e\u5230\u8fd9\u4e2a\u51fa\u4ea7\u65e5\u671f\u5e76\u8bd5\u56fe\u6539\u53d8\u5b83\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"376\"  height=\"176\"  src=\"http:\/\/8.129.82.128\/wp-content\/uploads\/2026\/03\/asm202405\u7248\u63d0\u7eb27071.png\" > <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"375\"  height=\"137\"  src=\"http:\/\/8.129.82.128\/wp-content\/uploads\/2026\/03\/asm202405\u7248\u63d0\u7eb27073.png\" > <\/p>\n<p><![if !supportLists]>(4) <![endif]>\u5411\u5185\u5b58\u4eceB8100H\u5f00\u59cb\u7684\u5355\u5143\u4e2d\u586b\u5199\u6570\u636e\uff0c\u5982<\/p>\n<pre><code>-e B810:0000 01 01 02 02 03 03 04 04\n\u586b\u5199\u4e0d\u540c\u7684\u6570\u636e\uff0c\u89c2\u5bdf\u73b0\u8c61\uff0c\u6539\u53d8\u586b\u5199\u7684\u5730\u5740\uff0c\u89c2\u5bdf\u73b0\u8c61<\/code><\/pre>\n<p>\u73b0\u8c61\uff1a<strong>\u5c4f\u5e55\u4e0a\u51fa\u73b0\u6587\u5b57\uff0c\u56e0\u4e3a\u8fd9\u662f\u5728\u663e\u5b58\u4e2d\u5199\u5165\u6570\u636e<\/strong><strong><\/strong><\/p>\n<p><strong>\n    <\/div>\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e8c\u7ae0 \u5bc4\u5b58\u5668 &#8211; \u6c47\u7f16\u8bed\u8a00 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[18,9,8],"tags":[],"class_list":["post-488","post","type-post","status-publish","format-standard","hentry","category-assembly","category-9","category-8"],"_links":{"self":[{"href":"http:\/\/8.129.82.128\/index.php?rest_route=\/wp\/v2\/posts\/488","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/8.129.82.128\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/8.129.82.128\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/8.129.82.128\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/8.129.82.128\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=488"}],"version-history":[{"count":1,"href":"http:\/\/8.129.82.128\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions"}],"predecessor-version":[{"id":489,"href":"http:\/\/8.129.82.128\/index.php?rest_route=\/wp\/v2\/posts\/488\/revisions\/489"}],"wp:attachment":[{"href":"http:\/\/8.129.82.128\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=488"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/8.129.82.128\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=488"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/8.129.82.128\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=488"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}