testand.jpg
; Program Description : this program is to compare with test & and
; Author : hks9999
; Creation Date : 2008. 11. 6

INCLUDE Irvine32.inc
.data
.code
main PROC
 mov eax, 1100b
 mov ebx, 0011b
 test eax, ebx
 call DumpRegs
 mov eax, 1100b
 mov ebx, 0011b
 and eax, ebx
 call DumpRegs
 mov eax, 000011b
 mov ebx, 000011b
 test eax, ebx
 call DumpRegs
 mov eax, 000011b
 mov ebx, 000011b
 and eax, ebx
 call DumpRegs
 mov eax, 000110b
 mov ebx, 000101b
 test eax, ebx
 call DumpRegs
 mov eax, 000110b
 mov ebx, 000101b
 and eax, ebx
 call DumpRegs

 INVOKE ExitProcess, 0
main ENDP
END main