Menu

Curious about the "EVERY" command

Anonymous
2016-09-29
2016-09-29
  • Anonymous

    Anonymous - 2016-09-29

    Does this actually envoke a hardware interrupt?
    If so, I could probably use it.
    Otherwise, how does it work?
    Thus far, I'm loving this version of BASIC, and it has been working very well for me.
    Kevin

     
  • Markus Hoffmann

    Markus Hoffmann - 2016-09-29

    Tne EVERY (and also AFTER) commands use the alarm() mechanism on the unterlying UNIX system. And this is usually implemented using a hardware timer, causing an interrupt. However the timing is not very precise on non-realtime-operating systems. On Android / Linux and also windows, the interrupt handling is hidden deep down in the kernel. It is not that easy to use it directly (like i was on the ATARI ST). But it is possible.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.