You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been thinking of an alternate (and efficient) way to implement this, by using Carry Flag (at least for 8 bits variables).
Maybe in the near future I could come up with a better solution.
In the mean time, the loop above can be rewritten as:
Dim x as UByte
Let x =0DoPrint At 0, 0; x
Pause 1Let x = x +1Loop Until x =0 : REM yes, overflow
Activity
Merged in bugfix/div32 (pull request #178)
em00k commentedon Jan 19, 2021
Sorry ignore my last post on this.
boriel commentedon Nov 3, 2024
I've been thinking of an alternate (and efficient) way to implement this, by using Carry Flag (at least for 8 bits variables).
Maybe in the near future I could come up with a better solution.
In the mean time, the loop above can be rewritten as:
boriel commentedon Nov 28, 2024
Alternatively, the initial FOR loop will cause the Z80's Carry Flag to be set. Maybe I can take advantage of this and detect the FOR loop ending!