| ??? 01/05/03 17:34 Read: times |
#35699 - RE: 4 -> 16 ASM routine needed |
Here is another way to do this little program that saves the use of the DPTR register. It demonstrates the use of the weird movc a,@a+pc instruction.
Although this solution is not as small it makes it rather easy to change the assignments simply by changing the entries in the table. The previous solutions presented were not so flexible in that the two ports had to have the same bit number mapping. I coded this on as a subroutine because this is usually the recommended process when using inline assembly language tables with the movc a,@a+pc instruction.
<big>Michael Karas</big> |



