Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory Map
#1
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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#2
LCD Wrote: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.

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)
Reply
#3
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!
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#4
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.
Reply
#5
[+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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#6
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 -->
Reply
#7
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).
[Image: XIDE.PNG]
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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#8
LCD Wrote: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.
WOOOOW! Confusedhock: :o
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.
Reply
#9
boriel Wrote:
LCD Wrote: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.
WOOOOW! Confusedhock: :o
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.
Thank you, a great compiler deserves a great IDE Big Grin. I still have a lot to code but I can announce it at WOS too (Yes, I will do it!). I want to add a binary manager (with support for memory banks of Spectrum 128, maybe even multiload levels), code library, screen designer and other stuff. I even pointed to your page from the XIDE (selecting Compiler, user can press toe "www" button to go to download page of ZXBC).
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.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply
#10
LCD Wrote:Thank you, a great compiler deserves a great IDE Big Grin. I still have a lot to code but I can announce it at WOS too (Yes, I will do it!). I want to add a binary manager (with support for memory banks of Spectrum 128, maybe even multiload levels), code library, screen designer and other stuff. I even pointed to your page from the XIDE (selecting Compiler, user can press toe "www" button to go to download page of ZXBC).
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.
Thanks again! Smile
Regarding the bitwise operatos, yes, I was thinking on using BAND, BOR, BXOR, BNOT
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)