flat assembler
Message board for the users of flat assembler.

Index > OS Construction > VBE In Protected Mode?

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 27 Nov 2007, 21:47
pfranz: Can you please tell us where exactly is example of calling VESA from protected mode? couldn't find it...
Post 27 Nov 2007, 21:47
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4226
Location: vpcmpistri
bitRAKE 28 Nov 2007, 01:10
pfranz, looking over the code has been a little difficult, but I will give it more time. My problem is that I have no floppy drive. So, I'm using SYSLINUX to load the code into memory from a USB drive - which is FAT32 formated. SYSLINUX has many different ways to load files: COM, COM32, RAMDISK, etc. My first try was to just load HwTest as a ramdisk, but this didn't work.

Currenty, I'm going to remove the sector loading from the bootsector and create a flat file which SYSLINUX can load all at once into memory...like a large bootsector.
Post 28 Nov 2007, 01:10
View user's profile Send private message Visit poster's website Reply with quote
pfranz



Joined: 13 Jan 2007
Posts: 116
Location: Italy
pfranz 28 Nov 2007, 17:56
To vid:
It's in the module BIOSinit.asm, where all protected mode BIOS interfaces are initialized (VESA, APM) and tables (BIOS32, PCI ...) are sought.
To bitRAKE:
Yes, it's not very easy for anyone who is not in my mind, since I enjoy using tricks to reduce the number of source instructions. Strange way of amusing you say? Yes, you have to be patient ... If you take the time to read README.TXT it should be easier.
Of course I know that a lot of computers nowadays haven't got the floppy, that's why I made a procedure to write a bootable CD. I think that EVERY machine can boot EITHER from floppy OR from CD. The script is MAKECD.BAT, you should already know if you read README.TXT.
If you want to try another boot device, remember that my bootloader works with every device supporting INT13 floppy emulation (USB should, but I'm not sure), but for CD some slight modifications are required, so probably for USB too. See the sources and MAKECD.BAT
Post 28 Nov 2007, 17:56
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 28 Nov 2007, 18:52
pfranz: Got it, thanks a lot.

Do you think it would be possible to create 16bit selector in windows driver, and call BIOS using it?
Post 28 Nov 2007, 18:52
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 28 Nov 2007, 21:52
Hmm, theoretically it might be possible to create a 16bit pmode selector and use it, possibly with TSS iobitmask fuddling around... but of course this wouldn't work in 64bit mode, so it's a bit useless Smile
Post 28 Nov 2007, 21:52
View user's profile Send private message Reply with quote
pfranz



Joined: 13 Jan 2007
Posts: 116
Location: Italy
pfranz 30 Nov 2007, 10:11
I know very little about Windows programming, especially driver programming. I didn't even think it could be possible to use such low-level procedures in Windows ...
Post 30 Nov 2007, 10:11
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.