Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Assembly - Displaying Graphics (Gif or Bitmap)

Posted on 2003-03-13
5
Medium Priority
?
334 Views
Last Modified: 2006-11-17
I've been coding a small Operating System (wheeee!!!) and, well, I wanna display a logo on bootup. I've been searching google and all over the place for help on this. I can't find how to display a bitmapped graphic or at least a gif!


Info:
I have Assembly creating the printf() commands and such for my .c program that runs part of the OS, so I need to have a way to either do it in ASM or in C...
0
Comment
Question by:Morph007x2b
  • 3
  • 2
5 Comments
 
LVL 11

Expert Comment

by:dimitry
ID: 8134216
You can try to use the same method that is used in Linux
to print penguin logo during the boot:
http://www.arnor.net/linuxlogo/
http://www.cc.jyu.fi/~juhtolv/linux-sticker/
http://lxr.linux.no/source/drivers/video/fbcon.c

0
 
LVL 11

Expert Comment

by:dimitry
ID: 8134261
Take a look at this program. It draws in real mode while
screen, but it shows how to fill graphic video buffer.
http://asmsource.8k.com/files/white.asm.txt
0
 
LVL 1

Author Comment

by:Morph007x2b
ID: 8136699
Eh? Your saying I have to do it pixel by pixel?!

If so, how would I use that code (from dimitry) to make a lil code equivlent to QBasic's for loop to read Data from a file?

IE:

Read:

0001
0010
0100
1000

Which will give me a diagnol line.....If this is impossible, then state it please :).
0
 
LVL 11

Accepted Solution

by:
dimitry earned 1000 total points
ID: 8137579
The simplest way is to do the job pixel by pixel.
You are talking about small OS... :)
Also during the boot your resources are usually restricted.
0
 
LVL 1

Author Comment

by:Morph007x2b
ID: 8138447
Well, thankx. I'll accept that as an answer.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Choosing the right mix of apps is very much necessary for CPAs for making the most of the latest technology through which they can boost their growth.
Herein one will find an aggregate of some of my experience building and deploying virtualization stacks both in standalone, clustered Hyper-V, clustered Hyper-V with a Scale-Out File Server (SOFS) backend, and Storage Spaces Direct (S2D).
Integration Management Part 2
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses
Course of the Month13 days, 21 hours left to enroll

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question