instruction_length(): extended
authorshort <>
Sun, 9 Feb 2003 11:02:07 +0000 (11:02 +0000)
committershort <>
Sun, 9 Feb 2003 11:02:07 +0000 (11:02 +0000)
src/libcaptive/ldr/loader.c

index cfea7b5..66cfc76 100644 (file)
@@ -371,6 +371,12 @@ static gsize instruction_length(const guint8 *instr)
                        return 1+4;
                case 0x6A:      /* push $single-byte */
                        return 1+1;
+               case 0x80:
+                       switch (instr[1]) {
+                               case 0x3D:      /* cmpb $byte,immediate-quad-indirect */
+                                       return 1+1+4+1; /* 80 3D immediate-quad-indirect byte */
+                               default: g_assert_not_reached();
+                               }
                case 0x83:
                        switch (instr[1]) {
                                case 0x01:      /* addl $byte,(%ecx) */