mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 02:28:22 +02:00
+ actually return the proper (HL) reference result in tcgz80.normalize_ref
git-svn-id: branches/z80@44893 -
This commit is contained in:
parent
5c138c341f
commit
0d6e59e9ef
@ -1209,9 +1209,8 @@ unit cgcpu;
|
||||
end;
|
||||
|
||||
|
||||
function tcgz80.normalize_ref(list: TAsmList; ref: treference;
|
||||
const refopertypes: trefoperandtypes; out allocatedregs: tregisterlist
|
||||
): treference;
|
||||
function tcgz80.normalize_ref(list: TAsmList; ref: treference;
|
||||
const refopertypes: trefoperandtypes; out allocatedregs: tregisterlist): treference;
|
||||
var
|
||||
tmpref : treference;
|
||||
l : tasmlabel;
|
||||
@ -1272,6 +1271,7 @@ unit cgcpu;
|
||||
emit_mov(list,NR_H,NR_A);
|
||||
ungetcpuregister(list,NR_A);
|
||||
end;
|
||||
reference_reset_base(result,NR_HL,0,ctempposinvalid,0,[]);
|
||||
end
|
||||
else
|
||||
internalerror(2020042001);
|
||||
|
Loading…
Reference in New Issue
Block a user