1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-24 02:48:07 +11:00
collapseos/blk/399

9 lines
180 B
Plaintext
Raw Normal View History

( returns negative value on error )
: _ ( c -- n )
2020-05-05 12:30:29 +10:00
DUP '0' '9' =><= IF '0' - EXIT THEN
DUP 'a' 'f' =><= IF 0x57 ( 'a' - 10 ) - EXIT THEN
DROP -1 ( bad )
;