Asmc Macro Assembler Reference
.FOR[S] [initialization] : [condition] : [increment/decrements]
statements
.ENDF
Generates code that executes the block of statements while condition remains true.
.FORS is the signed version.
Assignment of values for initialization and increment/decrements:
a++ - inc a
a-- - dec a
a <<= i - shl a,imm/cl
a >>= i - shr a,imm/cl
a |= b - or a,b
a &= b - and a,b
a += b - add a,b
a -= b - sub a,b
a ~= b - [mov a,b] not a
a ^= b - xor a,b
a = &b - lea a,b
a = ~b - [mov a,b] not a
Directives Reference | Flag conditions | Signed compare | .ENDF