KernelDebugRef - Operator Precedence: Difference between revisions
Appearance
Created page with "{{IBM-Reprint}} {{KernelDebugRef}} The following operators evaluate the relationship of two arguments: * '''( )''' Parentheses, used to change order of evaluation * ''':''' Address binder, binds segment/selector and offsets * '''*''' Multiplication * '''/''' Division * '''MOD''' Modulo (remainder) * '''+''' Addition * '''-''' Subtraction * '''>''' Greater than relational operator * '''<''' Less than relational operator * '''>=''' Greater than or equal to relational ope..." |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
{{KernelDebugRef}} | {{KernelDebugRef}} | ||
The | The precedence of the operators has been changed to be more like '''C'''. | ||
If two or more operators have the same precedence, the expression is evaluated from left to right. '''C''' evaluates unary operators from right to left, which is more intuitive and easier to use. Expressions such as '''poi #60:133''' must be written as '''poi (#60:133)''' because of the way the debugger handles unary operators. | |||
# '''( )''' | |||
# '''| :''' | |||
# '''. # % %% - ! NOT SEG OFF BY WO DW POI PORT WPORT''' (all unary operators) | |||
# '''* / MOD''' | |||
# '''+ -''' | |||
# '''> < >= <=''' | |||
# '''== !=''' | |||
# '''AND XOR OR''' | |||
# '''&& ||''' | |||
Latest revision as of 23:13, 3 May 2025
Reprint Courtesy of International Business Machines Corporation, © International Business Machines Corporation
The precedence of the operators has been changed to be more like C.
If two or more operators have the same precedence, the expression is evaluated from left to right. C evaluates unary operators from right to left, which is more intuitive and easier to use. Expressions such as poi #60:133 must be written as poi (#60:133) because of the way the debugger handles unary operators.
- ( )
- | :
- . # % %% - ! NOT SEG OFF BY WO DW POI PORT WPORT (all unary operators)
- * / MOD
- + -
- > < >= <=
- == !=
- AND XOR OR
- && ||