Adding paddle support to Spacesnake?
Moderator: Moderators
- Pedro Lambrini
- Vic 20 Scientist
- Posts: 1132
- Joined: Mon Dec 01, 2008 11:36 am
They are both the same game program but the one you have has an extra layer of obfuscation hiding the BASIC part and is missing the disable memory expansion program that makes the original able to load and run correctly whatever memory expansion is fitted.nippur72 wrote:Also, Lee mentioned Space Snake being mix of basic and ML, but the version I've downloaded seems to be entirely in ML (it has a single SYS). What is the correct version?
Lee.
Yes I disassembled it myself but it won't rebuild to the original without extra work.
You would need to remove all my comments and reassemble the lines that I've split into separate statements. The resulting BASIC source would need to be tokenised by some other tool as a lot of the resulting lines are too long to be input directly on a Vic.
If you wanted to make changes to the machine code parts other tools would be needed to assemble the machine code parts and produce the new hex code for the BASIC data statements.
It's also missing the loader program that disables any memory expansion as far as BASIC is concerned and the second loader that fixes the NMI vector to nuke the code and reset the machine.
Think of it more like an autopsy, you can't remake the thing from these parts but you can see how the thing was made.
Lee.
You would need to remove all my comments and reassemble the lines that I've split into separate statements. The resulting BASIC source would need to be tokenised by some other tool as a lot of the resulting lines are too long to be input directly on a Vic.
If you wanted to make changes to the machine code parts other tools would be needed to assemble the machine code parts and produce the new hex code for the BASIC data statements.
It's also missing the loader program that disables any memory expansion as far as BASIC is concerned and the second loader that fixes the NMI vector to nuke the code and reset the machine.
Think of it more like an autopsy, you can't remake the thing from these parts but you can see how the thing was made.
Lee.
Ok, it seems perfect for testing my assembler preprocessor tool that lets me mix basic and ML together. My only doubt is: is there any need for the loader/extra stuff, or can I simply skip that?Leeeeee wrote:Yes I disassembled it myself but it won't rebuild to the original without extra work. You would need to [...]
All the first loader did was to make sure all BASIC's settings were the same as they would be with no expansion RAM installed and then load the second loader. This then checked that it had been loaded by the first loader before boobytrapping NMI and loading the game.
So no, you don't really need it.
Lee.
So no, you don't really need it.
Lee.
- Pedro Lambrini
- Vic 20 Scientist
- Posts: 1132
- Joined: Mon Dec 01, 2008 11:36 am
- Pedro Lambrini
- Vic 20 Scientist
- Posts: 1132
- Joined: Mon Dec 01, 2008 11:36 am