Closed tkers closed 5 years ago
Gforth exposes a word mem,
that is defined as:
: mem,
here over allot swap move ;
which is practically the same as the here [host] <rom swap move [target] dup allot
that was used in the Sokoban example (except the rom offset to host address conversion).
Does not seem to be ANS standard, but might make sense to use this name instead of rom-move
(which to me suggest it would have a similar signature as move
, instead of ,
).
We exported
<rom
before for being a bit more reusable, but it seems like it would usually be used to do arom-move
(maybe a better name is possible) anyway.