Skip to content

Latest commit

 

History

History
63 lines (53 loc) · 1.91 KB

conditional-control-flow.md

File metadata and controls

63 lines (53 loc) · 1.91 KB

Asmc Macro Assembler Reference

Conditional Control Flow

Asmc adds flags and size extensions to directives.

Flag Extension

  • [N]A above
  • [N]B below
  • [N]C carry
  • [N]G greater (signed)
  • [N]L less (signed)
  • [N]O overflow
  • [N]P parity
  • [N]S signed
  • [N]Z zero

Size Extension

The format is DIRECIVE[[flags]][[size]] with valid combination DIRECIVE[[S]][[size]], so the only valid flag with expression is S (signed). Note that the size extension only effects the return code from a function call within an expression. As the default return in 64-bit is RAX this should be sized up according to the actual returned value. The expression ( foo() == -1 ) may otherwise fail if the returned value is int (0x00000000FFFFFFFF).

See Also

Directives Reference