Well, the last time I touched assembly was when I was in college and just a little for a 8086 processor as far as I remember..
Anyway, many years later I have been asked to touch again assembly code for a SuperH processor.
I ve reading books to refresh my assembly and to understand the code that I have been handed and all is fine but I have a question on startup codes. In other words what happens when I turn on the processor?
That is something that in all my years programming I have never even thought about...I always assumed everything started at the main() function!
Then I received a code in C and assembly that doesnt even have a main function!
In the books I am reading they talk about memory, exceptions, devices etc, but they barely mention this
what happens when I turn on the processor?
Michael Barr in his book "Programmin Embedded Systems in C++" mentions that (pag 62) you go from reset: to hw_init: (hardware initialization) to startup and then to main()
Do any of you guys have a good resource, or examples in which I can learn about this?
Sorry for the long post , your help will be appreciated!