en:pfw:multi_tasker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:pfw:multi_tasker [2025-02-27 10:56] – [Cooperative multitasker] willem | en: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 a 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. | + | Note that this is code directly from the noForth t metacompiler listing.\\ |
- | take there there are some meta specific words in it like ''> | + | So take there there are some meta specific words in it like ''> |
<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