Interrupt $1C - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Interrupt $1C

GaashiusGaashius Posts: 349Member
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:
[code]
uses
gastext,gaskeybd;

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

begin
setintvec($1C,@i1);
repeat
until key[kspace];
end.
[/code]
Why does this interrupt i1 run only at every [red]54/55th milliseconds[/red]?
Or does anyone know any else free like [green]$1C[/green]?

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.

Comments

  • Phat NatPhat Nat Posts: 757Member
    : 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:
    : [code]
    : uses
    : gastext,gaskeybd;
    :
    : procedure i1; interrupt;
    : begin
    : writechr(random(20),random(20),white,'A');
    : end;
    :
    : begin
    : setintvec($1C,@i1);
    : repeat
    : until key[kspace];
    : end.
    : [/code]
    : Why does this interrupt i1 run only at every [red]54/55th milliseconds[/red]?
    : Or does anyone know any else free like [green]$1C[/green]?
    :
    : 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

  • GaashiusGaashius Posts: 349Member
    : : 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:
    : : [code]
    : : uses
    : : gastext,gaskeybd;
    : :
    : : procedure i1; interrupt;
    : : begin
    : : writechr(random(20),random(20),white,'A');
    : : end;
    : :
    : : begin
    : : setintvec($1C,@i1);
    : : repeat
    : : until key[kspace];
    : : end.
    : : [/code]
    : : Why does this interrupt i1 run only at every [red]54/55th milliseconds[/red]?
    : : Or does anyone know any else free like [green]$1C[/green]?
    : :
    : : 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?
  • Phat NatPhat Nat Posts: 757Member
    : : : 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:
    : : : [code]
    : : : uses
    : : : gastext,gaskeybd;
    : : :
    : : : procedure i1; interrupt;
    : : : begin
    : : : writechr(random(20),random(20),white,'A');
    : : : end;
    : : :
    : : : begin
    : : : setintvec($1C,@i1);
    : : : repeat
    : : : until key[kspace];
    : : : end.
    : : : [/code]
    : : : Why does this interrupt i1 run only at every [red]54/55th milliseconds[/red]?
    : : : Or does anyone know any else free like [green]$1C[/green]?
    : : :
    : : : 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

  • GaashiusGaashius Posts: 349Member
    : : : : 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:
    : : : : [code]
    : : : : uses
    : : : : gastext,gaskeybd;
    : : : :
    : : : : procedure i1; interrupt;
    : : : : begin
    : : : : writechr(random(20),random(20),white,'A');
    : : : : end;
    : : : :
    : : : : begin
    : : : : setintvec($1C,@i1);
    : : : : repeat
    : : : : until key[kspace];
    : : : : end.
    : : : : [/code]
    : : : : Why does this interrupt i1 run only at every [red]54/55th milliseconds[/red]?
    : : : : Or does anyone know any else free like [green]$1C[/green]?
    : : : :
    : : : : 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
  • dolev9dolev9 Posts: 147Member
    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 [email protected]


    dolev

  • GaashiusGaashius Posts: 349Member
    : 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 [email protected]
    :
    :
    : dolev
    :
    :
    Hi Dolev9,

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

    Auf viedersehen!

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

    :-) [b][blue]GAASHIUS[/blue][/b] :-)


Sign In or Register to comment.