aboutsummaryrefslogtreecommitdiffstats
path: root/msp430
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2023-10-26 19:54:29 -0400
committerClyne Sullivan <clyne@bitgloo.com>2023-10-26 19:54:29 -0400
commit5ee8f7e01dfbcb03c705f8bb6f252c2f1b829b46 (patch)
tree1c444cf6d11b31b8b072ca91272a0771d88f44aa /msp430
parent6b1955a69ed1dcb218ebc33fa22c6681924dff15 (diff)
add .R PAD U.R U> UNUSED WITHIN
Diffstat (limited to 'msp430')
-rw-r--r--msp430/alee-msp430.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/msp430/alee-msp430.cpp b/msp430/alee-msp430.cpp
index 6328419..4bb82ef 100644
--- a/msp430/alee-msp430.cpp
+++ b/msp430/alee-msp430.cpp
@@ -143,13 +143,13 @@ void printint(DoubleCell n, char *buf)
void user_sys(State& state)
{
switch (state.pop()) {
- case 0:
+ case 0: // .
printint(state.pop(), strbuf);
break;
- case 1:
- printint(static_cast<Addr>(state.pop()), strbuf);
+ case 1: // unused
+ state.push(static_cast<Addr>(state.dict.capacity() - state.dict.here()));
break;
- case 2:
+ case 2: // emit
serput(state.pop());
break;
case 3: