|
From: | Zdenek Pavlas |
Subject: | Re: [Tinycc-devel] Re: Please comment this patch, if you have the time. |
Date: | Mon, 01 Oct 2007 10:04:17 +0200 |
User-agent: | Thunderbird 1.5.0.12 (X11/20070530) |
Rob Landley wrote:
Let's see, according to http://sandpile.org/ia32 the opcode 0x85 is "TEST Eb,Gb" and 0x0f is the prefix to indicate a two byte opcode follows. At a guess the function name indicates an x86 "test and jump".
TCC outputs opcodes LSB first, so o(0x850f) is actually "db 0x0f, 0x85", which is "JNZ disp32".
Except that the function _contents_ start by sticking 0x1a at the start of it, which is "SBB Gb, Eb" and I have no _IDEA_ what that means, but google probably will... http://en.wikipedia.org/wiki/X86_assembly_languagesays "subtraction with borrow". Ok...
0x1a is probably the ARM's version of x86's JNZ... -- Zdenek Pavlas
[Prev in Thread] | Current Thread | [Next in Thread] |