2020-05-24 10:01:46 -04:00
|
|
|
: IF ( -- a | a: br cell addr )
|
2020-07-05 14:57:18 -04:00
|
|
|
0x3f ( ?br ) , H@ 2 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 )
|
|
|
|
DUP H@ -^ _bchk SWAP ( a-H a ) !
|
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-07-05 14:57:18 -04:00
|
|
|
0x3b ( br ) ,
|
2020-05-15 22:44:49 -04:00
|
|
|
2 ALLOT
|
2020-05-24 10:01:46 -04:00
|
|
|
[COMPILE] THEN
|
|
|
|
H@ 2- ( push a. -2 for allot offset )
|
2020-05-15 22:44:49 -04:00
|
|
|
; IMMEDIATE
|