News:

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

Write a TSR - NOT in dos-mode?

Started by sittingduck, June 07, 2008, 07:11:56 PM

Previous topic - Next topic

sittingduck

Is that possible?
Coz I only see examples in 16-bits code???

Please point me in the right direction...




hutch--

sittingduck,

In a hardware multitasking environment, every task running on the machine can sit and wait like a DOS TSR and it does not even need to take control of the machine to do it. a TSR was a crude method of live task switching in a single task non-re-entrant environment like 16 bit DOS. If you start any normal window in 32 bit windows, if its not processing anything, it idles using no processwor resource and the system is designed to do that.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

sittingduck

Thanks.
And the same goes for IRQ:s i guess?
Or can you show me a simple IRQ Routine in 32-bit?



hutch--

IRQs were addresses for hardware on earlier DOS/Windows machines but these days this information is usually configured by the BIOS/OS. To do this type of stuff, mainly if you are a hardware supplier, you write a device driver for specific devices on each OS version but they are no joy to do and very complex in design.

I know its a bit hard if you come from a DOS background but much of this stuff no longer needs to be done, you can concentrate on application design unless you are writing your own OS.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php