{"id":292,"date":"2009-04-06T12:44:00","date_gmt":"2009-04-06T04:44:00","guid":{"rendered":""},"modified":"2013-11-18T21:00:00","modified_gmt":"2013-11-18T13:00:00","slug":"delphi%e8%8e%b7%e5%8f%96cpu%e5%ba%8f%e5%88%97%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/292.html","title":{"rendered":"Delphi\u83b7\u53d6CPU\u5e8f\u5217\u53f7"},"content":{"rendered":"<pre class=\"brush: delphi; title: ; notranslate\" title=\"\">\r\n\r\nfunction GetCpuId:longint;assembler;register;\r\nvar\r\ntemp:longint;\r\nbegin\r\nasm\r\n    PUSH    EBX\r\n    PUSH    EDI\r\n    MOV     EDI,EAX\r\n    MOV     EAX,1\r\n    DW      $A20F\r\n    MOV     TEMP,EDX\r\n    POP     EDI\r\n    POP     EBX\r\nend;\r\nresult:=temp;\r\nend;\r\n\r\n\/\/\u8c03\u7528\uff1a\r\nprocedure TForm1.Button1Click(Sender: TObject);\r\nbegin\r\nshowmessage(inttostr(GetCpuId));\r\nend;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function GetCpuId:longint;assembler;register; var temp: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":4789,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/292\/revisions\/4789"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}