delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/27/12:15:47

Message-ID: <00cd01c0108d$d5330e20$a7cb9e9d@grzesko>
From: =?iso-8859-2?Q?Grzegorz_Pato=B3a?= <gpatola AT lemon DOT ia DOT polsl DOT gliwice DOT pl>
To: <djgpp AT delorie DOT com>
Date: Sun, 27 Aug 2000 18:15:22 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2417.2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.

------=_NextPart_000_00CA_01C01052.C3D43180
Content-Type: text/plain;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

Hi,

I have some problem with interrupt routine. I'm using below functions to =
install it:

 _go32_dpmi_get_protected_mode_interrupt_vector(8, &old_handler)
 _go32_dpmi_chain_protected_mode_interrupt_vector(8, &new_handler)
 _go32_dpmi_set_protected_mode_interrupt_vector(8, &old_handler)

or

__dpmi_set_real_mode_interrupt_vector(8,&new_handler)
__dpmi_get_real_mode_interrupt_vector(8,&old_handler)

next I change clock tics of system timer

outportb(0x43, 0x34);
outportb(0x40, time & 0xff);
outportb(0x40, time >> 8);
=20
and finally I cant get more then 10000 tics per sec. Above this value my =
computer hanged up (AMD 350MHz)
but under a real mode in BC similar routine can reach sth about 70000.=20
It is possible to increse this value ???


________________________________________
Grzegorz Pato=B3a
email: ivan AT polsl DOT gliwice DOT pl
Alternative email: gpatola AT lemon DOT ia DOT polsl DOT gliwice DOT pl
ICQ# 1448779

------=_NextPart_000_00CA_01C01052.C3D43180
Content-Type: text/html;
	charset="iso-8859-2"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-2" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Arial CE" size=3D2>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CE" size=3D2>I have some problem with interrupt =
routine.=20
I'm using below functions to install it:</FONT></DIV>
<DIV><FONT face=3D"Arial CE" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CE"=20
size=3D2>&nbsp;_go32_dpmi_get_protected_mode_interrupt_vector(8,=20
&amp;old_handler)</FONT></DIV>
<DIV><FONT face=3D"Arial CE"=20
size=3D2>&nbsp;_go32_dpmi_chain_protected_mode_interrupt_vector(8,=20
&amp;new_handler)</FONT></DIV>
<DIV><FONT face=3D"Arial CE"=20
size=3D2>&nbsp;_go32_dpmi_set_protected_mode_interrupt_vector(8,=20
&amp;old_handler)<BR></FONT></DIV>
<DIV><FONT face=3D"Arial CE" size=3D2>or</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CE" size=3D2><FONT face=3D"Arial CE" =
size=3D2><FONT=20
face=3D"Arial CE"=20
size=3D2>__dpmi_set_real_mode_interrupt_vector(8,&amp;new_handler)</FONT>=
</FONT></FONT></DIV>
<DIV><FONT face=3D"Arial CE" size=3D2><FONT face=3D"Arial CE"=20
size=3D2>__dpmi_get_real_mode_interrupt_vector(8,&amp;old_handler)</FONT>=
<BR></FONT></DIV>
<DIV><FONT face=3D"Arial CE" size=3D2>next&nbsp;I change clock tics of =
system=20
timer</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CE" size=3D2>
<DIV><FONT face=3D"Arial CE" size=3D2>outportb(0x43, =
0x34);<BR>outportb(0x40, time=20
&amp; 0xff);<BR>outportb(0x40, time &gt;&gt; 8);</FONT></DIV>
<DIV><FONT face=3D"Arial CE" size=3D2>&nbsp;</DIV></FONT></FONT></DIV>
<DIV><FONT face=3D"Arial CE" size=3D2>and finally I cant get more then =
10000 tics=20
per sec. Above this value my computer hanged up (AMD =
350MHz)</FONT></DIV>
<DIV><FONT face=3D"Arial CE" size=3D2>but under a real mode in BC =
similar routine=20
can reach sth about 70000. </FONT></DIV>
<DIV><FONT face=3D"Arial CE" size=3D2>It is possible to increse this =
value=20
???</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CE" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CE"=20
size=3D2>________________________________________<BR>Grzegorz =
Pato=B3a<BR>email: <A=20
href=3D"mailto:ivan AT polsl DOT gliwice DOT pl">ivan AT polsl DOT gliwice DOT pl</A><BR>Altern=
ative=20
email: <A=20
href=3D"mailto:gpatola AT lemon DOT ia DOT polsl DOT gliwice DOT pl">gpatola AT lemon DOT ia DOT polsl.=
gliwice.pl</A><BR>ICQ#=20
1448779</FONT></DIV></BODY></HTML>

------=_NextPart_000_00CA_01C01052.C3D43180--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019