* Which function handles copying into the video ram?
@ 2009-05-28 21:12 Ingo Brueckl
2009-05-29 19:47 ` Bart Oldeman
0 siblings, 1 reply; 5+ messages in thread
From: Ingo Brueckl @ 2009-05-28 21:12 UTC (permalink / raw)
To: linux-msdos
Hi,
I have an old DOS programm that runs fine with dosemu, but the output of a
few characters is strange due to some reasons that aren't important to the
problem.
I assume that the program does its video output by copying directly into the
vga graphics memory (text mode), because it is (and always was) very speedy.
What I'd like to do now: If the programs is going to copy some certain
characters with some certain color attribute to the screen, I want to change
the character, e. g. I need to hook into the dosemu function that is called
for 'copying into the video ram'.
Could someone please tell me where I can find this function and what its name
is?
Thank you very much.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Which function handles copying into the video ram?
2009-05-28 21:12 Which function handles copying into the video ram? Ingo Brueckl
@ 2009-05-29 19:47 ` Bart Oldeman
2009-05-31 6:53 ` Ingo Brueckl
0 siblings, 1 reply; 5+ messages in thread
From: Bart Oldeman @ 2009-05-29 19:47 UTC (permalink / raw)
To: Ingo Brueckl, dosemu
2009/5/28 Ingo Brueckl <ib@wupperonline.de>:
> I assume that the program does its video output by copying directly into the
> vga graphics memory (text mode), because it is (and always was) very speedy.
>
> What I'd like to do now: If the programs is going to copy some certain
> characters with some certain color attribute to the screen, I want to change
> the character, e. g. I need to hook into the dosemu function that is called
> for 'copying into the video ram'.
>
> Could someone please tell me where I can find this function and what its name
> is?
Perhaps you are looking for
src/env/video/text.c
static void draw_string(int x, int y, char *text, int len, Bit8u attr)
In this file are the routines that read the video ram. But DOS
programs just write into the video ram directly, there is no DOSEMU
routine involved there, it's just a chunk of memory that DOSEMU reads
at intervals to update the screen.
Bart
^ permalink raw reply [flat|nested] 5+ messages in thread
* Which function handles copying into the video ram?
2009-05-29 19:47 ` Bart Oldeman
@ 2009-05-31 6:53 ` Ingo Brueckl
0 siblings, 0 replies; 5+ messages in thread
From: Ingo Brueckl @ 2009-05-31 6:53 UTC (permalink / raw)
To: Bart Oldeman; +Cc: linux-msdos
Bart Oldeman writes:
> But DOS programs just write into the video ram directly, there is no
> DOSEMU routine involved there, it's just a chunk of memory that DOSEMU
> reads at intervals to update the screen.
I see. Now I understand why I couldn't find a routine to hook in.
> Perhaps you are looking for
> src/env/video/text.c
> static void draw_string(int x, int y, char *text, int len, Bit8u attr)
This is exactly what I was looking for!
Thank you so very much for your kind help.
I could now make the desired screen output manipulation making my old dos
editor to run with dosemu under Linux as if it were written for Linux.
Again, thanks a lot.
Ingo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Which function handles copying into the video ram?
@ 2009-05-29 5:57 Ingo Brueckl
0 siblings, 0 replies; 5+ messages in thread
From: Ingo Brueckl @ 2009-05-29 5:57 UTC (permalink / raw)
To: linux-msdos
Manfred Scherer wrote:
> maybe function tty_char_out() is the right place for your hook:
No, unfortunately it isn't. I already checked this, and output isn't done
there.
BTW, what I forgot to mention: I'm talking from xdosdemu, e. g. the program
runs in a X window (if that matters).
Ingo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Which function handles copying into the video ram?
@ 2009-05-28 14:47 Manfred Scherer
0 siblings, 0 replies; 5+ messages in thread
From: Manfred Scherer @ 2009-05-28 14:47 UTC (permalink / raw)
To: linux-msdos
Hi Ingo,
maybe function tty_char_out() is the right place for your hook:
src/base/bios/int10.c
void tty_char_out(unsigned char ch, int s, int attr)
Manfred
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-05-31 6:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-28 21:12 Which function handles copying into the video ram? Ingo Brueckl
2009-05-29 19:47 ` Bart Oldeman
2009-05-31 6:53 ` Ingo Brueckl
-- strict thread matches above, loose matches on Subject: below --
2009-05-29 5:57 Ingo Brueckl
2009-05-28 14:47 Manfred Scherer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox