mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 15:30:55 +11:00
cdddfdefae
This will make it easier to fit BR* in there.
13 lines
391 B
Plaintext
13 lines
391 B
Plaintext
( L1 LBL! .. L1 @ RJMP, )
|
|
: LBL! ( l -- ) PC SWAP ! ;
|
|
( L1 FLBL, .. RJMPOP L1 FLBL! )
|
|
: FLBL, ( l -- ) LBL! 0 A,, ;
|
|
: FLBL! ( l opw -- )
|
|
( warning: l is a PC offset, not a mem addr! )
|
|
SWAP @ 2 * ORG @ + PC 1- H@ ( opw addr tgt hbkp )
|
|
ROT HERE ! ( opw tgt hbkp ) SWAP ROT EXECUTE H@ ! ( hbkp )
|
|
HERE ! ;
|
|
: FRJMP! ( l -- ) ['] RJMP FLBL! ;
|
|
: FRCALL! ( l -- ) ['] RCALL FLBL! ;
|
|
|