 | Discussion Forum |  |
|
|
Stupid Question with cygnal but important for me....Next Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Marco marco Posted 8-Sep-2004 09:11 GMT Toolset C51 |  Stupid Question with cygnal but important for me.... Marco marco I have made a little loader for 8051f300 of cygnal , this loader is located from 0x0000 to 0x9ff.
With this loader i can install application through rs232 in memory from 0xa02 to 0x1dff.
I have reserved 2 byte (0x0a00 0xa01) for the version of application installed.
This is the big problem.....
I have compiled the application , and have inserted in linker the line CODE (?PR?0xa02......etc) for the program and is all OK.
but....
How i can insert in the code of application , 2 byte for the version in 0xa00 and 0xa01 location ??
Sorry for my lame english.
Thank to all | | Read-Only Author Hans-Bernhard Broeker Posted 8-Sep-2004 11:13 GMT Toolset C51 |  RE: Stupid Question with cygnal but important for me.... Hans-Bernhard Broeker In C: Declare an initialized two-byte array of memory class 'code', in a segment of its own, and instruct the linker to put that at 0xa00. See the section on 'absolute memory addresses' in the Manual for further details.
In ASM:
CSEG
ORG 0xa00
DB VERSION_HI, VERSION_LO
| | Read-Only Author Keil Support, Intl. Posted 8-Sep-2004 14:12 GMT Toolset C51 |  RE: Stupid Question with cygnal but important for me.... Keil Support, Intl. You can find another way of doing it in: http://www.keil.com/support/docs/301.htm | | Read-Only Author Marco marco Posted 8-Sep-2004 17:00 GMT Toolset C51 |  RE: Stupid Question with cygnal but important for me.... Marco marco WORKK!!! Thank to all ! | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|