mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 04:38:06 +11:00
4af93d53e3
Also, add insert and find buffers to the header, making it 3 lines high. Also, fix the "I" overshadowing word which wasn't operating on the proper RSP level. Also, fix I which didn't mark the block as dirty.
13 lines
409 B
Plaintext
13 lines
409 B
Plaintext
: setpos EDPOS @ 64 /MOD
|
|
3 + ( header ) SWAP 3 + ( gutter ) SWAP AT-XY ;
|
|
: pos+ EDPOS @ + 1024 MOD EDPOS ! ;
|
|
: cmv ( n -- , char movement ) acc@ * pos+ ;
|
|
: $; 0acc ;
|
|
: $g ACC @ selblk 0acc ;
|
|
: $[ BLK> @ acc@ - selblk ;
|
|
: $] BLK> @ acc@ + selblk ;
|
|
: $I 3 1 AT-XY I contents ;
|
|
: $h -1 cmv ; : $l 1 cmv ; : $k -64 cmv ; : $j 64 cmv ;
|
|
: $H 0acc EDPOS @ 0x3c0 AND EDPOS ! ;
|
|
: $L 0acc EDPOS @ 0x3f OR EDPOS ! ;
|