flat assembler
Message board for the users of flat assembler.

Index > DOS > VBE 3.0 PM-Interface initialization

Author
Thread Post new topic Reply to topic
Honk



Joined: 29 Aug 2007
Posts: 5
Honk 11 Sep 2007, 17:02
hi Folks,

I'm looking for a short Vesa Protected Mode Initialization routine for FASM (with all that LDT , Selectors Stuff). I hope, that someone already solved that task 'cause I have some basic ideas about that but don't want to get deeper in that development - I aim at coding beautiful Gfx-Intro stuff ..

Thanks and so long

honk

www.battlebytes.de
Post 11 Sep 2007, 17:02
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 11 Sep 2007, 20:27
Why not code it for DexOS ?, its as simple as
Code:
 ;----------------------------------------------------; ; Do realmode int (vesa).                            ; ;----------------------------------------------------;      mov   cx,0x4112   ;vesa mode  call  [SetVesaMode]   cmp   ah,1    je    VesaError1 ;----------------------------------------------------; ; Load vesa info.                                    ; ;----------------------------------------------------;   call [LoadVesaInfo]   mov   edi,VESA_Info   mov   ecx,193 cld   cli   rep   movsd   sti    
To set any vesa mode, your card supports, from pmode.
Post 11 Sep 2007, 20:27
View user's profile Send private message Reply with quote
Honk



Joined: 29 Aug 2007
Posts: 5
Honk 13 Sep 2007, 12:29
Hi,

DexOS is a really nice project. But intro coding for the Gfx szene is better done on "well known" systems like DOS or Windows.

It seems, that nobody has written a VBE PM Mode init so I'll do it on my own and post it here Cool

So long

Honk
Post 13 Sep 2007, 12:29
View user's profile Send private message Visit poster's website Reply with quote
sinsi



Joined: 10 Aug 2007
Posts: 789
Location: Adelaide
sinsi 13 Sep 2007, 12:47
Do all of your init stuff (checking modes, setting a linear mode) from RM and all you need is a descriptor for the vesa buffer - if you're going into PM anyway an extra descriptor is easy enough.
Post 13 Sep 2007, 12:47
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 13 Sep 2007, 18:08
I have done a demo that may help, it will run from Dos, just change one of the return to realmode by adding a exit to dos.
http://www.dex4u.com/demos/DemoVesa.zip
Note: i was called ASHLEY4 when i wrote it.

I hope you release the code so i can port it to DexOS, as a side note: you can run DexOS from ms-dos.
Post 13 Sep 2007, 18:08
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.