GCC & vga,bitmap.c
-
I write bitmap.c display bitmap > 256 color on screen But I have VGA card on board.Result bad color. How to: display bitmap > 256 color on screen ? Palette have ...color ? Struct of bitmap: Struct tagBITMAP{ Word w,h; Byte *data; Byte palette[256*3]; }BITMAP; Or answer is:1. Desktop> click fải\properties\Setting\Display:Plug & Play on intel(R) 82845G GL/GE/PE/GV Graphics Controller Color Qualtily:Hightest(32 bit) 2.I change 16 bit to 32 bit.how to do ? I write boot.asm->compiler->strip header->not copy to floppy,I copy to CD.I do it ? :sigh: Floppy is old man,not use it Help me How to:compile this code with NASM 2. --End,vietnam not register on www.osdev.org. Please,register osdev for me.Account:TUAN_OS My Mail:thoong00biet@yahoo.com.vn
-
I write bitmap.c display bitmap > 256 color on screen But I have VGA card on board.Result bad color. How to: display bitmap > 256 color on screen ? Palette have ...color ? Struct of bitmap: Struct tagBITMAP{ Word w,h; Byte *data; Byte palette[256*3]; }BITMAP; Or answer is:1. Desktop> click fải\properties\Setting\Display:Plug & Play on intel(R) 82845G GL/GE/PE/GV Graphics Controller Color Qualtily:Hightest(32 bit) 2.I change 16 bit to 32 bit.how to do ? I write boot.asm->compiler->strip header->not copy to floppy,I copy to CD.I do it ? :sigh: Floppy is old man,not use it Help me How to:compile this code with NASM 2. --End,vietnam not register on www.osdev.org. Please,register osdev for me.Account:TUAN_OS My Mail:thoong00biet@yahoo.com.vn
General information on programming the VGA: http://www.osdever.net/FreeVGA/vga/vga.htm[^]
I am a lean mean ground beef machine!!!
-
I write bitmap.c display bitmap > 256 color on screen But I have VGA card on board.Result bad color. How to: display bitmap > 256 color on screen ? Palette have ...color ? Struct of bitmap: Struct tagBITMAP{ Word w,h; Byte *data; Byte palette[256*3]; }BITMAP; Or answer is:1. Desktop> click fải\properties\Setting\Display:Plug & Play on intel(R) 82845G GL/GE/PE/GV Graphics Controller Color Qualtily:Hightest(32 bit) 2.I change 16 bit to 32 bit.how to do ? I write boot.asm->compiler->strip header->not copy to floppy,I copy to CD.I do it ? :sigh: Floppy is old man,not use it Help me How to:compile this code with NASM 2. --End,vietnam not register on www.osdev.org. Please,register osdev for me.Account:TUAN_OS My Mail:thoong00biet@yahoo.com.vn
tuan1111 wrote:
I write boot.asm->compiler->strip header->not copy to floppy,I copy to CD.I do it ?
Why go to all that trouble when you can use virtualization? You can just build your OS and boot directly into it with the VM.
I am a lean mean ground beef machine!!!