?
Solved

Assembly - Displaying Graphics (Gif or Bitmap)

Posted on 2003-03-13
5
Medium Priority
?
328 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The Summer 2017 Scholarship Winners have been announced!
Hey fellow admins! This time, I have a little fairy tale for you. As many tales do, it starts boring and then gets pretty gory. I hope you like it. TL;DR: It is about an important security matter, you should read it if you run or administer Windows …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

771 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