Beruflich Dokumente
Kultur Dokumente
Page
Instruction
Directive
Label
Comment
o
o
No operands
stc
; set carry flag
One operand
inc ax
; increment register ax
call Clrscr
; call procedure Clrscr
jmp L1
; jump to instruction with label
L1
Two operands
add ebx, ecx ; register ebx = ebx + ecx
sub var1, 25 ; memory variable var1 = var1 25
Three operands
imul eax,ebx,5 ; register eax = ebx * 5
[;comment]
Page
Registers
Registers are used to control instructions being
executed, to handle addressing of memory, and
to provide arithmetic capability
Registers of Intel Processors can be categorized
into:
1. Segment register
2. Pointer register
3. General purpose register
4. Index register
5. Flag register
2.
BX Register
Identifiers
Page