From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alain Subject: How to free CPU time? Date: Thu, 04 Aug 2005 18:41:03 -0300 Message-ID: <42F28B6F.8070601@pobox.com> References: <42EB4200.6040300@aknet.ru> <42EFD655.4060404@pobox.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <42EFD655.4060404@pobox.com> Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Dosemu What is the best method to release cpu usage inside dosemu? The problem is: I have made a program that runs in a loop checking keyboard, mouse, network, etc.. It cannot call bios read key function and lock there. But I can release time in the event loop. Should I do HLT, call int28 many times? If I do HLT, will it restart after "interrupt" events like keyboard, mouse, packet driver, timer (54ms), etc? thanks, Alain PS: I still have the problem below, BC31 is important because most of FreeDOS itself is made with it... > 1) The cursor is fine, but completely disapears in Borland C 3.1 in the > IDE. This happens with any number of lines and with or without "$_X_font > = "vga""