public override void Compile(AsmParser parser, AsmSection output) { var dest = parser.ReadReg16(); parser.ReadToken(TokenType.Comma); var value = parser.ReadByte(); var translation = new OpcodeTranslation { Opcode = _opcodeTemplate, Destination16 = dest, Imm8 = (byte)(255 - value) }; output.EmitCode(translation.Opcode); }
protected override void Parse(AsmParser parser) { Destination = parser.ReadReg16(); parser.ReadToken(TokenType.Comma); Register = parser.ReadReg16(); }
protected override void Parse(AsmParser parser) { Register = parser.ReadReg16(); }
protected override void Parse(AsmParser parser) { Register = parser.ReadReg16(); parser.ReadToken(TokenType.Comma); Value = parser.ReadByte(); }