From 8741d78b4d69b70b77a876f3220846efe277c038 Mon Sep 17 00:00:00 2001 From: Koichi Nakamura Date: Sat, 2 Jan 2021 09:30:51 +0900 Subject: [PATCH] fix stack notation --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 393a218..cb83cf2 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,8 @@ $ cat helloworld.fs | ./planck |:----:|:---------|:----------------|:-----------------------------| | Q | quit | ( -- ) | Exit the process | | C | cell | ( -- n ) | The size of Cells | -| h | &here | ( -- c-addr ) | The address of 'here' cell | -| l | &latest | ( -- c-addr ) | The address of 'latest' cell | +| h | &here | ( -- a-addr ) | The address of 'here' cell | +| l | &latest | ( -- a-addr ) | The address of 'latest' cell | | k | key | ( -- c ) | Read character | | t | type | ( c -- ) | Print character | | j | jump | ( -- ) | Unconditional branch | @@ -31,7 +31,7 @@ $ cat helloworld.fs | ./planck | R | rstore | ( a-addr -- ) | Set return stack pointer | | i | docol | ( -- a-addr ) | Get the interpreter function | | e | exit | ( -- ) | Exit current function | -| L | lit | ( -- a ) | Load immediate | +| L | lit | ( -- n ) | Load immediate | | S | string | ( -- c-addr u ) | Load string literal | | + | add | ( a b -- c ) | c = (a + b) | | - | sub | ( a b -- c ) | c = (a - b) |