by ignite · 3y ago · 0 comments
https://archive.org/details/byte-magazine-1987-04/page/n151/...
{$K-}{ turn of checking for stack overf low }
program interrupttest;
type IoProcess = *integer :
var count: integer:
var timerhandler: IoProcess;
... {definitions of NewIoProcess and IoAttach }
procedure incrementer:
begin
count:=succ (count ) :
end;
begin
timerhandler:=NewIoProcess(Ofs(incrementer).1000):
count:=0;
ioAttach ($1C, timerhondler); | attach himerhondleich" user |
while true do
timer interrupt ( 1Ch )
begin
writeln (count );
Delay (100);
{ delay 100 milliseconds}
end; end.
No comments yet.