Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 809 Bytes

dot_for.md

File metadata and controls

30 lines (22 loc) · 809 Bytes

Asmc Macro Assembler Reference

.FOR

.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

See Also

Directives Reference | Flag conditions | Signed compare | .ENDF