Cleanups.

committer: mfx <mfx> 1044346308 +0000
This commit is contained in:
Markus F.X.J. Oberhumer
2003-02-04 08:11:48 +00:00
parent 8e21c1e965
commit 882e1be2db
2 changed files with 4 additions and 3 deletions
+2
View File
@@ -223,6 +223,7 @@ static unsigned OP_MOVEQ(int value, int d_reg)
static unsigned OP_SUBQ_L(int value, int d_reg)
{
// subq.l #X,d0
assert(value >= 1 && value <= 8);
assert(d_reg >= REG_D0 && d_reg <= REG_D7);
return 0x5180 | ((value & 7) << 9) | (d_reg & 7);
@@ -230,6 +231,7 @@ static unsigned OP_SUBQ_L(int value, int d_reg)
static unsigned OP_SUBQ_W(int value, int d_reg)
{
// subq.w #X,d0
assert(value >= 1 && value <= 8);
assert(d_reg >= REG_D0 && d_reg <= REG_D7);
return 0x5140 | ((value & 7) << 9) | (d_reg & 7);