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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/03/05 10:58
Read: times


 
Msg Score: +2
 +2 Good Answer/Helpful
#88959 - Bunch of bull.
Responding to: ???'s previous message
Mehdi:
Just because some say that the idea of twisting the 8051 instructions out of normal flow is a bad idea, such as LJMPing out of an ISR, does not mean that such same people cannot think outside the box (or as "off the straight line"),

I have seen 1000's of clever designs and algorithms over the years and even implemented a few myself. I can tell you right now that it is not necessary in 99.9% of cases to have to twist instruction flow in bizzare ways and make dangerous and un-elegant code to solve tough problems.

It is my experience that those that proclaim that their "clever little trick" that uses bizzare and crazy bastardization of programming flow and modularity usually have very little real practical experience producing good reliable products. It is also my experience that those who try the most bizzare approaches are the least experienced of the bunch!!

Case in point is Rahul, the originator of this thread. It is very clear that he has coded and coded to make a "solution" but he has coded himself into a corner. Now he looks for a bizzare way to bootstrap himself out of the mess. His inexperience shines through like a supernova in asking if a break statement in the ISR is the solution to his problem. No doubt he has sweated blood to achieve the code solution he has now and is unwilling to have to do it over again. But this "getting stuck in the corner" problem is a common thing with programmers that are "learning as they go" and have not applied a detailed design approach to their code development and its algorithms. So it is necessary to step back and look at a better way to "solve the problem". Try a new design approach and re-code it. For a beginner like Rahul the pain of having to find an elegant programmic solution to his problem that can be modular and smooth flowing in the code implementation will be the most incredible teaching!!

I have been there.....I was a young inexperienced programmer once too and I also have learned some painful lessons too. Suggesting that the LJMP out of the ISR should not be done and is not necessary is my way of saying....."be careful, don't burn your fingers....there is surely a way to make the tea in a way that maintains health and elegance".

Michael Karas


List of 53 messages in thread
TopicAuthorDate
problem with labels            01/01/70 00:00      
   First of all....            01/01/70 00:00      
   Jump to a specific point            01/01/70 00:00      
      Don't Do It!!            01/01/70 00:00      
         DO it!            01/01/70 00:00      
            No, don't!            01/01/70 00:00      
      Same label problem            01/01/70 00:00      
      Message Not Useful?            01/01/70 00:00      
         (-1 Message Not Useful)            01/01/70 00:00      
            Your wish...            01/01/70 00:00      
   break            01/01/70 00:00      
      this is for a printer            01/01/70 00:00      
         Bizarre!            01/01/70 00:00      
            Proportional font?            01/01/70 00:00      
               count columns            01/01/70 00:00      
                  columns?            01/01/70 00:00      
                     intelligent            01/01/70 00:00      
                  line printers            01/01/70 00:00      
                     hit me with a thud            01/01/70 00:00      
                        DP Lineprinters            01/01/70 00:00      
         breaking out of loops            01/01/70 00:00      
   the RETI barrier            01/01/70 00:00      
      The clever 8051 designers!            01/01/70 00:00      
         Clever            01/01/70 00:00      
         Bunch of bull.            01/01/70 00:00      
            RE:Bunch of bull.            01/01/70 00:00      
               Mehdi            01/01/70 00:00      
   Don't start from here            01/01/70 00:00      
   sdcc says unreachable code !            01/01/70 00:00      
      You get rid of it by....            01/01/70 00:00      
      Just don't do it!            01/01/70 00:00      
      Structure            01/01/70 00:00      
      global and local variables            01/01/70 00:00      
         Re:            01/01/70 00:00      
            Give It Up Rahul.            01/01/70 00:00      
            Man @ bottom of hole should stop digging            01/01/70 00:00      
               Man @ bottom of hole            01/01/70 00:00      
                  Stop digging!!            01/01/70 00:00      
                  OK, here it is!            01/01/70 00:00      
                     counting is getting difficult            01/01/70 00:00      
                        Counting should be easy!            01/01/70 00:00      
                           as a starter...            01/01/70 00:00      
                              solved !            01/01/70 00:00      
            Back to Basics            01/01/70 00:00      
      Blinker            01/01/70 00:00      
         need to jump..            01/01/70 00:00      
            Do NOT jump!            01/01/70 00:00      
            Timer            01/01/70 00:00      
   Lookup Table Character Generator            01/01/70 00:00      
      bit based lookup table            01/01/70 00:00      
         Try this:            01/01/70 00:00      
      Character building            01/01/70 00:00      
      Things are working good..            01/01/70 00:00      

Back to Subject List