mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 21:09:13 +02:00
* PrintChar and OpenChannel converted to pure assembler functions
git-svn-id: branches/z80@45135 -
This commit is contained in:
parent
fe05a87a27
commit
843024f3b7
@ -146,28 +146,24 @@ begin
|
|||||||
KeyPressed:=LastKey<>#0;
|
KeyPressed:=LastKey<>#0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure OpenChannel(Chan: Byte);
|
procedure OpenChannel(Chan: Byte);assembler;
|
||||||
begin
|
asm
|
||||||
asm
|
ld iy,(save_iy)
|
||||||
ld iy,(save_iy)
|
ld a, (Chan)
|
||||||
ld a, (Chan)
|
push ix
|
||||||
push ix
|
call 5633
|
||||||
call 5633
|
pop ix
|
||||||
pop ix
|
ld (save_iy),iy
|
||||||
ld (save_iy),iy
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure PrintChar(Ch: Char);
|
procedure PrintChar(Ch: Char);assembler;
|
||||||
begin
|
asm
|
||||||
asm
|
ld iy,(save_iy)
|
||||||
ld iy,(save_iy)
|
ld a, (Ch)
|
||||||
ld a, (Ch)
|
push ix
|
||||||
push ix
|
rst 16
|
||||||
rst 16
|
pop ix
|
||||||
pop ix
|
ld (save_iy),iy
|
||||||
ld (save_iy),iy
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure PrintLn;
|
procedure PrintLn;
|
||||||
|
Loading…
Reference in New Issue
Block a user