Skip to content

Commit c2e6e9a

Browse files
committed
Fix VM.INIT in subroutine threaded builds.
1 parent 0eb5da9 commit c2e6e9a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/forth/ulpBuild.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,9 +461,9 @@ func (u *Ulp) buildInterpreterSrt() string {
461461
"add r0, r2, 0xFFFF", // will overflow unless r2 is 0
462462
"jump r2, ov", // jump to next instruction if overflowed
463463
// setup the pointers
464-
"move r2, __forth_VM.INIT", // instruction pointer goes to init word
465-
"move r3, __stack_end", // set up stack pointer
466-
"jump r2", // begin execution
464+
"move r2, __body__forth_VM.INIT", // instruction pointer goes to init word
465+
"move r3, __stack_end", // set up stack pointer
466+
"jump r2", // begin execution
467467

468468
".text",
469469
// subroutine to set up the forth word return

0 commit comments

Comments
 (0)