This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Wrong amount of memory space reserved?!

Hi all!

I have a problem with the definition of memory space in the e.g. XT memory.
I defined a segment, like above, with 1 byte length.

?XT?MEMORY_SIZE?mifare_main SEGMENT XDATA

RSEG    ?XT?MEMORY_SIZE?xxxxxx_main
MEMORY_SIZE:  		DS      1
		memory_blocks  	XDATA    $ - MEMORY_SIZE

In the *.M51 file where you can find all memory locations it says that there are 12H bytes reserved, and I don't know why!

            XDATA   0036H     0012H     UNIT         ?XT?MEMORY_SIZE?xxxxxx_MAIN

For analysis purposes I defined the same segment in the STARTUP file and was watching again at the *.M51 file. There the compiler reserved just 1 byte, like he should do!

Can someone help me with that?
Thanks in foreward!

Parents
  • ?XT?MEMORY_SIZE?xxxxxx_main is a relocatable segment. Relocatable segments with the same name are combined by the linker. do you have anything else in this segment?

    The example you have did not assemble on my end.

    Jon

Reply
  • ?XT?MEMORY_SIZE?xxxxxx_main is a relocatable segment. Relocatable segments with the same name are combined by the linker. do you have anything else in this segment?

    The example you have did not assemble on my end.

    Jon

Children