adding all digits in a number, MCU 8051

Status
Not open for further replies.
It appears from the error warning that it can use -120 for a constant....BUT!!! the constant is an integer ie... it complains that the decimal "65416" is TOO big..

You may have to define constant's as 8 bit!

I'll also check the labeling as I think the underscore "_" isn't allowed in the middle of an identifier.... It can be at the front, but nowhere else!
 
Part of the fun in coding in assembly is learning how to do the conversions yourself! If you want to code in a language that does the math for you, you should be coding in C.
 
Last edited:
Hi Jon

See now I have created a new thread but I'm not getting any reply! I'm sure I would have received a reply so far had I posted that question here.

Regards
PG
 
Hi Jon

See now I have created a new thread but I'm not getting any reply! I'm sure I would have received a reply so far had I posted that question here.

Regards
PG

OK...you need to understand that we people have lives outside of this forum. We're not constantly monitoring it 24/7 and we are not obligated to just drop everything whenever you need help. You want fast answers, try logging onto the ETO chat via the chat link above. But even then we're not 24/7 tech support.

I'm responding to your other thread now.
 

Hi Jon

I'm sorry. Perhaps, I should have phrased it differently. I understand that everyone of you has a lot of other stuff to do in personal lives and I'm very grateful for the help I receive from you guys. You should reply only when you have time and feeling comfortable. Actually my last post wasn't meant to be very serious one! Many thanks for being there to help me with many queries.

Best wishes
PG
 
Last edited:
The other thing you should note.... If I read your post, or anyone else's post, If there is code involved I tend to copy and paste it into my simulator to try it... test it... observe it. Then I will reply.

I have actually written a program in VB6 ( with simulated LED's ) to show truth tables... simple switches. It was specifically designed so I could work out LCD graphical animation and what to expect, but it works as a great boolean algebra tool....
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…