??? 05/13/07 12:27 Read: times |
#139173 - Now, as discussion of optimization started Responding to: ???'s previous message |
The MSM80C154S/MSM83C154S port operation instructions for ports 0, 1, 2, and 3 are divided into two groups-one where external signals applied to the port pin are used according to the instruction to be used, and the other where port latch data uneffected by the external signals is used. Instructions which use port latch data are listed below:
INC data address DEC data address ORL data address, # data ANL data address, # data XRL data address, # data ORL data address, A ANL data address, A XRL data address, A CPL bit address JBC bit address, code address DJNZ data address, code address PUSH data address so a simple PUSH Port POP ACC should do the job, without intermediate change of values. I assume that this applies to all 8051 derivatives, not only the MSM80C154S. |
Topic | Author | Date |
as a curiousity | 01/01/70 00:00 | |
Initial reaction | 01/01/70 00:00 | |
I submit plenty of assembler and | 01/01/70 00:00 | |
miscomm? | 01/01/70 00:00 | |
Bob, clearly you need to read on port latches in t | 01/01/70 00:00 | |
Alternative | 01/01/70 00:00 | |
interesting, however | 01/01/70 00:00 | |
Did you mean courtesy? | 01/01/70 00:00 | |
I'm not corious | 01/01/70 00:00 | |
this is why the \"adult\" ICEs are for... | 01/01/70 00:00 | |
no ICE I know of can show the port LATCH | 01/01/70 00:00 | |
Optimise? | 01/01/70 00:00 | |
sure | 01/01/70 00:00 | |
Now, as discussion of optimization started | 01/01/70 00:00 | |
Addition to the 80C154 | 01/01/70 00:00 | |
I would never ASS U ME | 01/01/70 00:00 | |
that OKI part... | 01/01/70 00:00 | |
It is a true 51 derivative, but | 01/01/70 00:00 | |
are you sure? | 01/01/70 00:00 |