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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/16/07 15:53
Modified:
  03/16/07 15:57

Read: times


 
#135120 - how do you know that ?
Responding to: ???'s previous message
but in this SPECIAL case, it will work.
there is absolutely no reason that main() would be called. Yes, it is a 'function' but it is acessed from the startup code and Startup.a51 does jump in and jump out, so why should that 'unknown stuff' startup jumps to call main instead of continuing jumping???

Thus, by a reasonable assumption the ret at the end of main (that is only there because main is handles by the compiler as a function - why make an exception when none needed) will jump out in the blue younder since there is no return address pushed upon the stack.


Erik


List of 15 messages in thread
TopicAuthorDate
Help with the delay program            01/01/70 00:00      
   What does it do?            01/01/70 00:00      
   Hints.            01/01/70 00:00      
      Check with debugger            01/01/70 00:00      
   could this be it ?            01/01/70 00:00      
      Difficult to see            01/01/70 00:00      
         that depends            01/01/70 00:00      
            RET in main            01/01/70 00:00      
               nope - and compiler dependent            01/01/70 00:00      
                  RET in functions            01/01/70 00:00      
                     how do you know that ?            01/01/70 00:00      
                        Because of Startup            01/01/70 00:00      
                           ah            01/01/70 00:00      
                           some contra            01/01/70 00:00      
                              in other words - and who cares            01/01/70 00:00      

Back to Subject List