diff --git a/src/ca65/instr.c b/src/ca65/instr.c index 37217203a..8d1e96705 100644 --- a/src/ca65/instr.c +++ b/src/ca65/instr.c @@ -1298,10 +1298,16 @@ static void PutPCRel4510 (const InsDesc* Ins) static void PutBlockMove (const InsDesc* Ins) /* Handle the blockmove instructions (65816) */ { + ExprNode* Arg1 = Expression (); + Emit0 (Ins->BaseCode); - EmitByte (Expression ()); ConsumeComma (); + + /* The operands are written in Assembly code as source, destination; + ** but, they're assembled as . + */ EmitByte (Expression ()); + EmitByte (Arg1); }