From 4c021c100a496f2ca5e2c1d8bc8a376c7bd94516 Mon Sep 17 00:00:00 2001 From: nickysn Date: Wed, 29 Apr 2020 23:30:43 +0000 Subject: [PATCH] + handle OT_REG8_C_PORT in taicpu.Matches git-svn-id: trunk@45183 - --- compiler/z80/aasmcpu.pas | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler/z80/aasmcpu.pas b/compiler/z80/aasmcpu.pas index 0329550cbe..ccfbb137b3 100644 --- a/compiler/z80/aasmcpu.pas +++ b/compiler/z80/aasmcpu.pas @@ -237,7 +237,12 @@ implementation result:=(oper.typ=top_reg) and (oper.reg=NR_I); OT_REG8_R: result:=(oper.typ=top_reg) and (oper.reg=NR_R); - {todo: OT_REG8_C_PORT} + OT_REG8_C_PORT: + result:=(oper.typ=top_ref) and + (((oper.ref^.base=NR_C) and (oper.ref^.index=NR_NO)) or + ((oper.ref^.base=NR_NO) and (oper.ref^.index=NR_C))) and + (oper.ref^.symbol=nil) and (oper.ref^.relsymbol=nil) and + (oper.ref^.offset=0); OT_REG16_IX: result:=(oper.typ=top_reg) and (oper.reg=NR_IX); OT_REG16_IY: