pisoiu
Advanced Member level 3
keil related question
Hi,
I am stuck from hours in this stupid keil assembler directives trying to solve a problem, but nothing so far. Here is what I want to do, maybe one more experienced than me can help. All is written in asm.
My device is 51 based, and it has an internal code memory(2k) and external eeprom memory (4k) for constants. The main module needs data (which are mainly ascii strings) from that memory using i2c bus. Those data are defined in external memory in a separate .asm file with:
label: DB 'blablabla'
But in the main code I need pointers to address them and for that I need to exchange labels between modules, in order for MOV DPTR,#label to point to correct address of 'label' in the other module. Let's say I have code.asm the file with main code, and i2c.asm the file for external data. I have managed so far to solve correct pointing address for 'label', but the problem is at the output. I need 2 separate .hex files, one with code and one with content of i2c memory, both starting at addres 0. So far I only got one .hex file at output, with the content of both (code and i2c) files, overlapped at 0. Any ideas? Thanks very much,
/pisoiu
Hi,
I am stuck from hours in this stupid keil assembler directives trying to solve a problem, but nothing so far. Here is what I want to do, maybe one more experienced than me can help. All is written in asm.
My device is 51 based, and it has an internal code memory(2k) and external eeprom memory (4k) for constants. The main module needs data (which are mainly ascii strings) from that memory using i2c bus. Those data are defined in external memory in a separate .asm file with:
label: DB 'blablabla'
But in the main code I need pointers to address them and for that I need to exchange labels between modules, in order for MOV DPTR,#label to point to correct address of 'label' in the other module. Let's say I have code.asm the file with main code, and i2c.asm the file for external data. I have managed so far to solve correct pointing address for 'label', but the problem is at the output. I need 2 separate .hex files, one with code and one with content of i2c memory, both starting at addres 0. So far I only got one .hex file at output, with the content of both (code and i2c) files, overlapped at 0. Any ideas? Thanks very much,
/pisoiu