1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-27 18:48:05 +11:00
collapseos/blk/051

11 lines
272 B
Plaintext
Raw Normal View History

2020-05-16 23:51:02 +10:00
VARIABLE ORG
VARIABLE L1 VARIABLE L2 VARIABLE L3 VARIABLE L4
2020-05-16 23:51:02 +10:00
: SPLITB
256 /MOD SWAP
;
2020-05-17 23:30:36 +10:00
( We divide by 2 because each PC represents a word. )
: PC H@ ORG @ - 1 RSHIFT ;
2020-05-16 23:51:02 +10:00
( A, spits an assembled byte, A,, spits an assembled word
Both increase PC. )
: A,, SPLITB A, A, ;