{"id":2310,"date":"2019-04-08T13:51:58","date_gmt":"2019-04-08T13:51:58","guid":{"rendered":""},"modified":"2019-04-08T21:52:16","modified_gmt":"2019-04-08T13:52:16","slug":"%e5%8d%95%e7%89%87%e6%9c%ba%e5%a0%86%e6%a0%88%e6%93%8d%e4%bd%9c%e6%8c%87%e4%bb%a4%e7%9a%84%e7%94%a8%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"http:\/\/www.szryc.com\/?p=2310","title":{"rendered":"\u5355\u7247\u673a\u5806\u6808\u64cd\u4f5c\u6307\u4ee4\u7684\u7528\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"

\n\t\u5806\u6808\u64cd\u4f5c\u6307\u4ee4\u6709\u4e24\u6761\uff1a<\/p>\n

\n\tPUSH direct<\/p>\n

\n\t <\/div>\n

\n\tPOP direct<\/p>\n

\n\t\u7b2c\u4e00\u6761\u6307\u4ee4\u79f0\u4e4b\u4e3a\u63a8\u5165\uff0c\u5c31\u662f\u5c06direct\u4e2d\u7684\u5185\u5bb9\u9001\u5165\u5806\u6808\u4e2d\uff0c\u7b2c\u4e8c\u6761\u6307\u4ee4\u79f0\u4e4b\u4e3a\u5f39\u51fa\uff0c\u5c31\u662f\u5c06\u5806\u6808\u4e2d\u7684\u5185\u5bb9\u9001\u56de\u5230direct\u4e2d\u3002\u63a8\u5165\u6307\u4ee4\u7684\u6267\u884c\u8fc7\u7a0b\u662f\uff0c\u9996\u5148\u5c06SP\u4e2d\u7684\u503c\u52a01\uff0c\u7136\u540e\u628aSP\u4e2d\u7684\u503c\u5f53\u4f5c\u5730\u5740\uff0c\u5c06direct\u4e2d\u7684\u503c\u9001\u8fdb\u4ee5SP\u4e2d\u7684\u503c\u4e3a\u5730\u5740\u7684RAM<\/u>\u5355\u5143\u4e2d\u3002\u4f8b\uff1a<\/p>\n

\n\tMOV SP\uff0c#5FH<\/p>\n

\n\tMOV A\uff0c#100<\/p>\n

\n\tMOV B\uff0c#20<\/p>\n

\n\tPUSH ACC<\/p>\n

\n\tPUSH B<\/p>\n

\n\t\u5219\u6267\u884c\u7b2c\u4e00\u6761PUSH ACC\u6307\u4ee4\u662f\u8fd9\u6837\u7684\uff1a\u5c06SP\u4e2d\u7684\u503c\u52a01\uff0c\u5373\u53d8\u4e3a60H\uff0c\u7136\u540e\u5c06A\u4e2d\u7684\u503c\u9001\u523060H\u5355\u5143\u4e2d\uff0c\u56e0\u6b64\u6267\u884c\u5b8c\u672c\u6761\u6307\u4ee4\u540e\uff0c \u5185\u5b5860H\u5355\u5143\u7684\u503c\u5c31\u662f100\uff0c\u540c\u6837\uff0c\u6267\u884cPUSH B\u65f6\uff0c\u662f\u5c06SP+1\uff0c\u5373\u53d8\u4e3a61H\uff0c\u7136\u540e\u5c06B\u4e2d\u7684\u503c\u9001\u5165\u523061H\u5355\u5143\u4e2d\uff0c\u5373\u6267\u884c\u5b8c\u672c\u6761\u6307\u4ee4\u540e\uff0c61H\u5355\u5143\u4e2d\u7684\u503c\u53d8\u4e3a20\u3002<\/p>\n

\n\t\"\u5355\u7247\u673a\u5806\u6808\u64cd\u4f5c\u6307\u4ee4\u7684\u7528\u6cd5\u4ecb\u7ecd\"
\n\t <\/p>\n

\n\tPOP\u6307\u4ee4\u7684\u5728\u5355\u7247\u673a<\/u>\u4e2d\u6267\u884c\u662f\u8fd9\u6837\u7684\uff0c\u9996\u5148\u5c06SP\u4e2d\u7684\u503c\u4f5c\u4e3a\u5730\u5740\uff0c\u5e76\u5c06\u6b64\u5730\u5740\u4e2d\u7684\u6570\u9001\u5230POP\u6307\u4ee4\u540e\u9762\u7684\u90a3\u4e2adirect\u4e2d\uff0c\u7136\u540eSP\u51cf1\u3002<\/p>\n

\n\t\u63a5\u4e0a\u4f8b\uff1a<\/p>\n

\n\tPOP B<\/p>\n

\n\tPOP ACC<\/p>\n

\n\t\u5219\u6267\u884c\u8fc7\u7a0b\u662f\uff1a\u5c06SP\u4e2d\u7684\u503c\uff08\u73b0\u5728\u662f61H\uff09\u4f5c\u4e3a\u5730\u5740\uff0c\u53d661H\u5355\u5143\u4e2d\u7684\u6570\u503c\uff08\u73b0\u5728\u662f20\uff09\uff0c\u9001\u5230B\u4e2d\uff0c\u6240\u4ee5\u6267\u884c\u5b8c\u672c\u6761\u6307\u4ee4\u540eB\u4e2d\u7684\u503c\u662f20\uff0c\u7136\u540e\u5c06SP\u51cf1\uff0c\u56e0\u6b64\u672c\u6761\u6307\u4ee4\u6267\u884c\u5b8c\u540e\uff0cSP\u7684\u503c\u53d8\u4e3a60H\uff0c\u7136\u540e\u6267\u884cPOP ACC\uff0c\u5c06SP\u4e2d\u7684\u503c\uff0860H\uff09\u4f5c\u4e3a\u5730\u5740\uff0c\u4ece\u8be5\u5730\u5740\u4e2d\u53d6\u6570\uff08\u73b0\u5728\u662f100\uff09\uff0c\u5e76\u9001\u5230ACC\u4e2d\uff0c\u6240\u4ee5\u6267\u884c\u5b8c\u672c\u6761\u6307\u4ee4\u540e\uff0cACC\u4e2d\u7684\u503c\u662f100\u3002<\/p>\n

\n\t\u8fd9\u6709\u4ec0\u4e48\u610f\u4e49\u5462\uff1fACC\u4e2d\u7684\u503c\u672c\u6765\u5c31\u662f100\uff0cB\u4e2d\u7684\u503c\u672c\u6765\u5c31\u662f20\uff0c\u662f\u7684\uff0c\u5728\u672c\u4f8b\u4e2d\uff0c\u7684\u786e\u6ca1\u6709\u610f\u4e49\uff0c\u4f46\u5728\u5b9e\u9645\u5de5\u4f5c\u4e2d\uff0c\u5219\u5728PUSH B\u540e\u4e00\u822c\u8981\u6267\u884c\u5176\u4ed6\u6307\u4ee4\uff0c\u800c\u4e14\u8fd9\u4e9b\u6307\u4ee4\u4f1a\u628aA\u4e2d\u7684\u503c\uff0cB\u4e2d\u7684\u503c\u6539\u6389\uff0c\u6240\u4ee5\u5728\u7a0b\u5e8f\u7684\u7ed3\u675f\uff0c\u5982\u679c\u6211\u4eec\u8981\u628aA\u548cB\u4e2d\u7684\u503c\u6062\u590d\u539f\u503c\uff0c\u90a3\u4e48\u8fd9\u4e9b\u6307\u4ee4\u5c31\u6709\u610f\u4e49\u4e86\u3002<\/p>\n

\n\t\u8fd8\u6709\u4e00\u4e2a\u95ee\u9898\uff0c\u5982\u679c\u6211\u4e0d\u7528\u5806\u6808\uff0c\u6bd4\u5982\u8bf4\u5728PUSH ACC\u6307\u4ee4\u5904\u7528MOV 60H\uff0cA\uff0c\u5728PUSH B\u5904\u7528\u6307\u4ee4MOV 61H\uff0cB\uff0c\u7136\u540e\u7528MOV A\uff0c60H\uff0cMOV B\uff0c61H\u6765\u66ff\u4ee3\u4e24\u6761POP\u6307\u4ee4\uff0c\u4e0d\u662f\u4e5f\u4e00\u6837\u5417\uff1f\u662f\u7684\uff0c\u4ece\u7ed3\u679c\u4e0a\u770b\u662f\u4e00\u6837\u7684\uff0c\u4f46\u662f\u4ece\u8fc7\u7a0b\u770b\u662f\u4e0d\u4e00\u6837\u7684\uff0cPUSH\u548cPOP\u6307\u4ee4\u90fd\u662f\u5355\u5b57\u8282\uff0c\u5355\u5468\u671f\u6307\u4ee4\uff0c\u800cMOV\u6307\u4ee4\u5219\u662f\u53cc\u5b57\u8282\uff0c\u53cc\u5468\u671f\u6307\u4ee4\u3002\u66f4\u4f55\u51b5\uff0c\u5806\u6808\u7684\u4f5c\u7528\u4e0d\u6b62\u4e8e\u6b64\uff0c\u6240\u4ee5\u4e00\u822c\u7684\u8ba1\u7b97\u673a\u4e0a\u90fd\u8bbe\u6709\u5806\u6808\uff0c\u5355\u7247\u673a\u4e5f\u662f\u4e00\u6837\uff0c\u800c\u6211\u4eec\u5728\u7f16\u5199\u5b50\u7a0b\u5e8f\uff0c\u9700\u8981\u4fdd\u5b58\u6570\u636e\u65f6\uff0c\u5e38\u5e38\u4e5f\u4e0d\u91c7\u7528\u540e\u9762\u7684\u529e\u6cd5\uff0c\u800c\u662f\u7528\u5806\u6808\u7684\u529e\u6cd5\u6765\u5b9e\u73b0\u3002<\/p>\n

\n\t\u4f8b\uff1a\u5199\u51fa\u4ee5\u4e0b\u5355\u7247\u673a\u7a0b\u5e8f\u7684\u8fd0\u884c\u7ed3\u679c<\/p>\n

\n\tMOV 30H\uff0c#12<\/p>\n

\n\tMOV 31H\uff0c#23<\/p>\n

\n\tPUSH 30H<\/p>\n

\n\tPUSH 31H<\/p>\n

\n\tPOP 30H<\/p>\n

\n\tPOP 31H<\/p>\n

\n\t\u7ed3\u679c\u662f30H\u4e2d\u7684\u503c\u53d8\u4e3a23\uff0c\u800c31H\u4e2d\u7684\u503c\u5219\u53d8\u4e3a12\u3002\u4e5f\u5c31\u4e24\u8005\u8fdb\u884c\u4e86\u6570\u636e\u4ea4\u6362\u3002\u4ece\u8fd9\u4e2a\u4f8b\u7a0b\u80fd\u770b\u51fa\uff1a\u4f7f\u7528\u5806\u6808\u65f6\uff0c\u5165\u6808\u7684\u4e66\u5199\u6b21\u5e8f\u548c\u51fa\u6808\u7684\u4e66\u5199\u6b21\u5e8f\u5fc5\u987b\u76f8\u53cd\uff0c\u624d\u80fd\u4fdd\u8bc1\u6570\u636e\u88ab\u9001\u56de\u539f\u4f4d\uff0c\u4e0d\u7136\u5c31\u8981\u51fa\u9519\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5806\u6808\u64cd\u4f5c\u6307\u4ee4\u6709\u4e24\u6761\uff1a PUSH direct POP direct \u7b2c\u4e00\u6761\u6307\u4ee4\u79f0\u4e4b\u4e3a\u63a8\u5165\uff0c\u5c31\u662f\u5c06direct\u4e2d\u7684\u5185\u5bb9\u9001\u5165\u5806\u6808\u4e2d\uff0c\u7b2c\u4e8c\u6761\u6307\u4ee4\u79f0\u4e4b\u4e3a\u5f39\u51fa\uff0c\u5c31\u662f\u5c06\u5806\u6808\u4e2d\u7684\u5185\u5bb9\u9001\u56de\u5230direct\u4e2d\u3002\u63a8\u5165\u6307\u4ee4\u7684\u6267\u884c\u8fc7\u7a0b\u662f<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2310"}],"collection":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2310"}],"version-history":[{"count":0,"href":"http:\/\/www.szryc.com\/index.php?rest_route=\/wp\/v2\/posts\/2310\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2310"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2310"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.szryc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2310"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}