QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: FilipeEstima on September 11, 2020, 07:54:39 pm

Title: Is there a way to simulate interruption, like in Assembly?
Post by: FilipeEstima 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?
Title: Re: Is there a way to simulate interruption, like in Assembly?
Post by: SMcNeill on September 11, 2020, 07:59:45 pm
ON TIMER is the command you’re looking for.
Title: Re: Is there a way to simulate interruption, like in Assembly?
Post by: FilipeEstima on September 11, 2020, 10:28:41 pm
Thanks, Steve.