mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 16:18:37 +03:00
new handlers and test fixes
This commit is contained in:
@ -38,7 +38,7 @@ public class MovRegImm8Handler : InstructionHandler
|
||||
instruction.Type = InstructionType.Mov;
|
||||
|
||||
// Register is encoded in the low 3 bits of the opcode
|
||||
RegisterIndex reg = (RegisterIndex)(opcode & 0x07);
|
||||
RegisterIndex8 reg = (RegisterIndex8)(opcode & 0x07);
|
||||
|
||||
// Read the immediate value
|
||||
if (!Decoder.CanReadByte())
|
||||
@ -49,7 +49,7 @@ public class MovRegImm8Handler : InstructionHandler
|
||||
byte imm8 = Decoder.ReadByte();
|
||||
|
||||
// Create the destination register operand
|
||||
var destinationOperand = OperandFactory.CreateRegisterOperand(reg, 8);
|
||||
var destinationOperand = OperandFactory.CreateRegisterOperand8(reg);
|
||||
|
||||
// Create the source immediate operand
|
||||
var sourceOperand = OperandFactory.CreateImmediateOperand(imm8, 8);
|
||||
|
Reference in New Issue
Block a user