+ actually return the proper (HL) reference result in tcgz80.normalize_ref

git-svn-id: branches/z80@44893 -
This commit is contained in:
nickysn 2020-04-20 20:49:45 +00:00
parent 5c138c341f
commit 0d6e59e9ef

View File

@ -1209,9 +1209,8 @@ unit cgcpu;
end; end;
function tcgz80.normalize_ref(list: TAsmList; ref: treference; function tcgz80.normalize_ref(list: TAsmList; ref: treference;
const refopertypes: trefoperandtypes; out allocatedregs: tregisterlist const refopertypes: trefoperandtypes; out allocatedregs: tregisterlist): treference;
): treference;
var var
tmpref : treference; tmpref : treference;
l : tasmlabel; l : tasmlabel;
@ -1272,6 +1271,7 @@ unit cgcpu;
emit_mov(list,NR_H,NR_A); emit_mov(list,NR_H,NR_A);
ungetcpuregister(list,NR_A); ungetcpuregister(list,NR_A);
end; end;
reference_reset_base(result,NR_HL,0,ctempposinvalid,0,[]);
end end
else else
internalerror(2020042001); internalerror(2020042001);