delorie.com/archives/browse.cgi | search |
From: | "florianx" <florianx AT drdos DOT org> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | port from BorlandC to DJGPP |
Date: | Mon, 5 Feb 2001 13:46:58 +0100 |
Organization: | Club Dr-DOS - www.drdos.org |
X-Newsreader: | Microsoft Outlook Express 4.71.1712.3 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.71.1712.3 |
Lines: | 36 |
Message-ID: | <3a7ea0ab$0$25062@SSP1NO25.highway.telekom.at> |
NNTP-Posting-Host: | 212.183.96.153 |
X-Trace: | newsreader01.vienna.highway.telekom.at 981377195 25062 212.183.96.153 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Hi! I ported apmlib 0.9 beta to DJGPP, but I couldn't port only one funktion. Maybe someone can help me? Borlandc: ============================= void Reboot (BOOL Warm) { void ((far *PProcedure)()) = MK_FP(0xFFFF,0); struct REGPACK Regs; if ( ! Warm) { Regs.r_ax = 0x1200; intr (0x16, &Regs); if (Regs.r_ax != 0x1200) /* AT MF-II Keyboard present */ outportb (0x64, 0xFE); } *(int far *) MK_FP(0x0040, 0x0072) = 0x1234 * Warm; (*PProcedure) (); } ================================== Thanks for your help! Florian -- "Oisdaunn, passt's auf...und losst's eich nix gfoin!!" -- Club Dr-DOS - the unofficial Lineo Dr-DOS page - http://www.drdos.org -- http://www.seal.de.vu - SEAL The official FreeDOS GUI project -- "I brauch kan Dokta...Mia hilft nur da Rock&Roll" - http://www.ostbahn.at
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |