1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-06-25 19:29:49 +00:00

Better documentation for in-place modification operators

This commit is contained in:
Karol Stasiak 2019-07-26 18:56:24 +02:00
parent 96850d295d
commit c8ca48a6b0
2 changed files with 4 additions and 0 deletions

View File

@ -209,6 +209,8 @@ An expression of form `a[f()] += b` may call `f` an undefined number of times.
`mutable unsigned byte /= unsigned byte` (zpreg)
`mutable word /= unsigned byte` (zpreg)
There are no `||=`, `&&=` or `>>>>=` operators.
## Indexing
While Millfork does not consider indexing an operator, this is a place as good as any to discuss it.

View File

@ -416,6 +416,8 @@ object AbstractExpressionCompiler {
case FunctionCallExpression("+=", _) => v
case FunctionCallExpression("-=", _) => v
case FunctionCallExpression("*=", _) => v
case FunctionCallExpression("/=", _) => v
case FunctionCallExpression("%%=", _) => v
case FunctionCallExpression("+'=", _) => v
case FunctionCallExpression("-'=", _) => v
case FunctionCallExpression("*'=", _) => v