Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/09/07 22:30
Read: times


 
#132439 - do not translate
Responding to: ???'s previous message
Shmulik Goldberg said:
All the theorethical part is understood.
In the code example, for instance, I have this line: "ldx #$08".

AT89S52 doesn't support this `ldx` command. How do I know what's the equivalent command on 89s...?


Don't try and find the 8051 equivalents for this code. Just try to understand the logic behind it and write your own 8051 program.

It's like translating a book.. Do not translate word by word from one laguage to another, but translate phrases (or concepts)...

If you do not want to translate, then search for the appropriate 8051 code. As pointed out in http://www.8052.com/forum/rea...=132437437

regards
Patrick

List of 44 messages in thread
TopicAuthorDate
8051 with PS/2 keyboard            01/01/70 00:00      
   keyboard protocol            01/01/70 00:00      
      Hey Dennis            01/01/70 00:00      
         bit banging examples            01/01/70 00:00      
         ???            01/01/70 00:00      
            Ok then,            01/01/70 00:00      
               crawl, walk, run            01/01/70 00:00      
                  Actually            01/01/70 00:00      
            I read it all again,            01/01/70 00:00      
               why bother?            01/01/70 00:00      
                  or ...            01/01/70 00:00      
                  I have tried using            01/01/70 00:00      
                     Not instructions            01/01/70 00:00      
                        So, if he did not state which assembler he uses            01/01/70 00:00      
                           yes            01/01/70 00:00      
                              I read the assembler manual;            01/01/70 00:00      
                                 Number format?            01/01/70 00:00      
                                    read through the assembler manual            01/01/70 00:00      
                                       Done, as well as reading your links            01/01/70 00:00      
                                          Is P1 defined?            01/01/70 00:00      
                                             That was indeed the problem            01/01/70 00:00      
                                                * $            01/01/70 00:00      
                                                   Thanks a lot            01/01/70 00:00      
                                                      That's always the way!            01/01/70 00:00      
                                                         Actually that's a code            01/01/70 00:00      
                                                            do you have a "main"?            01/01/70 00:00      
                                                               My hardware is AT89S52            01/01/70 00:00      
                                                                  that may never happen            01/01/70 00:00      
                                                                     Check this out:            01/01/70 00:00      
                                                                        OK, so you did check it            01/01/70 00:00      
                                                            You assume too much!            01/01/70 00:00      
               do not translate            01/01/70 00:00      
                  which assembler?            01/01/70 00:00      
   turnkey solutions, free, but not 805x            01/01/70 00:00      
      The whole exercise - As I See It - IMHO.            01/01/70 00:00      
         If he's willing to do the work ...            01/01/70 00:00      
   www.computer-engineering.org/ps2protocol/            01/01/70 00:00      
      Hello Stefan,            01/01/70 00:00      
         See also            01/01/70 00:00      
         ps2 keyboard prototcol            01/01/70 00:00      
   More reference material            01/01/70 00:00      
      Eh?            01/01/70 00:00      
         ps2 protocol            01/01/70 00:00      
            Already done            01/01/70 00:00      

Back to Subject List