Page 1 of 1

Show image at boot? (like Linux)

Posted: Mon Jun 16, 2003 11:00 pm
by St8ic
It seems very Newbie-ish of me to ask this, but is there any ASM code I could put in my boot code to display my .gif logo while booting? It's a floppy-bootable OS and the logo would be logo.gif.

Thanks alot!
St8ic.

RE:Show image at boot? (like Linux)

Posted: Mon Jun 16, 2003 11:00 pm
by carbonBased
This is not a trivial matter.

You must enter a graphics mode, read and interpret the .GIF file format, and blit it to the screen.  There is no "code-plugin" for this... at least not for OSDev purposes.

Otherwise, if in text mode, you must change the visual representation of some ascii codes, and arrange the characters in such a way that they appear to be graphical.

For code examples, take a look at the patched Grub that RedHat uses, or any low-level graphics drivers for the OSs on this list.

Jeff

RE:Show image at boot? (like Linux)

Posted: Mon Jun 16, 2003 11:00 pm
by St8ic
I went into this realizing that it wouldn't be easy, but surely some other people's projects do employ images? There must be some source code from other people doing something like this! If anyone has some resources (source code?) about doing this it would be very much appreciated!