Created
June 22, 2026 12:12
-
-
Save tereshenkovav/29ac6e08681edc4771a54af67d80dbbc to your computer and use it in GitHub Desktop.
Пример функции, которая делает задержку Pascal DOS по абсолютному адресу, без обращений к прерываниям
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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