??? 03/02/05 16:01 Modified: 03/02/05 16:02 Read: times |
#88880 - 16-bit SP and Ri Responding to: ???'s previous message |
Erik Malund said:
what happens to mov sp,#44. Nothing special. You still change the lower byte of sp. If you wish so, do also mov sph,#01 or similar. Note, the extended sp is around already (see the "kitchen drain" thread). Erik Malund said:
what happens to PUSH/POP speed, What should happen? You already have 16-bit registers inside (at least PC and DPTR), incrementing all the time... Erik Malund said:
not to mention what happens to mov r1,sp - mov a,@r1? Again, nothing special, you load both sp/sph into r1/r1h and @r1 points accordingly. Erik Malund said:
The multiple DPTRs _ which are SFRs - that some drivatives have can be ignored and "advanced" compilers can have an option of using them. And so would have the option of use the extended sp and Ri. Still rather trivial (a single bit somewhere in SFR... What about AUXR?). Of course, the old development tools would have no benefit from the extensions (as they have none from any other extensions), but there is a big potential for new tools/upgrade for the old ones, or for "manual" use of these features. A simple example, '51 could be finally gcc-able... Jan Waclawek |