1. routine id

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

new topic     » topic index » view message » categorize

2. Re: routine id

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 message » categorize

3. Re: routine id

Look in /euphoria/demo, there is hardint.ex that maybe could help you to
solve your problem...

Ciao
Maurizio


> ----------
> From:         Brett Pantalone[SMTP:pantalone at SPRINTMAIL.COM]
> Reply To:     Euphoria Programming for MS-DOS
> Sent:         09 September 1998 20:58
> To:   EUPHORIA at cwisserver1.mcs.muohio.edu
> Subject:      routine id
>
> 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
>

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu