
; Program Description : this program is to compare with cmp, sub
; Author : hks9999
; Creation Date : 2008. 11. 6
INCLUDE Irvine32.inc
.data
.code
main PROC
mov eax, 10h
mov ebx, 5h
cmp eax, ebx
call DumpRegs
mov eax, 10h
mov ebx, 5h
sub eax, ebx
call DumpRegs
mov eax, 10h
mov ebx, 10h
cmp eax, ebx
call DumpRegs
mov eax, 10h
mov ebx, 10h
sub eax, ebx
call DumpRegs
mov eax, 10h
mov ebx, 15h
cmp eax, ebx
call DumpRegs
mov eax, 10h
mov ebx, 15h
sub eax, ebx
call DumpRegs
INVOKE ExitProcess, 0
main ENDP
END main