Skip to content

Instantly share code, notes, and snippets.

@tereshenkovav
Created June 22, 2026 12:12
Show Gist options
  • Select an option

  • Save tereshenkovav/29ac6e08681edc4771a54af67d80dbbc to your computer and use it in GitHub Desktop.

Select an option

Save tereshenkovav/29ac6e08681edc4771a54af67d80dbbc to your computer and use it in GitHub Desktop.
Пример функции, которая делает задержку Pascal DOS по абсолютному адресу, без обращений к прерываниям
procedure mydelay(ms:Integer) ;
var x,tick,cnt:longint ;
systimer:longint absolute $0040 : $006c ;
begin
tick:=Round(ms/55) ;
x:=systimer ;
cnt:=0 ;
while systimer<x+tick do Inc(cnt);
{ Write(cnt, ' ') ; }
end ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment