Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

old masm code

cecio
Novice
788 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
788 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
788 Views
...namely, GetAsyncKeyState, GetKeyboardState (USE DFWIN).
Jugoslav
0 Kudos
Reply