Implement some forms of add.
--HG-- extra : convert_revision : adbff2e9b9952ec09853cc43d40243e7262410a7
This commit is contained in:
parent
bafb7ee5c1
commit
6c54b654a8
|
@ -297,7 +297,7 @@
|
||||||
}
|
}
|
||||||
//0x3: group1_Ev_Ib();
|
//0x3: group1_Ev_Ib();
|
||||||
0x3: decode MODRM_REG {
|
0x3: decode MODRM_REG {
|
||||||
0x0: add_Ev_Ib();
|
0x0: Inst::ADD(Ev,Ib);
|
||||||
0x1: or_Ev_Ib();
|
0x1: or_Ev_Ib();
|
||||||
0x2: adc_Ev_Ib();
|
0x2: adc_Ev_Ib();
|
||||||
0x3: sbb_Ev_Ib();
|
0x3: sbb_Ev_Ib();
|
||||||
|
|
|
@ -54,6 +54,29 @@
|
||||||
# Authors: Gabe Black
|
# Authors: Gabe Black
|
||||||
|
|
||||||
microcode = '''
|
microcode = '''
|
||||||
|
def macroop ADD_R_I
|
||||||
|
{
|
||||||
|
limm t1, imm
|
||||||
|
add reg, reg, t1
|
||||||
|
};
|
||||||
|
|
||||||
|
def macroop ADD_M_I
|
||||||
|
{
|
||||||
|
limm t2, imm
|
||||||
|
ld t1, ds, [scale, index, base], disp
|
||||||
|
add t1, t1, t2
|
||||||
|
st t1, ds, [scale, index, base], disp
|
||||||
|
};
|
||||||
|
|
||||||
|
def macroop ADD_P_I
|
||||||
|
{
|
||||||
|
rdip t7
|
||||||
|
limm t2, imm
|
||||||
|
ld t1, ds, [scale, index, base], disp
|
||||||
|
add t1, t1, t2
|
||||||
|
st t1, ds, [scale, index, base], disp
|
||||||
|
};
|
||||||
|
|
||||||
def macroop SUB_R_I
|
def macroop SUB_R_I
|
||||||
{
|
{
|
||||||
limm t1, imm
|
limm t1, imm
|
||||||
|
|
Loading…
Reference in a new issue