2023-09-29 02:07:10 +00:00
|
|
|
import text.jrt
|
|
|
|
import keys.jrt
|
|
|
|
import random.jrt
|
2023-09-29 19:25:28 +00:00
|
|
|
import file.jrt
|
|
|
|
import timer.jrt
|
|
|
|
import beep.jrt
|
2023-09-29 02:07:10 +00:00
|
|
|
|
|
|
|
: !+ ( v p -- ) dup @ <rot + swap ! ;
|
|
|
|
: b!+ ( v p -- ) dup b@ <rot + swap b! ;
|
|
|
|
: b!| ( f p -- ) dup b@ <rot | swap b! ;
|
|
|
|
: b!^ ( f p -- ) dup b@ <rot ^ swap b! ;
|
|
|
|
: ~ 0xffff ^ ;
|
2023-09-29 19:25:28 +00:00
|
|
|
|
|
|
|
: !save ( v p -- ) openself >r dup >rot !
|
|
|
|
r@ if dup 0x100 - r@ seekto cell swap r@ fwrite <r close
|
|
|
|
else rdrop drop then ;
|
|
|
|
|