In a similar vein to running CRT as PRG
Moderator: Moderators
- Mayhem
- High Bidder
- Posts: 3027
- Joined: Mon May 24, 2004 7:03 am
- Website: http://www.mayhem64.co.uk
- Location: London
In a similar vein to running CRT as PRG
I've got hold a game not in GB20 that looks to be rather impressive. However it has only been supplied in the form of emulator snapshots (for emulators no longer supported) or the basic/ML files.
Fortunately the author gives instruction how to get it working on a real Vic20. So assuming you can write a program to run off a d64 in Vice, could someone kindly write a loader program to perform these tasks?
1. Instruct the emulator to load the binary file SORCLIB.BIN beginning at $1200 (this machine code library contains the Windowing routines used).
2. Relocate BASIC to begin at $1CAC. Do this by typing the following BASIC commands: POKE 43, 172: POKE 44, 28
3. If you’re running an emulator other than PCVIC, type the BASIC command NEW.
4. Load the BASIC file SORCERY.BAS beginning at $1CAC (some emulators may require you to rename this file SORCERY.BIN).
5. Type the BASIC command RUN. You should see the title screen.
Fortunately the author gives instruction how to get it working on a real Vic20. So assuming you can write a program to run off a d64 in Vice, could someone kindly write a loader program to perform these tasks?
1. Instruct the emulator to load the binary file SORCLIB.BIN beginning at $1200 (this machine code library contains the Windowing routines used).
2. Relocate BASIC to begin at $1CAC. Do this by typing the following BASIC commands: POKE 43, 172: POKE 44, 28
3. If you’re running an emulator other than PCVIC, type the BASIC command NEW.
4. Load the BASIC file SORCERY.BAS beginning at $1CAC (some emulators may require you to rename this file SORCERY.BIN).
5. Type the BASIC command RUN. You should see the title screen.
Lie with passion and be forever damned...
I would probably load the two files into memory, add the following routine right before the ML library and save the memory dump from $11f2 to the end address of the Basic part:
$11f2 LDA #172
$11f4 STA 43
$11f6 LDA #28
$11f8 STA 44
$11fa JSR $C659
$11fd JMP $C7AE
Then I would let PuCrunch do wonders, given the start address $11f2. You get a single-filed program that starts with RUN and is effectively crunched. If you need help, send me the files and I can assemble (!) it for you.
$11f2 LDA #172
$11f4 STA 43
$11f6 LDA #28
$11f8 STA 44
$11fa JSR $C659
$11fd JMP $C7AE
Then I would let PuCrunch do wonders, given the start address $11f2. You get a single-filed program that starts with RUN and is effectively crunched. If you need help, send me the files and I can assemble (!) it for you.
Anders Carlsson
- Mayhem
- High Bidder
- Posts: 3027
- Joined: Mon May 24, 2004 7:03 am
- Website: http://www.mayhem64.co.uk
- Location: London
- Mayhem
- High Bidder
- Posts: 3027
- Joined: Mon May 24, 2004 7:03 am
- Website: http://www.mayhem64.co.uk
- Location: London
Back to you: http://www.cbm.sfks.se/files/sorcery.prg
Single-filed, crunched, immediately executable with 16K expansion.
Edit: At first I planned to use the "short" decompression routine instead of the "fast" one, as the Basic program itself takes an eternity to start, but it seems the "short" routine eats part of the program. Thus, I had to recapitulate to the 20 byte longer "fast" version.
Single-filed, crunched, immediately executable with 16K expansion.
Edit: At first I planned to use the "short" decompression routine instead of the "fast" one, as the Basic program itself takes an eternity to start, but it seems the "short" routine eats part of the program. Thus, I had to recapitulate to the 20 byte longer "fast" version.
Anders Carlsson
- Mayhem
- High Bidder
- Posts: 3027
- Joined: Mon May 24, 2004 7:03 am
- Website: http://www.mayhem64.co.uk
- Location: London
- Mayhem
- High Bidder
- Posts: 3027
- Joined: Mon May 24, 2004 7:03 am
- Website: http://www.mayhem64.co.uk
- Location: London
I wonder about this aswell. I have the Omega-Race conversion that I think should be archived.carlsson wrote:Sure. As posted before, I have a pile of previously (?) commerical software single-filed I could upl^H^H^Harchive somewhere. Not sure if I should dump it onto Bo, Marko, you, someone else or all of them.
- Mayhem
- High Bidder
- Posts: 3027
- Joined: Mon May 24, 2004 7:03 am
- Website: http://www.mayhem64.co.uk
- Location: London
- orion70
- VICtalian
- Posts: 4341
- Joined: Thu Feb 02, 2006 4:45 am
- Location: Piacenza, Italy
- Occupation: Biologist
Great Carlsson, be prepared to do it again for version 1.1 (see http://sleepingelephant.com/ipw-web/bul ... php?t=1406)carlsson wrote:Back to you: http://www.cbm.sfks.se/files/sorcery.prg
Single-filed, crunched, immediately executable with 16K expansion.
Cheers.