2020-05-25 00:01:46 +10:00
|
|
|
: IF ( -- a | a: br cell addr )
|
2020-09-20 03:54:01 +10:00
|
|
|
COMPILE (?br) H@ 1 ALLOT ( br cell allot )
|
2020-05-16 12:44:49 +10:00
|
|
|
; IMMEDIATE
|
2020-05-25 00:01:46 +10:00
|
|
|
: THEN ( a -- | a: br cell addr )
|
2020-07-06 21:27:50 +10:00
|
|
|
DUP H@ -^ _bchk SWAP ( a-H a ) C!
|
2020-05-16 12:44:49 +10:00
|
|
|
; IMMEDIATE
|
2020-05-25 00:01:46 +10:00
|
|
|
: ELSE ( a1 -- a2 | a1: IF cell a2: ELSE cell )
|
2020-09-20 03:54:01 +10:00
|
|
|
COMPILE (br)
|
2020-07-06 21:27:50 +10:00
|
|
|
1 ALLOT
|
2020-05-25 00:01:46 +10:00
|
|
|
[COMPILE] THEN
|
2020-07-06 21:27:50 +10:00
|
|
|
H@ 1- ( push a. 1- for allot offset )
|
2020-05-16 12:44:49 +10:00
|
|
|
; IMMEDIATE
|