please help me with this problem. To write an assembly program that adds two positive 5 digit numbers. Assume that the user will enter only up to 5-digit numbers. Then, the program will ask the user to enter two numbers and then the program proceeds to compute and display the sum. Thanks!!!!!!
Assembly language programs are processor specific. So u have to mention the micrcontroller, for which u want to code. To over come this problem, High level language like C is used to program microcontrollers. It is called Embedded C.
Your problem seem too easy, but too difficult to answer if you are not specific.
anyway, here's an assembly code (in 8085 microprocessor) as a sample
MVI A, 04h ; store value 04h at regA
MVI B, 05h ; store value 05h at regB
ADD B, A ; add A and B, result-->A
STA 002Fh ; store accumulator (regA) to memloc 002F
OUT A ; output values stored at regA
HLT ; program halt