Author Topic: Tape specific game.  (Read 821 times)

0 Members and 1 Guest are viewing this topic.

Online VincentGR

  • 6128 Plus
  • ******
  • Posts: 1.159
  • Country: gr
    • Parts from the past.
  • Liked: 648
  • Likes Given: 1646
Tape specific game.
« on: 23:32, 16 January 15 »
Hello everybody!

So, I've found a specific game for tape and it requires 1.1 basic to run.
I did some experiments just to remember the old dayzzz by copying some games from disk to tape and via versa with the supreme discology  :P

Until I saw that "specific" image that I tried to convert to disk.
I converted Toys (name of the game) to .wav so I could run it from my phone to my 6128 via tape cable.

I fired up my trusty cpc and start the copy. I did many pauses on wav player from block to block as I do on every game that I copy with success.

Finally the disk was ready and I run the game...not.
The game is freezing. I listed the .bak file which is the one that loads the .bas one !?!?

The command after the salute/instruction msg in Spanish I think is.

run"!toys.bas",&40


The game propably maps something on this memory but I am not a coder to understand or find another way.
I saw somewhere that &40 refers to restart block.

I don't want to play that game, just to make it run from disk only from curiosity.

Thanks in advance.
« Last Edit: 23:35, 16 January 15 by VincentGR »

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.753
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1004
  • Likes Given: 1717
Re: Tape specific game.
« Reply #1 on: 00:33, 17 January 15 »
BASIC programs normally start at &170 as a rule, when something is loaded from address &40 it's most certainly a binary which can have an execution address anywhere in memory (not necessarily &40). You can RUN one of these programs from BASIC, but it requires an execution address, LOADing is not possible from BASIC because you cannot simply MEMORY &3F, even OPENOUT"d":MEMORY &3F won't work.


You can have a M/C routine poked to that address (as long as you don't go over &170) I think. I'm unsure if a BASIC stub file would work like that (BASIC stub file is a BASIC file with a little bit of M/C incorporated into it), in theory if that was what it was it should be possible to load it. Unsure though since I've never done it like that.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1976
  • Likes Given: 4650
Re: Tape specific game.
« Reply #2 on: 00:43, 17 January 15 »
That's right. &40 indicated either an autostart or a fake (part of copy protection).

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline AMSDOS

  • Supporter
  • 6128 Plus
  • *
  • Posts: 3.753
  • Country: au
    • index.php?action=treasury
    • Programs for Turbo Pascal 3
  • Liked: 1004
  • Likes Given: 1717
Re: Tape specific game.
« Reply #3 on: 02:57, 17 January 15 »

Hmm okay I located the game in question on CPC-Power & used Lara to transfer it to Disk Image, but the game still insists on loading from Tape.


So the program looks like this:


Toys - BASIC File, RUNs Toys (Binary File) to &40
Toys - Binary File, Appears to handle other files
G - Screen Image
J - Another Binary File


I had a look at the program through Lara and found this program to be extensively using the Cassette Manager Firmware and playing around with the Firmware doesn't seem to want to make the program work from Disk Image - returning me with Runtime error messages, so whoever made this program seriously wanted to make it difficult to run from Disk unfortunately. You could possibly make a loader to load all the files from Disk, though I suspect the file which does all that (TOYS Binary File), will do some other stuff for setting up the game, the trick is doing that before getting to the loading parts or working out which bits deal with loading.
* Using the old Amstrad Languages :D   * with the Firmware :P
* I also like to problem solve code in BASIC :)   * And type-in Type-Ins! :D

Home Computing Weekly Programs
Popular Computing Weekly Programs
Your Computer Programs
Updated Other Program Links on Profile Page (Update April 16/15 phew!)
Programs for Turbo Pascal 3

Online VincentGR

  • 6128 Plus
  • ******
  • Posts: 1.159
  • Country: gr
    • Parts from the past.
  • Liked: 648
  • Likes Given: 1646
Re: Tape specific game.
« Reply #4 on: 03:00, 17 January 15 »
Wow! Thank you all for you time.