Micro Processor (Practical Part) : Mov Ax, 8H and Ax, 3H Ret Out Put:ax 0000h Example
Micro Processor (Practical Part) : Mov Ax, 8H and Ax, 3H Ret Out Put:ax 0000h Example
المحاضرة الثالثة
1 AND 1 = 1
1 AND 0 = 0
0 AND 1 = 0
0 AND 0 = 0
*(to find the output we must first convert the
numbers from hexadecimal to binary and apply
AND process between two number then convert
the result to hexadecimal)
Example:
MOV AX, 8h
AND AX, 3h
ret
Example
mov ax,1f h
and ax,2f h
ret
1 OR 1 = 1
1 OR 0 = 1
0 OR 1 = 1
0 OR 0 = 0
Example1:
MOV AX,4H
OR AX,8H
RET
Out put :ax=000C h
:Example2
MOV AX,3h
OR AX,2h
RET