1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-09-07 01:28:46 +10:00
collapseos/blk/661
2020-05-17 09:30:36 -04:00

10 lines
260 B
Plaintext

VARIABLE ORG
: SPLITB
256 /MOD SWAP
;
( We divide by 2 because each PC represents a word. )
: PC H@ ORG @ - 1 RSHIFT ;
( A, spits an assembled byte, A,, spits an assembled word
Both increase PC. To debug, change C, to .X )
: A, C, ; : A,, SPLITB A, A, ;