retroforth/library/c-get-ext.retro
crc 81a70edd50 add c:get/ext to library/c-get-ext.retro
FossilOrigin-Name: 1a7439272710c32eca9ba6e0c80825451087160d722885ea229e8449f306ca8a
2024-05-23 16:36:43 +00:00

10 lines
174 B
Forth

~~~
:keys:UP #-300 ;
:keys:DOWN #-301 ;
:keys:RIGHT #-302 ;
:keys:LEFT #-303 ;
:c:get/ext (-c)
c:get dup #27 eq?
[ drop c:get drop c:get #235 + n:negate ] if ;
~~~