/* Define Starting Point for filt*/INIT RESETNAMES END /* CodeWarrior will pass all the needed files to the linker by command line. But here you may add your own files too. */SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */ ROM = READ_ONLY 0xE000 TO 0xFFAD FILL 0x83; Z_RAM = READ_WRITE 0x0060 TO 0x00FF; RAM = READ_WRITE 0x0100 TO 0x025F; ROM1 = READ_ONLY 0xFFC0 TO 0xFFCF;ENDPLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */ DEFAULT_RAM INTO RAM; DEFAULT_ROM, ROM_VAR, STRINGS INTO ROM; /* ROM1 In case you want to use ROM1 as well, be sure the option -OnB=b is passed to the compiler. */ _DATA_ZEROPAGE, MY_ZEROPAGE INTO Z_RAM;ENDSTACKSIZE 0x50VECTOR 0 RESET /* Reset vector: this is the default entry point for an application. */
Message Edited by CrasyCat on 2007-04-13 02:17 PM
CompilerGuru wrote:If you want to use absolute assembly, I would suggest to fill the remaining memory with the assembler too.
Something (not tested) (will only work in absolute code) like
DCB $FFAD-*,$83
at the end of your file should do it.
DanielAnd that works perfectly in the Absolute Assembly model.. Thank you very much..But.. I'm still curious about a few things and for a learning benefit would like to ask a few more questions.I did find that I was using -FA2 in the Assembler (not the compiler) settings and when I removed that from the settings and compiled with the linker and the prm file the "Project" .sx file now contains and entired filled memory with the 0x83's and then after that the code.. at exactly the same addresses.. Not quite what I was looking for. For future reference if any one hase any ideas I'd greatly appreciate.As an FYI to my previous question about the listing files. I learned that I probably want an Assembler listing file, not a compiler listing file since my project is all in assembly.. My compiler listing file request was going totaly unanswered. But once I found the Assembler listing file setting I do now get a listing file that I expected from the AssemblerThanks again for all the help.
>>I did find that I was using -FA2 in the Assembler (not the compiler)
>>settings and when I removed that from the settings and compiled with the
>>linker and the prm file the "Project" .sx file now contains and entired
>>filled memory with the 0x83's and then after that the code.. at exactly
>>the same addresses.. Not quite what I was looking for. For future
>>reference if any one hase any ideas I'd greatly appreciate.
>I would expect to get some linker error messages for such a setup. Did you get any? Do you have any >options in the linker tab, for some projects those linker errors are disabled because the same message >is also issued for non initialized, absolute overlaps, and those dont hurt and happen when using multiple >(or broken) derivative headers.
You are corrrect there are options selected in the linker tab that I didn't put there and it does seem that they are disabling those overlap warnings. The options in the window were -WmsgSd1100 -WmsgSd1912. Do you think that there is a way that I can use my ORG statements in the Code, and get the linker to function properly creating the .sx file or should I just stay with the absolute assembly method with no linker, and getting the .sx file from the ObjectCode directory. The only reason I would do this is that the .sx file created by the linker ends up in the Bin directory which is where I would expect to look for it.
>>My compiler listing file request was going totaly unanswered.
>Use the compiler option -lasm causes the compiler to generate a listing
>(corresponding assembler option is -L, I think), also the context menu contains a disassemble which is >also just that if you do want to have the listing just on request and not during the build.
The compiler does have that -Lasm option in it's settings, but I think that the compiler is not being asked to do anything in my instance, since I'm all assembly language anyway. I think that the compiler would only be called for a C project. Am I correct?
Thanks again for all your assistance.
Message Edited by bigmac on 2006-09-14 01:51 PM