Re: HELP::Redirecting DOS display output to memory location
- From: "wolfgang kern" <nowhere@xxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 16:36:56 +0200
"aveo" wrote:
| Hi all,
| I am working in DOS 6.22 enviornment.I need ASM source that will
| redirect dos display output to memory location.
| I know dos uses INT 21h ,function 40h do display string on standard
| output.
| I am writing a TSR that will put the screen data to memory.
| The part of hooking interrupt 21h & fn 40h is done by me.Only I want to
| put data to some memory location.
| Its a TSR. Plz help me out.
You may have read something wrong:
INT 21/40h (DOS 2+) "WRITE TO FILE OR DEVICE"
! usuallly used for disk-write !
(so your code may destroy files and/or FAT)
DOS got many functions which writes to screen, and it may also
direct write to screen in text mode, while it always have to use
INT10h in graphic mode.
So you might do better with graphic mode and hooking INT10h,
then filter out all the subfunctions which write text to screen
(this are only a few).
Look at RBIL for more details on interrupts and more:
http://www-2.cs.cmu.edu/afs/cs/user/ralf/pub/WWW/files
__
wolfgang
.
- References:
- Prev by Date: Re: Best Compiler
- Next by Date: Re: HAY Betov, still no support for GPL or LINUX, WHY ????
- Previous by thread: HELP::Redirecting DOS display output to memory location
- Index(es):
Relevant Pages
|