mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 21:20:55 +11:00
6 lines
223 B
Plaintext
6 lines
223 B
Plaintext
: pos! ( newpos -- ) EDPOS @ PREVPOS !
|
|
DUP 0< IF DROP 0 THEN 1023 MIN EDPOS ! ;
|
|
: setpos ( -- ) EDPOS @ 64 /MOD
|
|
3 + ( header ) SWAP 3 + ( gutter ) SWAP AT-XY ;
|
|
: cmv ( n -- , char movement ) acc@ * EDPOS @ + pos! ;
|