You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The equ directive should support basic operator precedence, so that multiplication * and division / has a higher precedence than addition + and subtraction -`.
If there are other operators supported by the equ, a reasonable order of precedence would be to follow the same rules as the C language.
The text was updated successfully, but these errors were encountered:
Interesting. In that case, this is a place where a non-fatal warning message would be useful. In other words, if the current left-to-right operator precedence rule would produce a different result than the MDAS rule that many people would expect.
Problem
The
equ
directive can contain arithmetic expressions. But apparently, there is no support for operator precedence. So the followingequ
statement:is currently interpreted as
(helloRow+$100) * helloCol
.The correct expression has to be written as:
as done in #82, but this is very easy to forget.
Expectation
equ
directive should support basic operator precedence, so that multiplication*
and division/
has a higher precedence than addition+
andsubtraction
-`.equ
, a reasonable order of precedence would be to follow the same rules as the C language.The text was updated successfully, but these errors were encountered: