flat assembler
Message board for the users of flat assembler.

Index > OS Construction > How do you draw a background for the screen?

Author
Thread Post new topic Reply to topic
Redragon



Joined: 27 Nov 2004
Posts: 101
Location: U.S.
Redragon 17 Feb 2005, 03:42
This code sets the screen res to 640x480 and displays the bg color below.. Ive already got into protected mode and everything work but i think the problem is in this code..when it show up on the screen, it shows the color correctly, but it dosent make it full screen, it leaves a small black gap at the bottom..if i go into 1024x768 it leaves a black gap in the middle, im not sure whats wrong with it..thanks for the help!

Code:
mov   eax,00009999h 
               mov   ecx,480*640     
               mov   edi,[vesa_str]  ;defined in vesa file
               rep   stosd    
Post 17 Feb 2005, 03:42
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 17 Feb 2005, 17:00
Code:
mov   eax,00009999h mov   ecx,480*640     mov   edi,[vesa_str]   clirep  stosdsti    


Does that make a difference ?.
Post 17 Feb 2005, 17:00
View user's profile Send private message Reply with quote
Redragon



Joined: 27 Nov 2004
Posts: 101
Location: U.S.
Redragon 17 Feb 2005, 22:45
when i use that it dosent even show the screen, it attempts to, then the computer restarts.. its not an interupt problem
Post 17 Feb 2005, 22:45
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 18 Feb 2005, 02:38
So you have not set your 'IDT' up yet, and you have disabled interrupts ? .
I got a similar black gap at the bottom of screen in CdPod (which is 640x480), i covered it up with a fade, this was because i did not enable A20, maybe theres where your problem lies.
Post 18 Feb 2005, 02:38
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.