| ??? 08/09/99 22:47 Read: times |
#627 - What's wrong? (programming) |
I'm trying to compare two values and find out if "a " is >= 40h. If a=40h program print me "Equal!" but if a=anything else bigger or smaller 40h - print "bigger". What I'm doing wrong?
org 8100h main: mov a,#30h cjne a,#40h,not_eq lcall print db "Equal!!!",13,10,0 ret not_eq: jc smaller lcall print db "It's Bigger!",13,10,0 ret smaller: lcall print db "It's smaller!",13,10,0 ret 2. I load program in to EEPROM at 8100h. If at basic52 prompt READY> I type call 8100h - it is executing and returning to the prompt, but... if I write program in basic: 10. call 8100h 20 end It is acting unpredictable and print crazy messages. Any messages will be appreciated!!! |
| Topic | Author | Date |
| What's wrong? (programming) | 01/01/70 00:00 | |
RE: What's wrong? (programming) | 01/01/70 00:00 |



