Theherod
Programmer
- Jun 28, 2007
- 6
Hello,
I use assembly 16b for dos (tasm), and I'm looking for a way to check if a key was pressed. Something like ah=7/int 21h, but, instead of waiting for a key to be pressed, it will check if a key was pressed (and if it happened indeed, to get its ascii code).
I build a simulation, and I want to know if the the user has pressed some key, while the simulation ran. But I don't want it to stop the simulation each frame... (which is why I don't use ah=7/int 21h).
Any suggestion anyone? I think there's an interrupt for that, but I'm not sure...
Thanks a lot!
Best regards,
Gal.
I use assembly 16b for dos (tasm), and I'm looking for a way to check if a key was pressed. Something like ah=7/int 21h, but, instead of waiting for a key to be pressed, it will check if a key was pressed (and if it happened indeed, to get its ascii code).
I build a simulation, and I want to know if the the user has pressed some key, while the simulation ran. But I don't want it to stop the simulation each frame... (which is why I don't use ah=7/int 21h).
Any suggestion anyone? I think there's an interrupt for that, but I'm not sure...
Thanks a lot!
Best regards,
Gal.