- portSAVE_CONTEXT ; Save the context of the current task.\r
- call vTaskIncrementTick ; Call the timer tick function.\r
-#if configUSE_PREEMPTION == 1\r
- call vTaskSwitchContext ; Call the scheduler to select the next task.\r
-#endif\r
- portRESTORE_CONTEXT ; Restore the context of the next task to run.\r
+ portSAVE_CONTEXT ; Save the context of the current task.\r
+ call xTaskIncrementTick ; Call the timer tick function.\r
+ cmpw ax, #0x00\r
+ skz\r
+ call vTaskSwitchContext ; Call the scheduler to select the next task.\r
+ portRESTORE_CONTEXT ; Restore the context of the next task to run.\r