mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-10 13:59:34 +02:00
+ support the RST instruction in the Z80 internal asm writer
git-svn-id: trunk@45279 -
This commit is contained in:
parent
be26429159
commit
0a09359906
@ -763,6 +763,16 @@ implementation
|
||||
internalerror(2020050605);
|
||||
end;
|
||||
end;
|
||||
'ppp':
|
||||
begin
|
||||
for i:=0 to insentry^.ops-1 do
|
||||
if insentry^.optypes[i]=OT_IMM_RST then
|
||||
begin
|
||||
if oper[i]^.typ<>top_const then
|
||||
internalerror(2020050606);
|
||||
result:=Byte(oper[i]^.val shr 3) and $07;
|
||||
end;
|
||||
end;
|
||||
else
|
||||
internalerror(2020050409);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user