1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-09-06 11:58:47 +10:00
collapseos/blk/669
2020-05-17 11:04:08 -04:00

11 lines
297 B
Plaintext

( ex: L1 LBL! .. L1 @ RJMP, )
: LBL! ( l -- ) PC SWAP ! ;
( ex: L1 FLBL, .. RJMPOP L1 FLBL! )
: FLBL, ( l -- ) LBL! 0 A,, ;
: FLBL! ( op l -- )
@ DUP PC -^ 1- ( op l off )
ROT 8 LSHIFT OR ( l op' )
( warning: l is a PC offset, not a mem addr! )
SWAP 2 * ORG @ + ( op' addr ) ! ;