Re: [Amforth] cmove and cmove>

2014-07-10 Thread Enoch
Sorry Matthias, My mistake, it does check for zero length move. Thanks, Enoch. Matthias Trute writes: > Enoch, > >> I believe that our cmove implementations require a test for zero length >> move. Currently they don't. > > And here is what a small test gives > > (ATmega16)> s" ABC" pad swap c

Re: [Amforth] cmove and cmove>

2014-07-10 Thread Matthias Trute
Enoch, > I believe that our cmove implementations require a test for zero length > move. Currently they don't. And here is what a small test gives (ATmega16)> s" ABC" pad swap cmove pad 3 type ABC ok (ATmega16)> s" DEF" pad swap drop 0 cmove pad 3 type ABC ok (ATmega16)> s" DEF" pad swap drop 0

[Amforth] cmove and cmove>

2014-07-09 Thread Enoch
Hello Matthias, I believe that our cmove implementations require a test for zero length move. Currently they don't. Here's what RC2 says: """ 17.6.1.0910 CMOVE “c-move” STRING ( c-addr1 c-addr2 u -- ) If u is greater than zero, copy u """ Thanks, Enoch. --