Tridim - the 3D modelling program
Re: Tridim - the 3D modelling program
Turbo is probably very close to SupecrCharge when it is creating threaded code, which is more a list of to-be-called subroutines than machine code - Turbo has the additional option to optimize for speed ("FAST") which is in the manuals described as "assembles 680008 machine code"), and I would guess if you use that you'd be ending up with a fundamentally different program than what SuperCharge used to produce.
Tobias
Tobias
ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
-
- RWAP Master
- Posts: 2893
- Joined: Sun Nov 28, 2010 4:51 pm
- Location: Stone, United Kingdom
- Contact:
Re: Tridim - the 3D modelling program
In the longer term it would make sense to get Simon Goodwin involved in thisDerek_Stewart wrote:Hi Martin,
I have compared a Supercharge and Turbo compiled programme, the SuperBasic commands look to appear at the same point. There maybe be some sort of common data structure between the two. Since Turbo is supposed to be an enhanced Supercharge Compiler.
I was reading the Turbo manuals when I was in disposed, I will resume this and get a better insight into the way Turbo is structured.
I do not have any Supercharge manuals except for the Updates in the DP Collection, do you have the Surpercharge that I could scan?

I should have a Supercharge manual somewhere - although not sure how easy it will be to scan in as it will be on DP's classic coloured paper!
Rich Mellor
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module - add a USB printer to your QL
Also Involved in:
Icephorm
Re: Tridim - the 3D modelling program
Simon Goodwin wrote a detailed thesis on SuperCharge. IIRC, SC was his BSc project. I had a copy once but I cant find it anywhere just now. However, the Turbo source code is available. Wouldnt that be a good place to start?
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
-
- Font of All Knowledge
- Posts: 4688
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: Tridim - the 3D modelling program
Hi Rich,RWAP wrote: I should have a Supercharge manual somewhere - although not sure how easy it will be to scan in as it will be on DP's classic coloured paper!
The coloured paper is no problem in modern scanning software. The colour can be contrasted out with the software controls.
If you want send it to me I can scan easily.
Regards,
Derek
Derek
-
- Font of All Knowledge
- Posts: 4688
- Joined: Mon Dec 20, 2010 11:40 am
- Location: Sunny Runcorn, Cheshire, UK
Re: Tridim - the 3D modelling program
Hi Per,pjw wrote:Simon Goodwin wrote a detailed thesis on SuperCharge. IIRC, SC was his BSc project. I had a copy once but I cant find it anywhere just now. However, the Turbo source code is available. Wouldnt that be a good place to start?
Simon's Thesis is included in the Turbo Manuals.
I was trying disassemble the Turbo compiled code to produce the intermediate code. Then work the Intermediate code to S*Basic output.
Regards,
Derek
Derek
Re: Tridim - the 3D modelling program
Hi Derek,
I understand your intention. All I meant was that to unpick something, the code describing how it was put together would be a useful key. After all its not like unscrambling eggs, where knowing how the egg was scrambled wont help very much
For my part, I much rather like to see how Q-Liberator does its stuff. Not to unravel the old program, but to update QLib at last! But thats a different topic..
I understand your intention. All I meant was that to unpick something, the code describing how it was put together would be a useful key. After all its not like unscrambling eggs, where knowing how the egg was scrambled wont help very much

For my part, I much rather like to see how Q-Liberator does its stuff. Not to unravel the old program, but to update QLib at last! But thats a different topic..
Per
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
I love long walks, especially when they are taken by people who annoy me.
- Fred Allen
-
- Aurora
- Posts: 970
- Joined: Tue Dec 17, 2013 1:17 pm
Re: Tridim - the 3D modelling program
From my investigations, The list of SuperBASIC commands at the end of the program are not complete. They help a lot as they get called like a SuperBASIC extension would normally with a name table entry set up. The commands that are missing are things like FOR, IF, PRINT, INPUT ,PEEK, POKE, REPeat etc. (REPeat loops end up as GOTO's).Derek_Stewart wrote:I have compared a Supercharge and Turbo compiled programme, the SuperBasic commands look to appear at the same point. There maybe be some sort of common data structure between the two. Since Turbo is supposed to be an enhanced Supercharge Compiler.
In front of the SuperBASIC commands is the 'coded' version of the SuperBASIC program, In front of that is the routines that the 'coded' version of the SuperBASIC programs calls. And in front of that is the code that actually runs everything.
I know I've put it in reverse order, but you get the idea.
Martin
-
- Aurora
- Posts: 970
- Joined: Tue Dec 17, 2013 1:17 pm
Re: Tridim - the 3D modelling program
Here is a copy of my disassembly of Tridim that you could use to compare with Turbo files. It shows where I have identified various bits, and hand decompiled various parts of the coded version of the SuperBASIC program. Some of the comments I have made may be incorrect, as well as some of my hand decompiling. So I have also included a copy of the raw output of the decompiler program, so you can compare it with what's in the disassembly.
Martin
Martin
- Attachments
-
- Notes.zip
- (138.23 KiB) Downloaded 161 times
Re: Tridim - the 3D modelling program
Martin , this is absolutely brilliant, I thought decompiling Super/Turbo program was basically impossible and you did it in one way or the other.Martin_Head wrote:Here is a copy of my disassembly of Tridim that you could use to compare with Turbo files. It shows where I have identified various bits, and hand decompiled various parts of the coded version of the SuperBASIC program. Some of the comments I have made may be incorrect, as well as some of my hand decompiling. So I have also included a copy of the raw output of the decompiler program, so you can compare it with what's in the disassembly.
Martin
I am also (sometime) spend sometime with older program to de-assembler to make them working with modern SMSQ/E (I did some work with different CPM emulator

Can I ask you to have your disassembler to see how it works? Even if incomplete or need manual intervention could be source of inspiration, or even, by any chance, you wrote any documentation of how you did it.
Last but not least, let me take this opportunity to thank you for IpNet driver, I am using regurarly in my personal lan to connect to my home main file server (even from remote using VPN)

Regards
Fabrizio
-
- Aurora
- Posts: 970
- Joined: Tue Dec 17, 2013 1:17 pm
Re: Tridim - the 3D modelling program
I don't really want to post the decompiler here, because as it stands it can only deal with Tridim, and the documentation is almost nil. If you PM me an email address I will email you a copy.bixio60 wrote:Can I ask you to have your disassembler to see how it works? Even if incomplete or need manual intervention could be source of inspiration, or even, by any chance, you wrote any documentation of how you did it.
Last but not least, let me take this opportunity to thank you for IpNet driver, I am using regurarly in my personal lan to connect to my home main file server (even from remote using VPN)![]()
Regards
Fabrizio
Martin