add 2 binary numbers
There are instruction set for each mocro controllers.
By using instructions, small assembly program can be write to add two binary numbers.
Each instruction is explaind with example on the micro controller manual
I wil give small example.
lets take tw0 numbers as 12 and 8
in Hex decimal it is c and 8
lda c 'load accumulator A with c
ldb 8 'load accumulator B with 8
add ' add accumulator B to A and store result into A
sta 0100 'store the result into memory location 0100 Hex.
instruction of assembly is look similar to "lda, ldb etc.
numbers and memory locations is much easy to write in HEx than binary.
Read micro controller instruction book or technical manual or user guide. it is very easy to understand
good luck
Mahinda