RodrigoDornelles / 3bc-lang

Low-level language, tiny virtual machine, minimal runtime, intermediate representation, embeddable, easy for beginners. (Friendly Punched cards)
https://3bc-lang.org
GNU General Public License v3.0
232 stars 25 forks source link

null should do nothing for 2 steps (nop behavior) #370

Open RodrigoDornelles opened 1 year ago

RodrigoDornelles commented 1 year ago

Please Describe The Problem To Be Solved

It is common between processors, to work with device synchronization, to ignore 2 cycles _(in this case it would be two calls to driver_interrupt)_ before running again.

Suggest A Solution

In order not to add any ram usage or increase complexity, it can be worked on in the state machine.

case FSM_3BC_WAITING_NOP:
   app->state = FSM_3BC_RUNNING;
   return true;