If else in Assembly using irvine 32 /64

TITLE MASM Template (main.asm)

; Description:
;
; Revision date:

INCLUDE Irvine32.inc
.data
myMessage BYTE "MASM program example",0dh,0ah,0

.code
main PROC
call Clrscr


;mov ecx,offset myMessage
mov eax,21
mov ebx,5
sub edx,edx
div ebx
mov edx,offset myMessage
call dumpregs
call WriteDec
.if eax<5
call Writeint
.else
call WriteString
.endif
exit
main ENDP

END main

Comments