??? 04/21/06 09:16 Read: times |
#114666 - just some hair splitting Responding to: ???'s previous message |
Russell Bull said:
on the 8051 it [instruction length] is usually 1 or two bytes (4 for mul and div). Russell, I remember you saying here that you in fact are using a wide mix of processors/controllers and dealing with '51s only marginally. That explains your error: there are no 4-byte instructions on '51 (MUL and DIV are both 1-byte (but 4-cycle, certainly), only 1, 2 and 3 byte (example of the 3-byte are long jump/call and mov dptr,#xxxx) - <shameless advertisement>an overview here</shameless advertisement>. On the other hand, some (most?) ARMs have the alternative 16-bit 'thumb' instruction set... (this is not to say I know what is the typical code size ratio...) Jan Waclawek |