User Tools

Site Tools


en:pfw:multi_tasker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:pfw:multi_tasker [2025-02-27 10:56] – [Cooperative multitasker] willemen:pfw:multi_tasker [2025-02-27 21:13] (current) – [Contributions] willem
Line 196: Line 196:
 ==== Implementation specific and example ==== ==== Implementation specific and example ====
  
-This part is system specific (noForth t) and it's just an sample implementation:\\+This part is system specific (noForth t) and it's just sample implementation:\\
 <code forth> <code forth>
 \ Redefine teminal I/O and MS to include multitasker \ Redefine teminal I/O and MS to include multitasker
Line 273: Line 273:
 **Primitives for noForth t on the RP2040** **Primitives for noForth t on the RP2040**
  
-Note that it is code directly from the noForth t metacompiler listing. So +Note that this is code directly from the noForth t metacompiler listing.\\ 
-take there there are some meta specific words in it like ''>box'' & ''tp>'' etc.+So take there there are some meta specific words in it like ''>box'', ''box>'' & ''tp>''.\\ 
 <code forth> <code forth>
 code PAUSE      ( -- ) \ 29 machine cycles, is 0.232 microsec. at 125 MHz code PAUSE      ( -- ) \ 29 machine cycles, is 0.232 microsec. at 125 MHz
Line 296: Line 297:
  
 code STOP   ( -- ) code STOP   ( -- )
-    tp> ,+    tp> ,  ( Address of main TCB )
 code> code>
     w  w ) ldr,             \ 2 - main to W     w  w ) ldr,             \ 2 - main to W
Line 311: Line 312:
  
 code SLEEP  ( task -- ) code SLEEP  ( task -- )
-    tp> ,+    tp> ,  ( Address of main TCB )
 code> code>
     w  w ) ldr,             \ 2 - main to W     w  w ) ldr,             \ 2 - main to W
en/pfw/multi_tasker.1740650214.txt.gz · Last modified: 2025-02-27 10:56 by willem