Assmbly language
Assmbly language
Characteristics:
o Human-Readable: Assembly language is much easier to read
and write than machine code because it uses
understandable mnemonics like MOV, ADD, or JMP.
o Processor-Specific: Like machine code, assembly language is
specific to a particular CPU architecture. Each architecture
has its own set of mnemonics.
o Requires Assembly: Assembly language is translated into
machine code by an assembler, a special program that
converts assembly instructions into their binary
counterparts.
Arithmetic Instructions:
Logical Instructions:
csharp
Sample code:
MOV AL, 61h ; Move hexadecimal value 61 (97 in decimal) into
the AL register
makefile
Sample code:
START: MOV AX, 0
Assembly Code:
sql
Sample code:
MOV AL, 61h ; Move hexadecimal value 61 into register AL
ADD AL, 1 ; Add 1 to the value in AL
sql
Sample code:
10110000 01100001 ; MOV AL, 61h
00000100 00000001 ; ADD AL, 1
Higher-Level Concepts