??? 06/03/05 19:55 Read: times |
#94316 - Another method Responding to: ???'s previous message |
Hi Ofir,
You may do like this also: CLR C PUSH A ;have acc backed up SUBB A,#value POP A ;restore acc value JNC acc_large CJNE A,#value,acc_small JMP acc_equal In the above piece of code, the program control will jump to either of three destinations depending upon the value of acc, whether it is larger or smaller or equal to the #value. Regards, Vignesh. |
Topic | Author | Date |
compares on the 8051. | 01/01/70 00:00 | |
CJNE | 01/01/70 00:00 | |
sorry, I forgot | 01/01/70 00:00 | |
compares on the 8051 | 01/01/70 00:00 | |
Not so good... | 01/01/70 00:00 | |
Comparing | 01/01/70 00:00 | |
where is the bible? | 01/01/70 00:00 | |
Here it is | 01/01/70 00:00 | |
Compare value | 01/01/70 00:00 | |
the code | 01/01/70 00:00 | |
Another method | 01/01/70 00:00 | |
what? | 01/01/70 00:00 | |
No | 01/01/70 00:00 | |
There are more errors! | 01/01/70 00:00 | |
anyone?? | 01/01/70 00:00 | |
There are more errors! | 01/01/70 00:00 | |
YOU ARE GREAT!!! THANKS!!! | 01/01/70 00:00 | |
Simulator | 01/01/70 00:00 | |
search.. | 01/01/70 00:00 | |
Compare tips | 01/01/70 00:00 | |
Try these | 01/01/70 00:00 | |
sensors | 01/01/70 00:00 | |
Macros![]() | 01/01/70 00:00 |