X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=machine.asm;h=4628077226d1c0487e15c708a584a942a48313f1;hb=1e20129cc5801258ef162be39d764693511ff6fb;hp=7f65bbeb130390cd6f96121a65be3046275e5f6f;hpb=e086c1738e84f6952008d1d2efa4e36b31b061b3;p=rrq%2Frrqforth.git diff --git a/machine.asm b/machine.asm index 7f65bbe..4628077 100644 --- a/machine.asm +++ b/machine.asm @@ -97,9 +97,12 @@ macro ENDFORTH { ;;; ======================================== ;;; The DOFORTH lays out a single FORTH call -macro DOFORTH label { +macro DOFORTH [label] { +common FORTH +forward dq label +common ENDFORTH } @@ -234,3 +237,15 @@ macro BRANCH zero,label { 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: + }