[Z88dk-commits] CVS: z88dk/src/z80asm z80instr.c,1.54,1.55

Bridge to the z88dk-commits mailing list
Post Reply
pauloscustodio

[Z88dk-commits] CVS: z88dk/src/z80asm z80instr.c,1.54,1.55

Post by pauloscustodio »

Update of /cvsroot/z88dk/z88dk/src/z80asm
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv23918

Modified Files:
z80instr.c
Log Message:
Accept both "ex af,af" and "ex af,af'"

Index: z80instr.c
===================================================================
RCS file: /cvsroot/z88dk/z88dk/src/z80asm/z80instr.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** z80instr.c 29 Mar 2014 00:33:29 -0000 1.54
--- z80instr.c 29 Mar 2014 01:19:41 -0000 1.55
***************
*** 228,240 ****
if ( GetSym() == TK_COMMA ) /* EX AF,AF' */
if ( GetSym() == TK_NAME )
! if ( CheckRegister16() == REG16_AF1 )
! {
append_byte( 0x08 );
inc_PC( 1 );
}
! else
! {
! error_illegal_ident();
! }
else
{
--- 228,243 ----
if ( GetSym() == TK_COMMA ) /* EX AF,AF' */
if ( GetSym() == TK_NAME )
! {
! switch ( CheckRegister16() )
! {
! case REG16_AF:
! case REG16_AF1:
append_byte( 0x08 );
inc_PC( 1 );
+ break;
+ default:
+ error_illegal_ident();
}
! }
else
{
***************
*** 1595,1598 ****
--- 1598,1604 ----
/*
* $Log$
+ * Revision 1.55 2014/03/29 01:19:41 pauloscustodio
+ * Accept both "ex af,af" and "ex af,af'"
+ *
* Revision 1.54 2014/03/29 00:33:29 pauloscustodio
* BUG_0044: binary constants with more than 8 bits not accepted


------------------------------------------------------------------------------
Post Reply