Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

old masm code

cecio
Novice
473 Views
hi,
i'm tying to re-use same routines in assembler that use INT 22 (16h) interrupt to test keyboard usage from a fortran main.
the old version was written in microsoft fortran for dos and microsoft macro assembler 5.1.
now i have CVF 6.6 and Masm 6.14.
The program crashes at instruction INT 22 in the assembler subroutine.
I use "console application" project.
Is there something ican do or i have to forget my old programs?:smileysad:
thanks
cecio
0 Kudos
2 Replies
Steven_L_Intel1
Employee
473 Views
You have to forget the old code, which assumed a DOS environment. There are library routines provided to test for unsolicited console input.
0 Kudos
Jugoslav_Dujic
Valued Contributor II
473 Views
...namely, GetAsyncKeyState, GetKeyboardState (USE DFWIN).
Jugoslav
0 Kudos
Reply