NOT (EMAS)
NOT Inversion, 1 ning to‘ldiruvchisi, mantiqiy inkori
ko‘rsatilgan operandning bitlarini inversiyani amalga oshiradi, 0 ni 1 bilan
almashtiradi va aksincha. Operand sifatida registrni segment registridan tashqari
yoki bayt yoki so‘z hajmidagi xotira katakchasini belgilash mumkin. Operand
sifatida bevosita qiymatdan foydalanishga ruxsat berilmaydi. Buyruq protsessor
belgilanishlariga ta’sir qilmaydi.
Bitli inversiya qoidalari:
Operand biti 0 1
Natija biti 10
1-misol
mov AX,0FFFFh
NOT;AX=0000h
2-misol
mov SI, 5551h
SI NOT; SI=AAAEh
AMALIY QISM.
Flag nomi
Namunaviy misol
Natijasi
Overflow Flag
(OF)
MOV AX, 32767
ADD AX, 1
JNO NoOverflow
MOV AH, 2
NoOverflow:
Direction Flag
(DF):
CLD
Interrupt Flag
(IF):
CLI
Trap Flag (TF):
STI
Sign Flag (SF):
MOV AX, -1
CMP AX, 0
JS Negative
Positive:
Negative:
Zero Flag (ZF):
MOV AX, 0
TEST AX, AX
JZ IsZero
IsZero:
Auxiliary Carry
Flag (AF):
MOV AL, 0Fh
ADD AL, 1
JNC NoAuxCarry
NoAuxCarry:
Parity Flag (PF): MOV AL, 6
TEST AL, 1
JP ParitySet
ParitySet:
Carry Flag (CF)
MOV AX, 65535
ADD AX, 1
JC IsCarry
IsCarry:
|