flat assembler
Message board for the users of flat assembler.

flat assembler > MenuetOS > vesa 1.2 graphic driver

Author
Thread Post new topic Reply to topic
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
I have a Cirrus Logic gd5430 video card, and this is the bank switch code
i have used in the file vesa12.inc

set_bank:
cmp al,[0fff2h]
je retsb
cli
mov [offf2h],al
push ax
push dx
shl ax,12 ;ah=al*16 granularity=4k
mov dx,974
mov al,9
out dx,ax
pop dx
pop ax
retsb:
ret


all is displayed correctly with the exception of rectangles of only one color
that look like this:
___________________________............................................................
_____________........................................................________________
................................................_________________________________
_____________________________________________________________
____________________________________________________________
____________________________........................................................_________________.............................................................__________ .................................................________________________________ _____________________________________________________________
_=black, not drawed
.=color
coul somebody helpme to find where is the problem.
the video mode i´m testing is 640*480 24bpp and 2048 bytes per scan line, bank size is 64kb whith granularity of 4kb
Post 16 Dec 2003, 11:00
View user's profile Send private message Visit poster's website 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 can attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.