??? 03/01/07 07:03 Read: times |
#133992 - Let the boy flounder ... he'll figure it out! Responding to: ???'s previous message |
He's not interested in optimizing his code. He's interested in using code the hardware representation of which he can reduce to the smallest volume of logic. In some cases that might mean using ANL A,0 (though I doubt he means that) rather than CLR A, and ORL A, P1 rather than MOV A, P1, in which case he could skip the ANL A,0 (or ANL A,#0) altogether.
quoting his code: wt: jbc IE0, wt3 ljmp wt nop wt3: anl A,0 orl A,P1 movx @DPTR,A inc dptr ljmp wt end It's the sort of thing that will give him a sense of accomplishment if he succeeds, and won't hurt him if he fails. It makes a science project that, if the judges don't know digital electronics, will impress them, but not very much. Ultimately, it is HIS project, after all. He's had enough naysaying from 8052.COM. RE |