Switcher

Changelog

(0) -10 tip
15:fe59bae96242
2015-08-17 Paul Boddie changeset files shortlog graph Changed the first task to use VDU code output, shortening the delay in the third task to preserve a reasonable duration for the first task. default tip
switcher.oph
14:1cbf83f55fcc
2015-08-17 Paul Boddie changeset files shortlog graph Access the original value of A in the handler, not the version corrupted by Acorn's interrupt handler mechanism. Made the first and second test tasks more illustrative. Simplified the third task slightly.
switcher.oph
13:8460f118146c
2015-08-17 Paul Boddie changeset files shortlog graph Fixed register copying to task storage. Removed superfluous handler restoration (should be done automatically).
switcher.oph
12:cc3ca407a7d6
2015-08-16 Paul Boddie changeset files shortlog graph Restructured the third "housekeeping" task to use an internal subroutine.
switcher.oph
11:4f0db3c74565
2015-08-16 Paul Boddie changeset files shortlog graph Added a subroutine to restore the previous interrupt handler.
switcher.oph
10:c3c68373ee6d
2015-06-28 Paul Boddie changeset files shortlog graph Added comments and tidied label usage.
macros.oph switcher.oph
9:a0b9ea426424
2015-06-28 Paul Boddie changeset files shortlog graph Removed storage of TEMP on the stack during handler execution.
switcher.oph
8:522fbe2bcc6d
2015-06-28 Paul Boddie changeset files shortlog graph Preserve registers upon switching: not sure why I didn't do this before! Changed switching to evict the current task before looking for others, detecting when no tasks are installed and exiting to a designated task environment, adding an end handler to the main program. Tidied up the example tasks.
switcher.oph
7:b639ee361009
2015-06-28 Paul Boddie changeset files shortlog graph Introduced a simpler way of invoking subroutines with the user stack, employing explicit return addresses. Changed the user stack layout slightly to support jumping to stored addresses more conveniently. Modified the third example task somewhat. Reinstated return values for the new_task subroutine.
macros.oph switcher.oph
6:c9cc853003d3
2015-06-28 Paul Boddie changeset files shortlog graph Added user stack operations and updated the example tasks to maintain registers.
macros.oph switcher.oph
(0) -10 tip