News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Interrupts

Started by realtyu, April 26, 2005, 02:19:49 PM

Previous topic - Next topic

realtyu

I cant use some interrupts in MASM


I take memory reference error.
I think Im using Dos interrupts
can I use any interrupt for W32?

http://www.emu8086.com/assembly_language_tutorial_assembler_reference/supported_interrupts.html
here are INT descriptions

mnemonic

As far as I know you can't use interrupts in a real W32 prog, you'll have to use the WIN32-API.
If you build DOS exes (you'll need the old linker therefore; I don't mean WIN32 console exes) you can use some interrupts, but not all.
Be kind. Everyone you meet is fighting a hard battle.--Plato
-------
How To Ask Questions The Smart Way

Tedd

Depending on what you want to do, there are functions available that have replaced what the INTs did in DOS.
If you want something specific: shout :lol
No snowflake in an avalanche feels responsible.

sand_man

Quote
there are functions available that have replaced what the INTs did in DOS.

I knew that it was not possible to call interrupts with a 32-bit assembler, but that confused me as how do you get things done? I'm really only interested in writing console apps and not Win32 GUI apps. So where would I find the "functions available that have replaced what the INTs did in DOS" ?

AeroASM

Use the API called GetStdHandle. Then use WriteFile with that handle.

MichaelW

eschew obfuscation

hutch--

realtyu,

If you are interested in writing win32 console apps and don't yet have the practice writing runtime library components for doing so, try the console mode macros in MASM32. They are designed to take the hack work out of console mode apps.


    cls
    print "text"
    mov lpstring, input("Type text here : ")

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php