DIGITAL ELECTRONICS: ASSEMBLY LANGUAGE PROGRAM FOR ARITHMETIC OPERATIONS FOR 8051


WRITE ASSEMBLY LANGUAGE PROGRAME TO
PERFORME ARITHMETIC OPERATIONS

FULL VIDEO IS AVAILABLE ON OUR YOUTUBE CHANNEL

For You-Tube Channel  Click Here

ADDITION

ORG 0000H
MOV A,#06H
MOV R0,#04H
ADD A,R0
END



SUBTRACTION

ORG 0000H
MOV A,#06H
MOV R0,#04H
SUBB A,R0
END

 

MULTIPLICATION

ORG 0000H
MOV A,#02H
MOV B,#04H
MUL AB
END



DIVISION

ORG 0000H
MOV A,#08H
MOV B,#02H
DIV AB
END 


#######ADD FIVE NUMBERS#######

ORG 0000H
MOV R0,#40H
MOV R2,#05H
CLR A
AGAIN: ADD A,@R0
NEXT: INC R0
DJNZ R2, AGAIN
END

FOR ADDITION





FOR SUBTRACTION




MULTIPLICATION





DIVISION




Please Subscribe to our channel

SUBSCRIBE         SHARE             SUPPORT



Previous Post Next Post