Do an assembly language programming to find whether given eight bit number is odd or even. If odd store 00h in accumulator. If even store FFh in accumulator

ORG 0000H

MOV A,#31H

MOV B,#02H

DIV AB

MOV R3,B

CJNE R3,#00H,NEXT

MOV A,#0FFH

SJMP L1

NEXT:

MOV A,#00H

L1:

END

Comments

Popular posts from this blog

Foil type strain gauge

Working of hair hygrometer.