buts101
Full Member level 3
hello guys
I am using Keil compiler to write programming 8051 microcontrollers in C language.
My code compiles and generates HEX file. But i need to start that CODE MEMORY from 0100H. I
know how to start from assembling language i.e.
-----
jmp main
org 0100h
main: p1,#00h
;other statements
-------
I need the same trick that may be use in C language. But C language doesn't take "ORG
0100h".
So, how can i start the HEX from 0100h in 8051 code memory after compiler C code.
Looking forward for your help
Thank you
Buts101
I am using Keil compiler to write programming 8051 microcontrollers in C language.
My code compiles and generates HEX file. But i need to start that CODE MEMORY from 0100H. I
know how to start from assembling language i.e.
-----
jmp main
org 0100h
main: p1,#00h
;other statements
-------
I need the same trick that may be use in C language. But C language doesn't take "ORG
0100h".
So, how can i start the HEX from 0100h in 8051 code memory after compiler C code.
Looking forward for your help
Thank you
Buts101