Hallo!
I have boot loader written in asm and have to translate it to C-language (probably with asm inserts) to simplify life for successors. Keil does the following: a) for the very first code, it always put jump instruction to transfer control to either generated C_STARTUP code section (if no startup asm module in the project) or to the startup asm module if it was added to the project b) puts all associated startup code to the executable c) generates jump back to main()
00000000 FA000800 JMPS ?C_STARTUP(0x8) ... 00000XXX FA000400 JMPS main(0x4)
Questions: 1) Is there any way to avoid this jump instructions, suppress startup code generation and just have "plain" compiler output 2) This plain executable should be aligned to the adress (FA60h) at which I need to place my bootloader entry point
So, the idea is how to get rid of all the code not written by you, i.e. with no any piece of code added by IDE s/w.
Does anybody have answers?
Thanks & Regards, Nikolay.