Article # 345, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
How should BIOS calls be made in GOC?
Q. How should BIOS calls be made in GOC? A. BIOS calls can be dangerous, as the GEOS kernel controls many of them (serial ports, timers, etc.). This will also limit your application to operate only on hardware that provides the necessary BIOS. With that said, you can use in-line assembly code to generate an interrupt. The syntax looks like this: SysLockBIOS(); asm { mov ax, 10 int 21h } SysUnlockBIOS(); Keep in mind that GEOS interrupts will not be processed. Thus your app will not thread or task switch. Try to keep your excursions in BIOS-land to a minimum in number and duration.