The TOIN variable should not contain the address of the current location into the buffer, but rather the number of bytes into the buffer. That's how it works in other Forths, and this current implementation would make it difficult to use >in as intended (ex: as a counter) without first subtracting the value of TIB.
Since TOIN is used in quite a few places, it might be difficult to change this functionality without breaking something... so some tests should be written beforehand.
The
TOIN
variable should not contain the address of the current location into the buffer, but rather the number of bytes into the buffer. That's how it works in other Forths, and this current implementation would make it difficult to use>in
as intended (ex: as a counter) without first subtracting the value ofTIB
.Since
TOIN
is used in quite a few places, it might be difficult to change this functionality without breaking something... so some tests should be written beforehand.