Remove EAFUNCS

This commit is contained in:
Jeff Parsons 2015-01-24 14:50:34 -08:00 committed by jeffpar
commit 9ae860d28f
16 changed files with 2655 additions and 2727 deletions

View file

@ -82,6 +82,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB04(mod) {
this.segData = this.segStack;
return this.regESP + this.regEAX;
},
/**
@ -91,7 +92,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB05(mod) {
return (mod? this.regEBP : this.getIPWord()) + this.regEAX;
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + this.regEAX;
},
/**
* opModSIB06(): scale=00 (1) index=000 (EAX) base=110 (ESI)
@ -154,6 +155,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB0C(mod) {
this.segData = this.segStack;
return this.regESP + this.regECX;
},
/**
@ -163,7 +165,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB0D(mod) {
return (mod? this.regEBP : this.getIPWord()) + this.regECX;
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + this.regECX;
},
/**
* opModSIB0E(): scale=00 (1) index=001 (ECX) base=110 (ESI)
@ -226,6 +228,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB14(mod) {
this.segData = this.segStack;
return this.regESP + this.regEDX;
},
/**
@ -235,7 +238,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB15(mod) {
return (mod? this.regEBP : this.getIPWord()) + this.regEDX;
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + this.regEDX;
},
/**
* opModSIB16(): scale=00 (1) index=010 (EDX) base=110 (ESI)
@ -298,6 +301,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB1C(mod) {
this.segData = this.segStack;
return this.regESP + this.regEBX;
},
/**
@ -307,7 +311,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB1D(mod) {
return (mod? this.regEBP : this.getIPWord()) + this.regEBX;
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + this.regEBX;
},
/**
* opModSIB1E(): scale=00 (1) index=011 (EBX) base=110 (ESI)
@ -370,6 +374,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB24(mod) {
this.segData = this.segStack;
return this.regESP;
},
/**
@ -379,7 +384,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB25(mod) {
return (mod? this.regEBP : this.getIPWord());
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord());
},
/**
* opModSIB26(): scale=00 (1) index=100 (none) base=110 (ESI)
@ -442,6 +447,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB2C(mod) {
this.segData = this.segStack;
return this.regESP + this.regEBP;
},
/**
@ -451,7 +457,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB2D(mod) {
return (mod? this.regEBP : this.getIPWord()) + this.regEBP;
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + this.regEBP;
},
/**
* opModSIB2E(): scale=00 (1) index=101 (EBP) base=110 (ESI)
@ -514,6 +520,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB34(mod) {
this.segData = this.segStack;
return this.regESP + this.regESI;
},
/**
@ -523,7 +530,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB35(mod) {
return (mod? this.regEBP : this.getIPWord()) + this.regESI;
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + this.regESI;
},
/**
* opModSIB36(): scale=00 (1) index=110 (ESI) base=110 (ESI)
@ -586,6 +593,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB3C(mod) {
this.segData = this.segStack;
return this.regESP + this.regEDI;
},
/**
@ -595,7 +603,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB3D(mod) {
return (mod? this.regEBP : this.getIPWord()) + this.regEDI;
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + this.regEDI;
},
/**
* opModSIB3E(): scale=00 (1) index=111 (EDI) base=110 (ESI)
@ -658,6 +666,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB44(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEAX << 1);
},
/**
@ -667,7 +676,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB45(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEAX << 1);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEAX << 1);
},
/**
* opModSIB46(): scale=01 (2) index=000 (EAX) base=110 (ESI)
@ -730,6 +739,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB4C(mod) {
this.segData = this.segStack;
return this.regESP + (this.regECX << 1);
},
/**
@ -739,7 +749,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB4D(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regECX << 1);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regECX << 1);
},
/**
* opModSIB4E(): scale=01 (2) index=001 (ECX) base=110 (ESI)
@ -802,6 +812,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB54(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEDX << 1);
},
/**
@ -811,7 +822,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB55(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEDX << 1);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEDX << 1);
},
/**
* opModSIB56(): scale=01 (2) index=010 (EDX) base=110 (ESI)
@ -874,6 +885,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB5C(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEBX << 1);
},
/**
@ -883,7 +895,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB5D(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEBX << 1);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEBX << 1);
},
/**
* opModSIB5E(): scale=01 (2) index=011 (EBX) base=110 (ESI)
@ -946,6 +958,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB64(mod) {
this.segData = this.segStack;
return this.regESP;
},
/**
@ -955,7 +968,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB65(mod) {
return (mod? this.regEBP : this.getIPWord());
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord());
},
/**
* opModSIB66(): scale=01 (2) index=100 (none) base=110 (ESI)
@ -1018,6 +1031,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB6C(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEBP << 1);
},
/**
@ -1027,7 +1041,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB6D(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEBP << 1);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEBP << 1);
},
/**
* opModSIB6E(): scale=01 (2) index=101 (EBP) base=110 (ESI)
@ -1090,6 +1104,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB74(mod) {
this.segData = this.segStack;
return this.regESP + (this.regESI << 1);
},
/**
@ -1099,7 +1114,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB75(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regESI << 1);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regESI << 1);
},
/**
* opModSIB76(): scale=01 (2) index=110 (ESI) base=110 (ESI)
@ -1162,6 +1177,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB7C(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEDI << 1);
},
/**
@ -1171,7 +1187,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB7D(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEDI << 1);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEDI << 1);
},
/**
* opModSIB7E(): scale=01 (2) index=111 (EDI) base=110 (ESI)
@ -1234,6 +1250,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB84(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEAX << 2);
},
/**
@ -1243,7 +1260,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB85(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEAX << 2);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEAX << 2);
},
/**
* opModSIB86(): scale=10 (4) index=000 (EAX) base=110 (ESI)
@ -1306,6 +1323,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB8C(mod) {
this.segData = this.segStack;
return this.regESP + (this.regECX << 2);
},
/**
@ -1315,7 +1333,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB8D(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regECX << 2);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regECX << 2);
},
/**
* opModSIB8E(): scale=10 (4) index=001 (ECX) base=110 (ESI)
@ -1378,6 +1396,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB94(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEDX << 2);
},
/**
@ -1387,7 +1406,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB95(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEDX << 2);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEDX << 2);
},
/**
* opModSIB96(): scale=10 (4) index=010 (EDX) base=110 (ESI)
@ -1450,6 +1469,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB9C(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEBX << 2);
},
/**
@ -1459,7 +1479,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIB9D(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEBX << 2);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEBX << 2);
},
/**
* opModSIB9E(): scale=10 (4) index=011 (EBX) base=110 (ESI)
@ -1522,6 +1542,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBA4(mod) {
this.segData = this.segStack;
return this.regESP;
},
/**
@ -1531,7 +1552,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBA5(mod) {
return (mod? this.regEBP : this.getIPWord());
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord());
},
/**
* opModSIBA6(): scale=10 (4) index=100 (none) base=110 (ESI)
@ -1594,6 +1615,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBAC(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEBP << 2);
},
/**
@ -1603,7 +1625,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBAD(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEBP << 2);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEBP << 2);
},
/**
* opModSIBAE(): scale=10 (4) index=101 (EBP) base=110 (ESI)
@ -1666,6 +1688,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBB4(mod) {
this.segData = this.segStack;
return this.regESP + (this.regESI << 2);
},
/**
@ -1675,7 +1698,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBB5(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regESI << 2);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regESI << 2);
},
/**
* opModSIBB6(): scale=10 (4) index=110 (ESI) base=110 (ESI)
@ -1738,6 +1761,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBBC(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEDI << 2);
},
/**
@ -1747,7 +1771,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBBD(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEDI << 2);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEDI << 2);
},
/**
* opModSIBBE(): scale=10 (4) index=111 (EDI) base=110 (ESI)
@ -1810,6 +1834,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBC4(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEAX << 3);
},
/**
@ -1819,7 +1844,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBC5(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEAX << 3);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEAX << 3);
},
/**
* opModSIBC6(): scale=11 (8) index=000 (EAX) base=110 (ESI)
@ -1882,6 +1907,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBCC(mod) {
this.segData = this.segStack;
return this.regESP + (this.regECX << 3);
},
/**
@ -1891,7 +1917,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBCD(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regECX << 3);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regECX << 3);
},
/**
* opModSIBCE(): scale=11 (8) index=001 (ECX) base=110 (ESI)
@ -1954,6 +1980,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBD4(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEDX << 3);
},
/**
@ -1963,7 +1990,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBD5(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEDX << 3);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEDX << 3);
},
/**
* opModSIBD6(): scale=11 (8) index=010 (EDX) base=110 (ESI)
@ -2026,6 +2053,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBDC(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEBX << 3);
},
/**
@ -2035,7 +2063,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBDD(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEBX << 3);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEBX << 3);
},
/**
* opModSIBDE(): scale=11 (8) index=011 (EBX) base=110 (ESI)
@ -2098,6 +2126,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBE4(mod) {
this.segData = this.segStack;
return this.regESP;
},
/**
@ -2107,7 +2136,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBE5(mod) {
return (mod? this.regEBP : this.getIPWord());
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord());
},
/**
* opModSIBE6(): scale=11 (8) index=100 (none) base=110 (ESI)
@ -2170,6 +2199,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBEC(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEBP << 3);
},
/**
@ -2179,7 +2209,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBED(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEBP << 3);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEBP << 3);
},
/**
* opModSIBEE(): scale=11 (8) index=101 (EBP) base=110 (ESI)
@ -2242,6 +2272,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBF4(mod) {
this.segData = this.segStack;
return this.regESP + (this.regESI << 3);
},
/**
@ -2251,7 +2282,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBF5(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regESI << 3);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regESI << 3);
},
/**
* opModSIBF6(): scale=11 (8) index=110 (ESI) base=110 (ESI)
@ -2314,6 +2345,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBFC(mod) {
this.segData = this.segStack;
return this.regESP + (this.regEDI << 3);
},
/**
@ -2323,7 +2355,7 @@ X86ModSIB.aOpModSIB = [
* @param {number} mod
*/
function opModSIBFD(mod) {
return (mod? this.regEBP : this.getIPWord()) + (this.regEDI << 3);
return (mod? ((this.segData = this.segStack), this.regEBP) : this.getIPWord()) + (this.regEDI << 3);
},
/**
* opModSIBFE(): scale=11 (8) index=111 (EDI) base=110 (ESI)