Hi, Perhaps I asked about this once before... I am looking for a way to create a list of assembled segments. What I want is a table where every segment generated by the linker would produce 2 numbers. 1) load address of this segment in RAM 2) offset to the first byte of this segment from the start of the file and perhaps even 3) length of this segment in the file Is there a way to make the linker produce a table like this that I could access from my code at run time? I know that I can do it by writing asm by hand. The question is that can I automate this process so that the user does not have to code it. Another approach would be to have some asm macro that could iterate through all segments mentioned in the cfg file and produce some asm source out of it. nr = 0 foreach segment [list segments] .export $segment_NUMBER = nr++ .word $segment+_CODE_SIZE .word $segment+_CODE_LOAD_ADDRESS ... In this way I could assemble a cart directory automatically during the build. -- Regards, Karri ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Fri Mar 18 07:48:04 2011
This archive was generated by hypermail 2.1.8 : 2011-03-18 07:48:07 CET