| ??? 06/15/07 09:31 Modified: 06/15/07 09:37 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#140832 - That`s wrong Responding to: ???'s previous message |
hi,
Hans Van Pelt said:
This would be my solution.
mov a,Date + 0 xrl a,Last_Used_Date + 0 xrl a,Date + 1 xrl a,Last_Used_Date + 1 xrl a,Date + 2 xrl a,Last_Used_Date + 2 xrl a,Date + 3 xrl a,Last_Used_Date + 3 xrl a,Date + 4 xrl a,Last_Used_Date + 4 xrl a,Date + 5 xrl a,Last_Used_Date + 5 jnz Date_Diff ...and this is wrong. Assume, for example, that Data array contains values {0,0,0,0,0,1} and LastUsedData contains {1,0,0,0,0,0} They are different surely, nevertheless your comparision routine resuls as they are equal. Regards, Oleg |
| Topic | Author | Date |
| Comparing data with cjne... | 01/01/70 00:00 | |
| cjne a,direct,displacement | 01/01/70 00:00 | |
| Thanks | 01/01/70 00:00 | |
| it does | 01/01/70 00:00 | |
| Indeed | 01/01/70 00:00 | |
| Alternative solution | 01/01/70 00:00 | |
| Sure? | 01/01/70 00:00 | |
| Surely not. | 01/01/70 00:00 | |
That`s wrong | 01/01/70 00:00 | |
| you could as well use also direct RAM | 01/01/70 00:00 |



