Use limm to set up immediate value for subtract instruction.

--HG--
extra : convert_revision : f94e391e36a47c2f5222f30d7e28f48f7875db58
This commit is contained in:
Gabe Black 2007-07-17 16:50:13 -07:00
parent d77d4c04b7
commit 62ffc71fab

View file

@ -56,21 +56,24 @@
microcode = '''
def macroop SUB_R_I
{
subi reg, reg, imm
limm t1, imm
sub reg, reg, t1
};
def macroop SUB_M_I
{
limm t2, imm
ld t1, ds, [scale, index, base], disp
subi t1, t1, imm
sub t1, t1, t2
st t1, ds, [scale, index, base], disp
};
def macroop SUB_P_I
{
rdip t7
limm t2, imm
ld t1, ds, [scale, index, base], disp
subi t1, t1, imm
sub t1, t1, t2
st t1, ds, [scale, index, base], disp
};
'''