asembley language for what system>?
I would divide it by 2 and see if there is a remainder
Convert to binary and then see if the last bit is 1 or 0 ?
Its been awhile but its probably something like this
MOVF SOMEREGISTER,W
BTFSS W,0
GOTO EVEN
//add odd code here
GOTO END
EVEN:
//add even code here
END:
no such thing as divide in most assembler languages, well not the ones i use