Added multitask example

This commit is contained in:
Luxferre
2022-08-14 18:08:07 +03:00
parent 7e7544a15a
commit 71eb5bafa8
2 changed files with 34 additions and 3 deletions
+28
View File
@@ -0,0 +1,28 @@
(A very simple example to showcase multitasking capabilities of Equi)
(by Luxferre, 2022, public domain)
(save cmd buffer start to ease calculations)
X1-GS
(define a task multiplexer to run the second task)
0026#GL+6#0Y!
(and the third task)
002D#GL+6#0Y!
(while we define the third task, the second is already running,
so some B's will be output even before A's,
and when the third task will be defined, one C will be output)
(define task 0 - output A in endless loop)
A"$.5NJ
(define task 1 - output B in endless loop)
B"$.5NJ
(define task 2- output C in endless loop)
C"$.5NJ
(and now, ABC pattern should print continuously)
Q