added STREAM macro
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 22 May 2021 11:34:30 +0000 (21:34 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Sat, 22 May 2021 11:34:30 +0000 (21:34 +1000)
machine.asm

index 7f65bbeb130390cd6f96121a65be3046275e5f6f..6a133a170503eef5ea54178e484d115d39904ae2 100644 (file)
@@ -234,3 +234,15 @@ macro BRANCH zero,label {
        end if
        dq label - $ - 8
 }
        end if
        dq label - $ - 8
 }
+
+;;; ========================================
+;;; The STREAM macro starts an in-core FORTH STREAM area. See WORD
+;;; STREAM for details.
+       macro STREAM endlabel {
+       local datastart
+       dq $+32
+       dq -1
+       dq endlabel - datastart
+       dq 0
+datastart:
+       }