Re: routine id

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Wed, 9 Sep 1998, Brett Pantalone wrote:
> Hello everyone,
>
> Is it possible to create an interrupt service routine in Euphoria?  It is
> clear to me that the routine_id function does not return a C-style
> function pointer.  I am not very familiar with how interpreted languages
> work, so I'm not even sure if a given routine has an actual address. If
> it could be done, how would one obtain the "address" of the routine to
> use as an interrupt vector?  This doesn't seem like it would work at
> all, but I think that later versions of QBasic let the programmer create
> interrupt service routines.  Let me know if I am wrong.
>
> -- Brett
>
There is a way to simulate interupts.  Have some counter variable T and
call the routine ids from a "vector" sequence every so often.  But you
have to keep checking the counter if it's time to execute the interupt
vector all the time.

Anyone else have any ideas?

-Humberto Yeverino Jr.

"I kick ass for the Lord."

***********************************************************
Home Page:
  http://www.engr.csufresno.edu/~humberto/Home.html

Ti Page:
  http://www.engr.csufresno.edu/~humberto/tex.html

z80 Source Page:
  http://www.engr.csufresno.edu/~humberto/z80source.html

Official Tyrant Home Page:
  http://www.engr.csufresno.edu/~humberto/tyrant.html

E-mail:
  humberto at engr.csufresno.edu
***********************************************************

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu