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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/13/07 10:56
Read: times


 
#132736 - That's always the way!
Responding to: ???'s previous message
Shmulik Goldberg said:
I got it working with no errors (the assembly), though the code does not work

Yes, that is very common indeed!

The fact that it assembled without errors simply means that you have made no syntax errors in your source text - it doesn't say anything about whether the code will actually work or not!

It's like a spelling checker can tell you that your spellings are all correct, but can't tell you whether what you wrote actually makes any sense!

Your first step must be to re-read the code and look for any obvious mistakes.
Try working through it by hand, with pencil and paper, to check that what you wrote is actually what you wanted!

Run it in a simulator.

Debug it on the target hardware.

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