1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 21:08:09 +11:00
collapseos/blk/438

15 lines
386 B
Plaintext
Raw Normal View History

2020-05-14 23:58:48 +10:00
: IF ( -- a | a: br cell addr )
COMPILE (?br) H@ 2 ALLOT ( br cell allot )
2020-05-14 23:45:42 +10:00
; IMMEDIATE
2020-05-14 23:58:48 +10:00
: THEN ( a -- | a: br cell addr )
DUP H@ -^ SWAP ( a-H a ) !
; IMMEDIATE
: ELSE ( a1 -- a2 | a1: IF cell a2: ELSE cell )
COMPILE (br)
2 ALLOT
DUP H@ -^ SWAP ( a-H a )
!
H@ 2- ( push a. -2 for allot offset )
; IMMEDIATE