2020-05-24 10:01:46 -04:00
|
|
|
: IF ( -- a | a: br cell addr )
|
2020-09-19 13:54:01 -04:00
|
|
|
COMPILE (?br) H@ 1 ALLOT ( br cell allot )
|
2020-05-15 22:44:49 -04:00
|
|
|
; IMMEDIATE
|
2020-05-24 10:01:46 -04:00
|
|
|
: THEN ( a -- | a: br cell addr )
|
2020-07-06 07:27:50 -04:00
|
|
|
DUP H@ -^ _bchk SWAP ( a-H a ) C!
|
2020-05-15 22:44:49 -04:00
|
|
|
; IMMEDIATE
|
2020-05-24 10:01:46 -04:00
|
|
|
: ELSE ( a1 -- a2 | a1: IF cell a2: ELSE cell )
|
2020-09-19 13:54:01 -04:00
|
|
|
COMPILE (br)
|
2020-07-06 07:27:50 -04:00
|
|
|
1 ALLOT
|
2020-05-24 10:01:46 -04:00
|
|
|
[COMPILE] THEN
|
2020-07-06 07:27:50 -04:00
|
|
|
H@ 1- ( push a. 1- for allot offset )
|
2020-05-15 22:44:49 -04:00
|
|
|
; IMMEDIATE
|