News:

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

MASM32 int 05h to print screen

Started by loki_dre, April 15, 2008, 12:23:07 PM

Previous topic - Next topic

loki_dre

Hello,
Every time I try to use "int 05h" to print screen, my program can compile but it crashes once I run it.

PS:
Is MASM32 completely free to develop with?

Tedd

Who told you int 05h would print to the screen?

PS: Yes, pretty much.
No snowflake in an avalanche feels responsible.

hutch--

From my vague memorries of DOS it was either int 09h or int 40h that you uaed to display text to the console.

Neither will work in 32 bit protected mode windows and you need to use windows API calls to perform functions like this. Tell us what you are trying to write and we can probably point you in the right direction.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

loki_dre

http://www.ousob.com/ng/masm/ng64dfe.php             <---------------------- said that is the interrupt

I basically just need something that will capture the screen and save it to a memory location (preferable as a BMP) pointed by pMemory....

I tried using several other int functions and it always seems to crash


hutch--

loki,

The code examples are old 16 bit DOS, we have a 16 bit section but its different to 32 bit code. If you have any further questions, post them in the 16 bit DOS sub forum.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

MichaelW

For a 16-bit DOS application, how you go about capturing the contents of the screen would depend on the current video mode. Since you mention bitmap, I assume that your goal is to capture a graphics screen. If this is so, and you are allowed to select the mode, you should probably select VGA mode 13h because the memory model is much simpler than the other graphics modes.

http://www.osdever.net/FreeVGA/home.htm

eschew obfuscation