1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-09-29 16:55:22 +00:00

fix and update fiber library

This commit is contained in:
David Schmenk 2018-01-24 21:40:41 -08:00
parent 6a51ad7879
commit da22d6882d
2 changed files with 6 additions and 4 deletions

Binary file not shown.

View File

@ -29,7 +29,8 @@ struc t_vm
word pp
byte hwsp
byte esp
byte fill[9]
byte jmptmp
byte fill[8]
byte dropop
byte nextop[$10]
byte hwstk[$C0]
@ -199,9 +200,10 @@ export def fbrStart(defaddr, param)
// Initialize stack to point to fiber def and fbrExit
// This allows a fiber to return and it will fall into fbrExit
//
vmstate->hwsp = $FB
vmstate=>$FE = @fbrExit - 1
vmstate=>$FC = defaddr - 1
vmstate->jmptmp = $4C
vmstate->hwsp = $FB
vmstate=>$FE = @fbrExit - 1
vmstate=>$FC = defaddr - 1
//
// Link into RUN list
//