Tuesday 24 February 2015

ADD & STORE data in 8051


//   8051 Assembly Program   //

// A simple program to add and store data in other location //

ORG 0000H               

MOV R1,#10H
MOV A,#20H
ADD A,R1              // Adding values of A(accumulator) and R1(register)... Sum is in Accumulator//
MOV R2,A            // Moving the sum to register R2//

END





- R3DKN!9HT

No comments:

Post a Comment