Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-05

Access BIOS from fpc

6 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Paul Aviles

Hello all,

Is it possible to access the PC BIOS from FPC?
I want to create a fpc program to read the name and version of the BIOS or maybe even change some settings like boot from cdrom or IDE or PXE using FPC. The PC has Phoenix bios, is that possible?

Thanks

Paul Anthony Aviles

Thomas Schatzl
to Paul Aviles

Hello,

Show quoted text 6 lines
Is it possible to access the PC BIOS from FPC? I want to create a fpc program to read the name and version of the BIOS or maybe even change some settings like boot from cdrom or IDE or PXE using FPC. The PC has Phoenix bios, is that possible?

Depends on the platform you're compiling for, the type of access required and the operating system the program will run on.

For the go32v2 - target, read the go32 unit documentation about accessing DOS memory, this might help.
For the others it depends highly on the operating system (as it is with DOS/go32) and the API calls offered - but generally speaking the answer is "no" without special preparations and/or knowledge of OS internals (this is not the fault of the compiler ;-).

If you do extensive manipulation, and limit yourselves to the DOS platform I recommend using a native 16 bit compiler just because FPC programs introduce lots of unnecessary overhead. Iirc Borland gives away its TP/BP7(?) for free....

Regards,
Thomas

... another 2 cents ...

Marc Santhoff
to Paul Aviles: Is it possible to access the PC BIOS from FPC? I want to create a fpc program to read the…
Show quoted text 6 lines
Hello all, Is it possible to access the PC BIOS from FPC? I want to create a fpc program to read the name and version of the BIOS or maybe even change some settings like boot from cdrom or IDE or PXE using FPC. The PC has Phoenix bios, is that possible?

AFAIR you only have to talk to some io-port or reserved mem-adresses.

If you find the exact information on this, fpc might let you do it ... ;)

Marc

Larry Stahl
to Thomas Schatzl: Depends on the platform you're compiling for, the type of access required and the…

I know this may not be the correct place for my problem, any directions would be gratefully accepted. I installed DevPas and Gnu Pascal then just tried to compile and execute the 'default' program that it came with. I keep getting a compile failure with the error "error in resource file".

Is anyone familiar with this setup? I'd sure appreciate any help.

Thanks,
Larry

---
[This E-mail scanned for viruses]

Marco van de Voort
to Larry Stahl
Show quoted text 6 lines
I know this may not be the correct place for my problem, any directions would be gratefully accepted. I installed DevPas and Gnu Pascal then just tried to compile and execute the 'default' program that it came with. I keep getting a compile failure with the error "error in resource file". Is anyone familiar with this setup? I'd sure appreciate any help.

Nope, try the Dev Pascal with FPC version. It should work ok, it is used a lot in education.

Larry Stahl
to Marco van de Voort

Thank-you,
Larry

Earlier message 30 lines
----- Original Message ----- From: "Marco van de Voort" To: Sent: Wednesday, May 12, 2004 1:26 AM Subject: Re: [fpc-pascal]Fpc and DevPas Problems > > I know this may not be the correct place for my problem, any directions > > would be gratefully accepted. I installed DevPas and Gnu Pascal then just > > tried to compile and execute the 'default' program that it came with. I > > keep getting a compile failure with the error "error in resource file". > > > > Is anyone familiar with this setup? I'd sure appreciate any help. > > Nope, try the Dev Pascal with FPC version. It should work ok, it is used > a lot in education. > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > --- > [This E-mail scanned for viruses] > > > --- [This E-mail scanned for viruses]