AVR202: 16-Bit Arithmetics: 8-Bit MCU With Downloadable Flash Application Note
AVR202: 16-Bit Arithmetics: 8-Bit MCU With Downloadable Flash Application Note
0937A-A–8/97
1
16-Bit Register + 16-Bit Immediate
Subtraction
This operation is done as follows:
1. Subtract immediate low byte from register low byte.
2. Subtract with carry immediate high byte from register
high byte.
By adding more Subtract with Carry instructions, numbers
of n-byte width can be subtracted using n instructions.
2 AVR202