Local right shift for GF(2^n).

This commit is contained in:
Marcel Keller
2022-06-23 14:42:54 +02:00
parent 4c8e616b58
commit ec1d302b03
8 changed files with 51 additions and 25 deletions

View File

@@ -284,8 +284,9 @@ enum
// Bitwise shifts
GSHLCI = 0x182,
GSHRCI = 0x183,
GBITDEC = 0x184,
GBITCOM = 0x185,
GSHRSI = 0x184,
GBITDEC = 0x18A,
GBITCOM = 0x18B,
// Conversion
GCONVINT = 0x1C0,
GCONVGF2N = 0x1C1,

View File

@@ -198,6 +198,7 @@ void BaseInstruction::parse_operands(istream& s, int pos, int file_pos)
case GORCI:
case GSHLCI:
case GSHRCI:
case GSHRSI:
case USE:
case USE_INP:
case USE_EDABIT:
@@ -1006,6 +1007,9 @@ inline void Instruction::execute(Processor<sint, sgf2n>& Proc) const
case SHRSI:
sint::shrsi(Procp, *this);
return;
case GSHRSI:
sgf2n::shrsi(Proc2, *this);
return;
case OPEN:
Proc.Procp.POpen(start, Proc.P, size);
return;