![]() |
Memory Map - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Wishlist (https://www.boriel.com/forum/forumdisplay.php?fid=14) +---- Thread: Memory Map (/showthread.php?tid=106) |
Memory Map - LCD - 05-11-2009 As mentioned on WOS: A idea for the future version: How about the compiler generating a text file with memory map (not very complex... or with selectable level of detail) I think, something like: 25000-45678 : Main Program 45679-52111 : ASM: Label GRAPHICSDATA 52112-59876 : ASM: Label LevelData 59877-60521 : Variables or: 25000 : Main Program 45679 : ASM: Label GRAPHICSDATA 52112 : ASM: Label LevelData 59877 : Variables Level of Detail: 0=Only Program and Variables 1=like 0, but additionaly ASM Labels 2=like 1, but additionaly Basic Labels 3=like 2, but adresses of every used variable added (HiSoft Basic Compiler does this too, this will make it easier to alter or read variables of compiled programs from BASIC Loader for example) Using a switch like -m level, -M "Filename.txt" or similar (I do not know how the parser works, maybe this can be joined into a single switch) Memory map can then be parsed by the editor, or the user can check the details. Re: Memory Map - boriel - 05-11-2009 LCD Wrote:As mentioned on WOS: hmmm. Sounds interesting. I guess it should probably be added to the assembler, since it is the assembler which knows real memory addresses. I think I have a possible solution that will work. will tell you in 1.1.10 (1.2.0) Re: Memory Map - LCD - 05-11-2009 boriel Wrote:hmmm. Sounds interesting. I guess it should probably be added to the assembler, since it is the assembler which knows real memory addresses. I think I have a possible solution that will work. will tell you in 1.1.10 (1.2.0)Yes, in fact the Assembler will know it. Excellent, I'm looking forward to see the next version. Thank you! Re: Memory Map - Kiwi - 05-17-2009 Yes good idea. I have been meaning to complete my memory map editor in TommyGun and it will load map files from any assembler and display the map for you. Plus you can custom label areas as well. Basically it would merge the default machine map (ie. ZX Spectrum memory layout) your programs map file and your custom changes into 1 view. If you add this feature to ZX Basic I would be happy to try and finish off my memory map editor. Re: Memory Map - LCD - 05-17-2009 [+1] I did my first experiments with Retro-X as IDE for ZXBC too, with changing the lexer (Scintilla based) to allow Syntax highlightning for ZXBC. Still much to do, because sofe of the concept is a little bit different from TommyGun (which I use too. Btw: great work, Kiwi! I just downloaded todays version), but much of the concept is equal. Re: Memory Map - boriel - 05-17-2009 I've put a tiny tutorial/HowTO for Tommy Gun here: <!-- l --><a class="postlink-local" href="http://www.boriel.com/forum/viewtopic.php?f=14&t=329&start=0">viewtopic.php?f=14&t=329&start=0</a><!-- l --> Re: Memory Map - LCD - 06-06-2009 Nice! I compiled some stuff with TommyGun, for testing. Works great! By the way, this is the IDE which I'm currently working on (Screenshot from german version). Just a early preview and not finished yet, but I hope, you like it. The features are: Multiview of sources, Autocompletion, syntax highlightning, Quickhelp, foldings and tons of other. Re: Memory Map - boriel - 06-06-2009 LCD Wrote:Nice! I compiled some stuff with TommyGun, for testing. Works great!WOOOOW! ![]() I'm really astounded!! :!: It' looks great!, really! You should announce it at WOS, I think. On the other hand, this month I'm preparing some papers for my PhD so haven't touched the compiler. I hope to have some spare time on July. Re: Memory Map - LCD - 06-07-2009 boriel Wrote:Thank you, a great compiler deserves a great IDELCD Wrote:Nice! I compiled some stuff with TommyGun, for testing. Works great!WOOOOW! ![]() Im now waiting for you adding binary AND, OR and XOR. Will you use the SAM Coupé BASIC compatible keywords for this (BAND, BOR, ...)? Anyway, take a break from the work on the compiler and do the preparation of your PhD papers, because this is more important. Re: Memory Map - boriel - 06-07-2009 LCD Wrote:Thank you, a great compiler deserves a great IDEThanks again! ![]() Regarding the bitwise operatos, yes, I was thinking on using BAND, BOR, BXOR, BNOT |