Cooperative Multitasking: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
m Grammer
m actually fix grammAr (how ironic)
Line 83:
 
== ''switch.S'' ==
This is the file that actually changes between tasks. It defines a function, ''switchTask()'', which does all the magic. It saves all registers to ''from'' and loads them from ''to''. It's moreis trickytrickier than what you'd might think. Its function prototype is
<source lang="c">
void switchTask(Registers *from, Registers *to);