Author Topic: Is there a way to simulate interruption, like in Assembly?  (Read 3150 times)

0 Members and 1 Guest are viewing this topic.

Offline FilipeEstima

  • Newbie
  • Posts: 63
    • View Profile
Is there a way to simulate interruption, like in Assembly?
« on: September 11, 2020, 07:54:39 pm »
I searched the wiki for info if it's possible to have an interruption system working on QB64, but what I found was a simulation for old code to compile.

My idea is to have a subroutine that is called every X miliseconds, no matter what is being done in the program. Is that feasible?

Marked as best answer by FilipeEstima on March 07, 2021, 09:02:26 am

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: Is there a way to simulate interruption, like in Assembly?
« Reply #1 on: September 11, 2020, 07:59:45 pm »
ON TIMER is the command you’re looking for.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline FilipeEstima

  • Newbie
  • Posts: 63
    • View Profile
Re: Is there a way to simulate interruption, like in Assembly?
« Reply #2 on: September 11, 2020, 10:28:41 pm »
Thanks, Steve.