Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4095
Number of posts: 14004

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Interrupt $1C Posted by Gaashius on 30 Mar 2005 at 3:48 AM
Hi everybody, this question may be a bit expert. It may be a little hardware-assembly oriented, too. Look at this code, written in TP 7.0:
uses
 gastext,gaskeybd;

procedure i1; interrupt;
begin
 writechr(random(20),random(20),white,'A');
end;

begin
 setintvec($1C,@i1);
 repeat
 until key[kspace];
end.

Why does this interrupt i1 run only at every 54/55th milliseconds?
Or does anyone know any else free like $1C?

PS: The units included are existing, and the writechr routine runs about 250000 times a second on a ~200MHz(198.45) computer.

Thanks for any help.
Report
Re: Interrupt $1C Posted by Phat Nat on 30 Mar 2005 at 6:28 PM
: Hi everybody, this question may be a bit expert. It may be a little hardware-assembly oriented, too. Look at this code, written in TP 7.0:
:
: uses
:  gastext,gaskeybd;
: 
: procedure i1; interrupt;
: begin
:  writechr(random(20),random(20),white,'A');
: end;
: 
: begin
:  setintvec($1C,@i1);
:  repeat
:  until key[kspace];
: end.
: 

: Why does this interrupt i1 run only at every 54/55th milliseconds?
: Or does anyone know any else free like $1C?
:
: PS: The units included are existing, and the writechr routine runs about 250000 times a second on a ~200MHz(198.45) computer.
:
: Thanks for any help.
:

Int $1c runs at a constant 18.206 times/second. Are you looking for something that will run at the speed of the machine? Int $1C is meant to keep a constant speed across different platforms.


Hope this helps,

Phat Nat

Report
Re: Interrupt $1C Posted by Gaashius on 31 Mar 2005 at 7:40 AM
: : Hi everybody, this question may be a bit expert. It may be a little hardware-assembly oriented, too. Look at this code, written in TP 7.0:
: :
: : uses
: :  gastext,gaskeybd;
: : 
: : procedure i1; interrupt;
: : begin
: :  writechr(random(20),random(20),white,'A');
: : end;
: : 
: : begin
: :  setintvec($1C,@i1);
: :  repeat
: :  until key[kspace];
: : end.
: : 

: : Why does this interrupt i1 run only at every 54/55th milliseconds?
: : Or does anyone know any else free like $1C?
: :
: : PS: The units included are existing, and the writechr routine runs about 250000 times a second on a ~200MHz(198.45) computer.
: :
: : Thanks for any help.
: :
:
: Int $1c runs at a constant 18.206 times/second. Are you looking for something that will run at the speed of the machine? Int $1C is meant to keep a constant speed across different platforms.
:
:
: Hope this helps,
:
: Phat Nat
:
:

Thanks Phat Nat,

I'm looking for ints that are free for use. I thought $1C is a free int... could you help me?
Report
Re: Interrupt $1C Posted by Phat Nat on 31 Mar 2005 at 9:51 PM
: : : Hi everybody, this question may be a bit expert. It may be a little hardware-assembly oriented, too. Look at this code, written in TP 7.0:
: : :
: : : uses
: : :  gastext,gaskeybd;
: : : 
: : : procedure i1; interrupt;
: : : begin
: : :  writechr(random(20),random(20),white,'A');
: : : end;
: : : 
: : : begin
: : :  setintvec($1C,@i1);
: : :  repeat
: : :  until key[kspace];
: : : end.
: : : 

: : : Why does this interrupt i1 run only at every 54/55th milliseconds?
: : : Or does anyone know any else free like $1C?
: : :
: : : PS: The units included are existing, and the writechr routine runs about 250000 times a second on a ~200MHz(198.45) computer.
: : :
: : : Thanks for any help.
: : :
: :
: : Int $1c runs at a constant 18.206 times/second. Are you looking for something that will run at the speed of the machine? Int $1C is meant to keep a constant speed across different platforms.
: :
: :
: : Hope this helps,
: :
: : Phat Nat
: :
: :
:
: Thanks Phat Nat,
:
: I'm looking for ints that are free for use. I thought $1C is a free int... could you help me?
:

You can adjust Int $1C, but it controls your system clock, so if you're not careful, you can throw your system Time out of wack. I didn't get too heavy into the timer adjustments, but check out HelpPC, it has alot of useful information such as ASM commands, interrupts & memory locations. It can be found here:
http://members.tripod.com/~oldboard/assembly/helppc21.zip

Good luck,
Phat Nat

Report
Re: Interrupt $1C Posted by Gaashius on 1 Apr 2005 at 5:39 AM
: : : : Hi everybody, this question may be a bit expert. It may be a little hardware-assembly oriented, too. Look at this code, written in TP 7.0:
: : : :
: : : : uses
: : : :  gastext,gaskeybd;
: : : : 
: : : : procedure i1; interrupt;
: : : : begin
: : : :  writechr(random(20),random(20),white,'A');
: : : : end;
: : : : 
: : : : begin
: : : :  setintvec($1C,@i1);
: : : :  repeat
: : : :  until key[kspace];
: : : : end.
: : : : 

: : : : Why does this interrupt i1 run only at every 54/55th milliseconds?
: : : : Or does anyone know any else free like $1C?
: : : :
: : : : PS: The units included are existing, and the writechr routine runs about 250000 times a second on a ~200MHz(198.45) computer.
: : : :
: : : : Thanks for any help.
: : : :
: : :
: : : Int $1c runs at a constant 18.206 times/second. Are you looking for something that will run at the speed of the machine? Int $1C is meant to keep a constant speed across different platforms.
: : :
: : :
: : : Hope this helps,
: : :
: : : Phat Nat
: : :
: : :
: :
: : Thanks Phat Nat,
: :
: : I'm looking for ints that are free for use. I thought $1C is a free int... could you help me?
: :
:
: You can adjust Int $1C, but it controls your system clock, so if you're not careful, you can throw your system Time out of wack. I didn't get too heavy into the timer adjustments, but check out HelpPC, it has alot of useful information such as ASM commands, interrupts & memory locations. It can be found here:
: http://members.tripod.com/~oldboard/assembly/helppc21.zip
:
: Good luck,
: Phat Nat
:
:


Thanks for help, Phat Nat! Can I count on you in the future? I mean, in questions like this... I should written this into an ASM msg. board... thanks again
Report
Re: Interrupt $1C Posted by dolev9 on 14 Apr 2005 at 11:29 AM
hey there

1) here is a great interrupt list site for your help.
http://lrs.fmi.uni-passau.de/support/doc/interrupt-57/INT.HTM

2) i know only few interrupt that happen in special events.
$1c runs 18.2 times every seconds.
9 runs every keyboard press
5 runs every time ctrl+printscrm pressed
$23 runs rund when ctrl+c pressed
$24 runs when dos error jumps

and if you need help send mail to me at dolevsh@hotmail.com


dolev

Report
Re: Interrupt $1C Posted by Gaashius on 15 Apr 2005 at 5:28 AM
: hey there
:
: 1) here is a great interrupt list site for your help.
: http://lrs.fmi.uni-passau.de/support/doc/interrupt-57/INT.HTM
:
: 2) i know only few interrupt that happen in special events.
: $1c runs 18.2 times every seconds.
: 9 runs every keyboard press
: 5 runs every time ctrl+printscrm pressed
: $23 runs rund when ctrl+c pressed
: $24 runs when dos error jumps
:
: and if you need help send mail to me at dolevsh@hotmail.com
:
:
: dolev
:
:
Hi Dolev9,

Thanks for the link. More help is just more experience.

Auf viedersehen!

****************
Any questions? Just ask!

GAASHIUS





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.