Use limm to set up immediate value for subtract instruction.
--HG-- extra : convert_revision : f94e391e36a47c2f5222f30d7e28f48f7875db58
This commit is contained in:
parent
d77d4c04b7
commit
62ffc71fab
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
};
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue