TITLE PassOrFail.asm ; This program will do CMP for 32-bit integers. ; Last update: 10/20/15 ; Goal: read the score: if > 60, out "pass"; otherwise, out "fail" INCLUDE Irvine32.inc .data pmt BYTE "Your score: ", 0 pass BYTE "Pass", 10, 13, 0 fail BYTE "Fail", 10, 13, 0 .code main PROC MOV EDX, OFFSET pmt call writeString ; prompt call readInt ; EAX: 98 CMP EAX, 60 JGE L1 MOV EDX, OFFSET fail call writeString call crlf JMP L2 L1: MOV EDX, OFFSET pass call writeString L2: exit main ENDP END main