Fixed the order in which the 65816's block-move instructions' operands are written and assembled.
The source bank number is written first; but, assembled second. The destination bank is written second; but, assembled first.
This commit is contained in:
parent
cc5c0931a3
commit
eeb1b927ce
1 changed files with 7 additions and 1 deletions
|
@ -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 <destination> <source>.
|
||||
*/
|
||||
EmitByte (Expression ());
|
||||
EmitByte (Arg1);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue