: : : : 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