# HG changeset patch # User Paul Boddie # Date 1439766194 -7200 # Node ID 8460f118146c1654f5b95b96643cfa32ba83edce # Parent cc3ca407a7d664c6d55bfcef0a21701a457cd02b Fixed register copying to task storage. Removed superfluous handler restoration (should be done automatically). diff -r cc3ca407a7d6 -r 8460f118146c switcher.oph --- a/switcher.oph Sun Aug 16 22:38:18 2015 +0200 +++ b/switcher.oph Mon Aug 17 01:03:14 2015 +0200 @@ -96,7 +96,6 @@ ; return here with the initial main program stack main_end: - jsr restore_handler rts @@ -200,7 +199,7 @@ ldy #7 ; offset of MSB (_, _, Y, X, A, F, LSB, MSB) * .invoke mov8_refs SP, CURRENT dey - cpy #2 + cpy #1 bpl - handler_load_task: @@ -262,7 +261,7 @@ ldy #7 ; offset of MSB (_, _, Y, X, A, F, LSB, MSB) * .invoke mov8_refs NEXT, SP dey - cpy #2 + cpy #1 bpl - ; set the user stack for the task