Merge pull request #10 from nineties/fix_docs_for_shift_operations

Fix README and comments about shift operations
This commit is contained in:
Koichi NAKAMURA 2021-05-05 23:26:03 +09:00 committed by GitHub
commit 629af82f59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) | | < | less | ( a b -- c ) | c = (a < b) |
| u | uless | ( a b -- c ) | c = (a unsigned< b) | | u | uless | ( a b -- c ) | c = (a unsigned< b) |
| = | equal | ( a b -- c ) | c = (a == b) | | = | equal | ( a b -- c ) | c = (a == b) |
| { | shl | ( a b -- c ) | c = a << b (logical) | | ( | shl | ( a b -- c ) | c = a << b (logical) |
| } | shr | ( a b -- c ) | c = a >> b (logical) | | ) | shr | ( a b -- c ) | c = a >> b (logical) |
| ) | sar | ( a b -- c ) | c = a >> b (arithmetic) | | % | sar | ( a b -- c ) | c = a >> b (arithmetic) |
| v | argv | ( -- a-addr u ) | argv and argc | | v | argv | ( -- a-addr u ) | argv and argc |
| V | version | ( -- c-addr ) | Runtime infomation string | | V | version | ( -- c-addr ) | Runtime infomation string |

View file

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