[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: writing to the screen
Hi james,
thanks for your reply.
I want to do this in C. I'm not sure if you are
familiar with this, but in dos there was a way to
allocate part of memory which belong to Video card and
after allocation, anything that you write in that part
of memory would appear on your screen.
I was wondering if there is a way like that in Linux??
regards,
Patrik
--- james@spunkysoftware.com wrote:
> If you're using assmbly language, you can call C
> functions to write to the
> screen, arguments are pushed onto the stack from
> right to left, and you add
> 4 to esp for every argument you pushed onto the
> stack, and if the function
> returns a value it will be in eax for you.
>
> Here is an example snippet for NASM:
>
> fmt db "%s",0
> message db "A Message From printf...",10,0
>
> ...
>
> push dword message
> push dword fmt
> call printf
> add esp, 8
>
>
> You don't need the format string in this example
> though.
>
>
> ----- Original Message -----
> From: "patrick dey" <parviz_linux2@yahoo.com>
> To: <kernelnewbies@nl.linux.org>
> Sent: Friday, July 13, 2001 1:25 PM
> Subject: writing to the screen
>
>
> > Hi all,
> >
> > could some one please tell me how to write to
> screen.
> > I just started low level programming with linux.
> > any usefull links??
> >
> > thanks
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get personalized email addresses from Yahoo! Mail
> > http://personal.mail.yahoo.com/
> > -
> > Kernelnewbies: Help each other learn about the
> Linux kernel.
> > Archive:
> http://mail.nl.linux.org/kernelnewbies/
> > IRC Channel: irc.openprojects.net /
> #kernelnewbies
> > Web Page: http://www.kernelnewbies.org/
> >
> >
>
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/