VE: fix buffer overflow with 'f' and make 'H' and 'L' affect 'f'
This commit is contained in:
parent
b22ab8437b
commit
c6016cd429
4
blk/127
4
blk/127
@ -10,5 +10,5 @@
|
|||||||
: $E E contents ;
|
: $E E contents ;
|
||||||
: $X acc@ X contents ;
|
: $X acc@ X contents ;
|
||||||
: $h -1 cmv ; : $l 1 cmv ; : $k -64 cmv ; : $j 64 cmv ;
|
: $h -1 cmv ; : $l 1 cmv ; : $k -64 cmv ; : $j 64 cmv ;
|
||||||
: $H 0acc EDPOS @ 0x3c0 AND EDPOS ! ;
|
: $H 0acc EDPOS @ 0x3c0 AND pos! ;
|
||||||
: $L 0acc EDPOS @ 0x3f OR EDPOS ! ;
|
: $L 0acc EDPOS @ 0x3f OR pos! ;
|
||||||
|
2
blk/129
2
blk/129
@ -1,6 +1,6 @@
|
|||||||
: $f EDPOS @ PREVPOS @ 2DUP = IF 2DROP EXIT THEN
|
: $f EDPOS @ PREVPOS @ 2DUP = IF 2DROP EXIT THEN
|
||||||
2DUP > IF DUP pos! SWAP THEN
|
2DUP > IF DUP pos! SWAP THEN
|
||||||
( p1 p2, p1 < p2 ) OVER - ( pos len ) FBUF _zbuf
|
( p1 p2, p1 < p2 ) OVER - 64 MIN ( pos len ) FBUF _zbuf
|
||||||
SWAP _cpos FBUF ( len src dst ) ROT MOVE ;
|
SWAP _cpos FBUF ( len src dst ) ROT MOVE ;
|
||||||
: $R ( replace mode )
|
: $R ( replace mode )
|
||||||
mode! 'R' EMIT
|
mode! 'R' EMIT
|
||||||
|
Loading…
Reference in New Issue
Block a user