Greital
New Member
hi,
I'm trying to complete my project in assembly 8051 , and thanks to all of you I completed the 1st phase
now I'm stuck in the 2nd phase
I should convert a number to its letters --->> for example if I put R3 = #31 it should print thirty one
I know I had to make an arrays:
1. single digit (one to nine)
2. double digit (eleven to nineteen)
3. tens digit (ten , twenty, thirty, ..........., ninety)
since the range from 1 - 99
and I know this function involve with division , but I don't know how to begin with it and check for each state
I need an explanation for the procedures ---> so please don't think I came here just to have the code
if the code is provided it will help alot, but if not it's ok since I need to understand it
I'm trying to complete my project in assembly 8051 , and thanks to all of you I completed the 1st phase
now I'm stuck in the 2nd phase
I should convert a number to its letters --->> for example if I put R3 = #31 it should print thirty one
I know I had to make an arrays:
1. single digit (one to nine)
2. double digit (eleven to nineteen)
3. tens digit (ten , twenty, thirty, ..........., ninety)
since the range from 1 - 99
and I know this function involve with division , but I don't know how to begin with it and check for each state
I need an explanation for the procedures ---> so please don't think I came here just to have the code
if the code is provided it will help alot, but if not it's ok since I need to understand it