thanks for the code, it didnt work straight off but after 20 mins of hacking
it, i got it working :) thanks, one last question, this code clears the
memory but doesnt move the cursor to the top left hand corner of the
screen, how to i do this? can i use the gotoxy function or will that not
work in the kernel? i have afeeling that it wont work. what code do i need
to move the cursor to the top left hand corner? im sure its somthing simple
but since im new to this kernel hacking business im still getting used to
the linux kernel.
thanks again for the code.
edwin
----- Original Message -----
From: James <jvh(a)uclink4.berkeley.edu>
To: <openbios(a)elvis.informatik.uni-freiburg.de>
Sent: Wednesday, March 01, 2000 11:03 AM
Subject: Re: [OpenBIOS] asm code
> /*
> Since you are already in C after it uncompresses the kernel, you could
> do something like:
> */
>
> int i;
> void *vidmem = 0x0b8000;
>
> for (i = 0; i < 80*25*2; i++) { /* Clear an 80*25 screen */
> *(vidmem + i) = 0;
> }
>
> /*
> Something like that, at least; I've been doing way too much Java
> recently, I can't think straight..
> The harder part is writing something to the screen; letters are on the
> even bytes (0xb8000, 0xb8002, 0xb8004, etc), attributes are on the odd
> ones (0xb001, 0xb003...).
> - James
>
> > what code do i need to zero 0b8000 - 0bfff0.
> > thanks edwin
> > ----- Original Message -----
> > From: James <jvh(a)uclink4.berkeley.edu>
> > To: <openbios(a)elvis.informatik.uni-freiburg.de>
> > Sent: Monday, February 21, 2000 3:27 PM
> > Subject: Re: [OpenBIOS] asm code
> >
> >
> > > > hi sorry this is slightly off topic but i need some asm code to
clear
> > > > the screen in the linux kernel -- just after it says uncompressing
> > > > linux. how would i implement this in assembler, that would compile
> > > > under gas. thanks edwin
> > >
> > > By the time it says "uncompressing linux" it is already in 32 bit mode
C
> > > code (inflate.c). It is writing to the screen directly at memory
address
> > > 0b8000. To clear the screen, just zero 0b8000 - 0bfff0.
> > >
> > > > ps. will you eventually implement all the standard bios calls so
that
> > > > other os's such as dos etc will run under open bios? or will it be
> > > > just a bios for linux? thanks and good luck.
> > >
> > > I believe the goal is to get support for the 32 bit OSs that don't use
the
> > > BIOS, like WinNT, BeOS, Linux, BSD, and others (at least I think that
is
> > > the goal and I think those OSs don't use the BIOS).
> > >
> > > - James
> > >
> > > -
> > > To unsubscribe: send mail to majordomo(a)freiburg.linux.de
> > > with 'unsubscribe openbios' in the body of the message
> > >
> > -
> > To unsubscribe: send mail to majordomo(a)freiburg.linux.de
> > with 'unsubscribe openbios' in the body of the message
> >
>
> -
> To unsubscribe: send mail to majordomo(a)freiburg.linux.de
> with 'unsubscribe openbios' in the body of the message
>
-
To unsubscribe: send mail to majordomo(a)freiburg.linux.de
with 'unsubscribe openbios' in the body of the message