flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
AsmGuru62 10 Oct 2011, 16:31
I am not sure I understand your question.
DOS is 16-bit OS, so it does not have any 32-bit operations. If you want to use console I/O and use files in Windows - you need to use Windows API - it includes all functions for console and file operations: Take a look here (paste that full link into browser): http://msdn.microsoft.com/en-us/library/aa383686(v=vs.85).aspx Section Console has functions for console I/O. You can even use colors like DOS has! Section File Management has everything to do with files. |
|||
![]() |
|
Kazyaka 10 Oct 2011, 17:20
AsmGuru62,
thank you for reply. My wrong about DOS. This link is very useful. I've one question: 21h operations are faster than using DLL, yes? |
|||
![]() |
|
AsmGuru62 10 Oct 2011, 17:24
21h operations are not valid in Windows.
Only API is now used to do the stuff which 21h was doing. When you start the old DOS program in Windows - it gets loaded into NTVDM.EXE - the DOS emulator, so it does not run on native Windows. When you create a native Windows EXE using FASM PE Format - it is not DOS, so it cannot use 21h stuff - it will crash if you try it. In fact it will crash if you use any of old DOS interrupts: 16h, 10h or some other stuff. |
|||
![]() |
|
Kazyaka 10 Oct 2011, 17:32
Thanks again! Now I understand everything.
Topic to close. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.