1. routine id
- Posted by Brett Pantalone <pantalone at SPRINTMAIL.COM> Sep 09, 1998
- 384 views
- Last edited Sep 10, 1998
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
2. Re: routine id
- Posted by Humberto Yeverino <humberto at ENGR.CSUFRESNO.EDU> Sep 09, 1998
- 467 views
- Last edited Sep 10, 1998
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 ***********************************************************
3. Re: routine id
- Posted by MORONI Maurizio <Maurizio.Moroni at OMNITEL.IT> Sep 10, 1998
- 366 views
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 >