diff --git a/src/asm/asmy.y b/src/asm/asmy.y index e0e89b07..901b500d 100644 --- a/src/asm/asmy.y +++ b/src/asm/asmy.y @@ -1707,6 +1707,14 @@ z80_ldio : T_Z80_LDIO T_MODE_A comma op_mem_ind $2.nVal &= 0xFF; out_RelByte(&$2); } + | T_Z80_LDIO T_MODE_A comma T_MODE_C_IND + { + out_AbsByte(0xF2); + } + | T_Z80_LDIO T_MODE_C_IND comma T_MODE_A + { + out_AbsByte(0xE2); + } ; z80_ld : z80_ld_mem diff --git a/src/asm/globlex.c b/src/asm/globlex.c index d03d5b23..b9d7e96d 100644 --- a/src/asm/globlex.c +++ b/src/asm/globlex.c @@ -312,6 +312,7 @@ const struct sLexInitString lexer_strings[] = { {"sp", T_MODE_SP}, {"[c]", T_MODE_C_IND}, {"[$ff00+c]", T_MODE_C_IND}, + {"[$ff00 + c]", T_MODE_C_IND}, {"a", T_TOKEN_A}, {"b", T_TOKEN_B},