??? 05/18/05 21:32 Read: times |
#93585 - comparing two bytes Responding to: ???'s previous message |
Thanks for your responses,
I figured out what it was i wanted to accomplish. The program reads the eeprom. The size of the eeprom depends on the user's input which is stored in sizehigh, and sizelow in Ram addr 04Eh, 04Fh. i merely wanted to compare these two bytes to the dptr in order to stop the program when the eeprom was read to the end. So when the dptr gets to the end of the eeprom, the program stops. I did not know that it was possible to use the b register for storage. mov a, dpl mov b,sizelow ; cjne a,b,keepreading ; mov a, dph ; check high byte mov b,sizehigh ; cjne a,b,keepreading ; jump if not last sjmp stop_program |
Topic | Author | Date |
compare two bytes | 01/01/70 00:00 | |
equ operator | 01/01/70 00:00 | |
re: equ operator | 01/01/70 00:00 | |
value v pointer | 01/01/70 00:00 | |
comparing two bytes | 01/01/70 00:00 | |
Is it like this? | 01/01/70 00:00 | |
bible time | 01/01/70 00:00 | |
A bit more | 01/01/70 00:00 | |
to Mehdi![]() | 01/01/70 00:00 |