mayafree2002 0 Newbie Poster

I would like to convert string into number but AVR-8bit only has 8bit in a register and data stored as hex, not decimal. I can, however, only string less than '256' and store it into 1 register only.

For example
There is a string
.DB '123456'
I would like to convert this string to number and store them to three registers, for example r16,r17, r18

r16 = 40
r17 = E2
r18 = 01

How could I do this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.