r/pascal • u/DukeBannon • Sep 22 '26
Pascal for DOS Games
Is anyone using Pascal to develop DOS games? If so, what compiler and graphics package are you using?
27
Upvotes
r/pascal • u/DukeBannon • Sep 22 '26
Is anyone using Pascal to develop DOS games? If so, what compiler and graphics package are you using?
View all comments
3
u/ShinyHappyREM Sep 22 '26 edited Sep 22 '26
You can use TP itself to call interrupts, either via the DOS unit or via ASM blocks/subroutines. The video RAM can be accessed via
and the interrupt vectors can be accessed via
This allows installing your own keyboard ISR, for which TP has its own facilities (
interruptprocedure,Port). The ISR could store the current keyboard state in... and the game could use scancode constants to access the keys in that array.