1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-29 13:18:04 +11:00
collapseos/blk/105

13 lines
368 B
Plaintext
Raw Normal View History

2020-05-02 11:52:38 +10:00
: _type ( buf -- )
C< DUP 0xd = IF 2DROP EXIT THEN OVER DUP _zbuf ( c a )
2020-05-02 11:52:38 +10:00
BEGIN ( c a )
C!+ C< SWAP
OVER 0x0d = UNTIL ( c a ) C! ;
( user-facing lines are 1-based )
: T 1- DUP 64 * EDPOS ! _pln ;
2020-05-02 11:52:38 +10:00
: P IBUF _type IBUF EDPOS @ _cpos 64 MOVE BLK!! ;
2020-04-17 21:51:59 +10:00
: _mvln+ ( ln -- move ln 1 line further )
DUP 14 > IF DROP EXIT THEN
_lpos DUP 64 + 64 MOVE
2020-04-17 21:51:59 +10:00
;