??? 03/02/05 17:31 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#88897 - Ridiculous MOVC addressing modes... Responding to: ???'s previous message |
The DPTR addressing modes are horrible.
For MOVX they make a bit of sense yet. A,@DPTR, @DPTR,A is fine, A,@Ri makes little sense but it doesn't hurt. But MOVC? MOVC A,@A+DPTR and MOVC A,@A+PC. Try to read 4 bytes in a row in a reasonable number of instructions with these. Why couldn't that be MOVC A,@B+DPTR or something? What sense does using A here make if it gets overwritten? You need to reset it every time you want to read the next byte. CLR A, INC DPTR... Whoever designed that should be fired. |