Assembly - Grammar (Syntax)

1 - About

Code - Grammar / Syntax (Lexical) in Assembly.

An Assembly language script is the input expected by an assembler (compiler). The assembler defines then the precise syntax of an assembler script.

3 - Syntax

Every assembler shares a common set of syntax rule that comes from one of this two syntax:

  • the Intel syntax (asm386),
  • and the AT&T syntax.

The syntax is assembler dependent and have the following components:


  • for nasm. See Nasm syntax - Intel Syntax
  • for masm. See Masm syntax - Intel Syntax
  • for gas. See Gas syntax - AT&T syntax

Script example:

        mov ax, bx
        add ax, bx
        jmp Label3
        mov ax, cx

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap