| ??? 08/15/08 06:08 Read: times |
#157499 - SUBB and carry Responding to: ???'s previous message |
Russell Bull said:
Your code does a cjne to test for equality etc which is effectively a substraction which you do next anyway. Kill two birds with one stone.
[...]
****** this is doing much the same save the cjne above******
OldGreaterThanNow: MOV A,R1
SUBB A, R0
This is certainly true in this context; however, beware with SUBB - you need to be sure about the status of carry bit when performing it. To be on the safe side, place a CLR C just before the SUBB. JW |
| Topic | Author | Date |
| cjne w/ 2 registers? | 01/01/70 00:00 | |
| think i found it | 01/01/70 00:00 | |
| cjne | 01/01/70 00:00 | |
| there is nothing particularly weird about 805x | 01/01/70 00:00 | |
| I ran this through the simulator ... | 01/01/70 00:00 | |
| Looking at the code... | 01/01/70 00:00 | |
| SUBB and carry | 01/01/70 00:00 | |
Thank You | 01/01/70 00:00 |



