Fix README and comments about shift operations

This commit is contained in:
Koichi Nakamura 2021-05-05 23:11:29 +09:00
parent 5fb0a39783
commit ff98060c1a
2 changed files with 6 additions and 6 deletions

View file

@ -84,9 +84,9 @@ $ ./planck < bootstrap.fs runtests.fs
| < | less | ( a b -- c ) | c = (a < b) |
| u | uless | ( a b -- c ) | c = (a unsigned< b) |
| = | equal | ( a b -- c ) | c = (a == b) |
| { | shl | ( a b -- c ) | c = a << b (logical) |
| } | shr | ( a b -- c ) | c = a >> b (logical) |
| ) | sar | ( a b -- c ) | c = a >> b (arithmetic) |
| ( | shl | ( a b -- c ) | c = a << b (logical) |
| ) | shr | ( a b -- c ) | c = a >> b (logical) |
| % | sar | ( a b -- c ) | c = a >> b (arithmetic) |
| v | argv | ( -- a-addr u ) | argv and argc |
| V | version | ( -- c-addr ) | Runtime infomation string |

View file

@ -56,9 +56,9 @@ l!
\ '<' ( a b -- c ) c = (a < b)
\ 'u' ( a b -- c ) c = (a unsigned< b)
\ '=' ( a b -- c ) c = (a == b)
\ '{' ( a b -- c ) c = a << b (logical)
\ '}' ( a b -- c ) c = a >> b (logical)
\ ')' ( a b -- c ) c = a >> b (arithmetic)
\ '(' ( a b -- c ) c = a << b (logical)
\ ')' ( a b -- c ) c = a >> b (logical)
\ '%' ( a b -- c ) c = a >> b (arithmetic)
\ 'v' ( -- a-addr u ) argv and argc
\ 'V' ( -- c-addr ) Runtime information string