mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-21 12:01:40 +01:00
+ support pushing word-sized parameters in tcgz80.a_load_ref_cgpara
git-svn-id: branches/z80@44695 -
This commit is contained in:
parent
116f344050
commit
00f7fad1a6
@ -417,6 +417,18 @@ unit cgcpu;
|
||||
list.concat(taicpu.op_reg(A_INC,NR_SP));
|
||||
ungetcpuregister(list,NR_A);
|
||||
end;
|
||||
2:
|
||||
begin
|
||||
tmpreg:=getintregister(list,OS_16);
|
||||
a_load_ref_reg(list,paraloc^.size,pushsize,href,tmpreg);
|
||||
getcpuregister(list,NR_L);
|
||||
a_load_reg_reg(list,OS_8,OS_8,tmpreg,NR_L);
|
||||
getcpuregister(list,NR_H);
|
||||
a_load_reg_reg(list,OS_8,OS_8,GetNextReg(tmpreg),NR_H);
|
||||
list.concat(taicpu.op_reg(A_PUSH,NR_HL));
|
||||
ungetcpuregister(list,NR_H);
|
||||
ungetcpuregister(list,NR_L);
|
||||
end
|
||||
else
|
||||
internalerror(2020040803);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user