FAQ  •  Register  •  Login

Memory Map

<<

LCD

Posts: 570

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Mon May 11, 2009 12:22 pm

Memory Map

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!
<<

boriel

Site Admin

Posts: 1278

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Mon May 11, 2009 12:38 pm

Re: Memory Map

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)
<<

LCD

Posts: 570

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Mon May 11, 2009 1:22 pm

Re: Memory Map

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!
<<

Kiwi

Posts: 1

Joined: Sun May 17, 2009 5:51 am

Post Sun May 17, 2009 5:55 am

Re: Memory Map

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.
<<

LCD

Posts: 570

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Sun May 17, 2009 12:28 pm

Re: Memory Map

[+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!
<<

boriel

Site Admin

Posts: 1278

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sun May 17, 2009 12:48 pm

Re: Memory Map

I've put a tiny tutorial/HowTO for Tommy Gun here: viewtopic.php?f=14&t=329&start=0
<<

LCD

Posts: 570

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Sat Jun 06, 2009 9:47 pm

Re: Memory Map

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
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!
<<

boriel

Site Admin

Posts: 1278

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sat Jun 06, 2009 10:25 pm

Re: Memory Map

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! :shock: :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.
<<

LCD

Posts: 570

Joined: Fri Feb 13, 2009 3:11 pm

Location: Vienna, Austria

Post Sun Jun 07, 2009 11:09 am

Re: Memory Map

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! :shock: :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 :D. 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!
<<

boriel

Site Admin

Posts: 1278

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Sun Jun 07, 2009 11:33 am

Re: Memory Map

LCD wrote:Thank you, a great compiler deserves a great IDE :D. 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! :)
Regarding the bitwise operatos, yes, I was thinking on using BAND, BOR, BXOR, BNOT

Return to Wishlist

Who is online

Users browsing this forum: No registered users and 0 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO