video mode 12 (@ Beyond Infinity)

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

video mode 12 (@ Beyond Infinity)

Post by Pype.Clicker »

beyond infinity wrote: I 'm still figuring out how this mode 12 drawing stuff has to be done and this goes slooooooow - I'm low on coffee *yawn*
afaik, each bit of the color code is on a separate bitplane. so pixel (x,y) has its data at 0xa000 + (x+y*640)/8, on the 7-(x%8) th bit.

imho, the best approach for a transparent behaviour would be to provide a virtual buffer in which you'll use 1 byte per pixel, and then periodically probing the "dirty" bit on those pages and refreshing the appropriated video pages by producing the right video values at once.

it's a bit ugly, but at least it gives the programs the feeling that they're dealing with a regular pixmap, not with a weird multi-plane stuff where protected ports must be used to switch bitplanes.
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:video mode 12 (@ Beyond Infinity)

Post by distantvoices »

hm... the only one to write to video memory or handle video card ports in my os is and will be the video task... and yes I 'll use a method like the one you've suggested. No other program than the video task needs to know about this low level pixel plotting stuff...

all the others tell it what to do, thats it...

thanks for the idea :-)
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:video mode 12 (@ Beyond Infinity)

Post by Pype.Clicker »

beyond infinity wrote:
thanks for the idea :-)
hehe ... that'z bekauze i kan't wait until i implement it myzelf :-p
distantvoices
Member
Member
Posts: 1600
Joined: Wed Oct 18, 2006 11:59 am
Location: Vienna/Austria
Contact:

Re:video mode 12 (@ Beyond Infinity)

Post by distantvoices »

];-] *muuuahhahahahahaaaaaaaa*
... the osdever formerly known as beyond infinity ...
BlueillusionOS iso image
Post Reply