Multitasking Systems: Difference between revisions
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
No edit summary |
||
Line 28:
<pre>
PUSH ;; put the accumulator's content on stack
LOAD [current_pid] ;;
STORE_SP [context_table+ACC] ;; save the stack of the suspended task
;; get somehow the PID for the next
STORE [current_pid] ;; we'll need it here for the next run▼
LOAD_SP [context_table+ACC] ;; load the stack of the chosen task
POP ;; get back the accumulator's content
IRET ;; end of interrupt
|