1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-12-05 13:08:05 +11:00
collapseos/blk/449

12 lines
218 B
Plaintext
Raw Normal View History

2020-04-26 11:54:07 +10:00
( returns negative value on error )
: _ ( c -- n )
( '0' is ASCII 48 )
48 -
DUP 0< IF EXIT THEN ( bad )
DUP 2 < IF EXIT THEN ( good )
( bad )
255 -
;