diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2023-03-11 16:24:25 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2023-03-11 16:24:25 -0500 |
commit | bf7fe756a175a90dd82e970e5d620c6d8c459c17 (patch) | |
tree | 82dab52271f35db08177410ab1ef94cfe1d66be7 /alee-standalone.cpp | |
parent | f186ff2a22459ebf2fd83b63b66370d018dcbbef (diff) |
u. um*
Diffstat (limited to 'alee-standalone.cpp')
-rw-r--r-- | alee-standalone.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/alee-standalone.cpp b/alee-standalone.cpp index 2c971ce..5c9f8a8 100644 --- a/alee-standalone.cpp +++ b/alee-standalone.cpp @@ -89,16 +89,7 @@ void user_sys(State& state) state.dict.read(Dictionary::Base)); std::cout << buf << ' '; break; - case 1: // emit - std::cout << static_cast<char>(state.pop()); - break; - case 2: // save - save(state); - break; - case 3: // load - load(state); - break; - case 4: // u. + case 1: // u. { Addr ucell = static_cast<Addr>(state.pop()); std::to_chars(buf, buf + sizeof(buf), ucell, @@ -106,6 +97,15 @@ void user_sys(State& state) std::cout << buf << ' '; } break; + case 2: // emit + std::cout << static_cast<char>(state.pop()); + break; + case 3: // save + save(state); + break; + case 4: // load + load(state); + break; default: break; } |