??? 10/19/05 05:51 Modified: 10/19/05 05:52 Read: times |
#102602 - no acc load needs Responding to: ???'s previous message |
hi,
Jan Waclawek said:
This seems not too practical for single-byte variables as cjne is easier to do, but might be a way to compare multi-byte variables... OK they can be compared using cjne, too... the difference is, ehm, one byte of code memory... and the sub method lasts longer but lasts the same time for each input...
mov a,r3 ;r3:r4 compare to 12345 cjne a,#HIGH(12345),Label1 mov a,r4 cjne a,#LOW(12345),Label1 Label1: jc Less ;here we have greater or equal Less: Yes, but why ACC is used for this? Are next lines not simpler: ;r3:r4 compare to 12345 cjne r3,#HIGH(12345),Label1 cjne r4,#LOW(12345),Label1 Label1: jc Less Regards, Oleg |
Topic | Author | Date |
tablebot | 01/01/70 00:00 | |
RTFM | 01/01/70 00:00 | |
from the tutorial | 01/01/70 00:00 | |
thank | 01/01/70 00:00 | |
the tutorial explanation is incomplete | 01/01/70 00:00 | |
Only the Bible? | 01/01/70 00:00 | |
OT: Maxwell's equations | 01/01/70 00:00 | |
OT: Life | 01/01/70 00:00 | |
thanks for the input all, but krap! | 01/01/70 00:00 | |
no acc load needs | 01/01/70 00:00 | |
of course | 01/01/70 00:00 | |
revised : | 01/01/70 00:00 | |
comments | 01/01/70 00:00 | |
Only the bible? | 01/01/70 00:00 | |
bible? | 01/01/70 00:00 | |
The point of "the bible" is not that any | 01/01/70 00:00 | |
Daunting? | 01/01/70 00:00 | |
pos comp | 01/01/70 00:00 | |
The female must have seen the bike :) | 01/01/70 00:00 | |
alternative pdf readers![]() | 01/01/70 00:00 |