Skip to content

Commit 2a47e91

Browse files
committed
nucode: initialize send and receive pointers to 0
1 parent 775fc35 commit 2a47e91

File tree

2 files changed

+1615
-1598
lines changed

2 files changed

+1615
-1598
lines changed

sys/nuinterp.spin

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,13 @@ continue_startup
6666
#ifdef ENABLE_DEBUG
6767
DEBUG("Nucode interpreter running")
6868
#endif
69+
' start with __sendptr == __recvptr == 0
70+
mov __sendptr, #0
71+
mov __recvptr, #0
72+
6973
' set up tos and nos
70-
rdlong tos, --ptra
71-
rdlong nos, --ptra
74+
rdlong tos, --ptra
75+
rdlong nos, --ptra
7276

7377
' user LUT code (various impl_XXX)
7478
loc pa, #@IMPL_LUT
@@ -543,7 +547,10 @@ __super
543547
res 1 ' $1e6
544548
__reserved
545549
res 1 ' $1e7
546-
550+
__sendptr
551+
res 1 ' $1e8
552+
__recvptr
553+
res 1 ' $1e9
547554
' reserved:
548555
' $1e8 = __sendptr
549556
' $1e9 = __recvptr

0 commit comments

Comments
 (0)