mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 22:40:56 +11:00
adea75e50a
I'm pretty happy about how lightweight the implementation turns out to be.
16 lines
358 B
Plaintext
16 lines
358 B
Plaintext
: LOAD+ BLK> @ + LOAD ;
|
|
( b1 b2 -- )
|
|
: LOADR 1+ SWAP DO I DUP . NL LOAD LOOP ;
|
|
: LOADR+ BLK> @ + SWAP BLK> @ + SWAP LOADR ;
|
|
( Now, adev stuff )
|
|
0x3e RAM+ :** A@
|
|
0x40 RAM+ :** A!
|
|
|
|
( src dst u -- )
|
|
: AMOVE
|
|
( u ) 0 DO
|
|
SWAP DUP I + A@ ( dst src x )
|
|
ROT TUCK I + ( src dst x dst )
|
|
A! ( src dst )
|
|
LOOP 2DROP ;
|