 name="section-E.2">EX. 2 : Odd or Even</a></h3>
<h4>Description</h4>
&nbsp&nbsp&nbsp&nbsp  Displays the odd or even status of a number.
<h4>Code:</h4>
<pre>
    %include 'nasmx.inc'

    IMPORT cdecl,printf

    ENTRY my_main

    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    [section .text]
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

    %define ODD_OR_EVEN 8

    PROC my_main
    LOCALS NONE
        mov ecx, ODD_OR_EVEN
        mov eax, ecx
        and eax,1
        IF eax,==,0
            INVOKE