??? 01/12/08 14:19 Modified: 01/12/08 14:23 Read: times |
#149365 - Yes there is Responding to: ???'s previous message |
The advantage of this code is not technical. As a matter in fact it is totally outperformed by the JMP @A+PC method.
However the resulting code has a nicer look. Not much but still as there is no need for separate load for the dptr and no need for labels either. And - as You stated it is just trying to "shine out" ;) - beware with me - always wear VERY dark sun goggles. Maybe this could serve as a lesson on how the MCU makes the calls ;) [EDIT]: Oh - there actually IS one advantage. The number of branches can exceed 83. This requires a modification to the stack manipulation code but it is doable. The JMP @A+PC method is limited by the 256/3 barrier. However, I doubt such need will ever pop up. |