
{"id":2326,"date":"2010-08-04T21:20:36","date_gmt":"2010-08-04T15:50:36","guid":{"rendered":"http:\/\/www.jeffrin.in\/?p=2326"},"modified":"2010-08-04T21:20:36","modified_gmt":"2010-08-04T15:50:36","slug":"cmp-instruction","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2010\/08\/04\/cmp-instruction\/","title":{"rendered":"CMP . Instruction"},"content":{"rendered":"<h4> WinDbg shows cmp Instruction <\/h4>\n<pre>\n7c9011ec 803d94b0977c00  cmp     byte ptr [ntdll!fltused+0x4c (7c97b094)],0\n7c9011f3 8b7508          mov     esi,dword ptr [ebp+8]\n7c9011f6 8945fc          mov     dword ptr [ebp-4],eax\n7c9011f9 0f85d7ec0000    jne     ntdll!RtlInitUnicodeStringEx+0x61 (7c90fed6)\n7c9011ff f6461010        test    byte ptr [esi+10h],10h\n7c901203 0f84cdec0000    je      ntdll!RtlInitUnicodeStringEx+0x61 (7c90fed6)\n7c901209 5e              pop     esi\n7c90120a c9              leave\n7c90120b c20400          ret     4\nntdll!DbgBreakPoint:\n7c90120e cc              int     3\n<\/pre>\n<p><\/p>\n<h4> Process Involved <\/h4>\n<pre>\nDiskmaX.\nFinds and removes unnecessary files that slow down your system.\n<\/pre>\n<p><\/p>\n<h4> Explanation <\/h4>\n<pre>\nCompares the first source operand with the second source operand and\nsets the status flags in the EFLAGS register according to the results.\nThe comparison is performed by subtracting the second operand from\nthe first operand and then setting the status flags in the same manner\nas the  <a>SUB<\/a> instruction. When an immediate value is used as an operand,\nit is sign-extended to the length of the first operand.\n\nsource : http:\/\/faydoc.tripod.com\/cpu\/cmp.htm\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>WinDbg shows cmp Instruction 7c9011ec 803d94b0977c00 cmp byte ptr [ntdll!fltused+0x4c (7c97b094)],0 7c9011f3 8b7508 mov esi,dword ptr [ebp+8] 7c9011f6 8945fc mov dword ptr [ebp-4],eax 7c9011f9 0f85d7ec0000 jne ntdll!RtlInitUnicodeStringEx+0x61 (7c90fed6) 7c9011ff f6461010 test byte ptr [esi+10h],10h 7c901203 0f84cdec0000 je ntdll!RtlInitUnicodeStringEx+0x61 (7c90fed6) 7c901209 5e pop esi 7c90120a c9 leave 7c90120b c20400 ret 4 ntdll!DbgBreakPoint: 7c90120e cc int 3 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2010\/08\/04\/cmp-instruction\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;CMP . Instruction&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":-1,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[549,562,567,1035],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2326"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=2326"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/2326\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=2326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=2326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=2326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}