Tips for Reverse Engineering a Cassette Program

Basic and Machine Language

Moderator: Moderators

User avatar
srowe
Vic 20 Scientist
Posts: 1340
Joined: Mon Jun 16, 2014 3:19 pm

Re: Tips for Reverse Engineering a Cassette Program

Post by srowe »

I still get a ?LOAD ERROR with this .tap file.
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Re: Tips for Reverse Engineering a Cassette Program

Post by orion70 »

I can load the TAP file correctly with 8K+ RAM.
User avatar
srowe
Vic 20 Scientist
Posts: 1340
Joined: Mon Jun 16, 2014 3:19 pm

Re: Tips for Reverse Engineering a Cassette Program

Post by srowe »

orion70 wrote: Sat Feb 27, 2021 3:37 am I can load the TAP file correctly with 8K+ RAM.
Weird, is that with a PAL configuration?

Code: Select all

[srowe@gilraen boss-chess]$ unzip ~/Downloads/BOSS-8k.zip       
Archive:  /home/srowe/Downloads/BOSS-8k.zip
  inflating: BOSS-8k.TAP             
[srowe@gilraen boss-chess]$ xvic -memory 8k -1 BOSS-8k.TAP
Followed by LOAD gives me
Screenshot_20210227_100637.png
User avatar
vicist
Vic 20 Afficionado
Posts: 352
Joined: Tue Oct 09, 2012 5:26 am
Location: Sheffield, UK

Re: Tips for Reverse Engineering a Cassette Program

Post by vicist »

I had the same problem.
Used Tap-Clean on the file and that did the trick.
Now loads OK at warp in vice. :)
User avatar
srowe
Vic 20 Scientist
Posts: 1340
Joined: Mon Jun 16, 2014 3:19 pm

Re: Tips for Reverse Engineering a Cassette Program

Post by srowe »

Could you attach the cleaned .tap file?
User avatar
vicist
Vic 20 Afficionado
Posts: 352
Joined: Tue Oct 09, 2012 5:26 am
Location: Sheffield, UK

Re: Tips for Reverse Engineering a Cassette Program

Post by vicist »

Sure....
cleaned_BOSS-8k.zip
(421.78 KiB) Downloaded 49 times
User avatar
srowe
Vic 20 Scientist
Posts: 1340
Joined: Mon Jun 16, 2014 3:19 pm

Re: Tips for Reverse Engineering a Cassette Program

Post by srowe »

I still get a ?LOAD ERROR, even with this copy.
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Re: Tips for Reverse Engineering a Cassette Program

Post by orion70 »

Why don't you just use winvice instead of the command line vice? If you are a Linux user, WinE will easily run windows executables.
User avatar
vicist
Vic 20 Afficionado
Posts: 352
Joined: Tue Oct 09, 2012 5:26 am
Location: Sheffield, UK

Re: Tips for Reverse Engineering a Cassette Program

Post by vicist »

Tap-Clean reports errors after cleaning but it still works.

Using load will produce a 'LOAD ERROR'.
Using 'shift RUN/STOP' works.

Don't ask me why. :roll:
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Re: Tips for Reverse Engineering a Cassette Program

Post by orion70 »

Yep drag and drop into the vice window will in fact emulate a shift+run.
User avatar
srowe
Vic 20 Scientist
Posts: 1340
Joined: Mon Jun 16, 2014 3:19 pm

Re: Tips for Reverse Engineering a Cassette Program

Post by srowe »

vicist wrote: Sun Feb 28, 2021 8:45 am Tap-Clean reports errors after cleaning but it still works.

Using load will produce a 'LOAD ERROR'.
Using 'shift RUN/STOP' works.

Don't ask me why. :roll:
If you see "LOAD ERROR" then the KERNAL has detected long/short blocks and/or checksum errors. Whatever is loaded is corrupt in some way. RUN/STOP only "works" because it rams the characters "LOAD<CR>" "RUN<CR>" into the keyboard buffer, it doesn't magically fix anything.
User avatar
vicist
Vic 20 Afficionado
Posts: 352
Joined: Tue Oct 09, 2012 5:26 am
Location: Sheffield, UK

Re: Tips for Reverse Engineering a Cassette Program

Post by vicist »

No, no magic...

...and yet it works.
User avatar
nbla000
Salmon Run
Posts: 2582
Joined: Thu Oct 13, 2005 8:58 am
Location: Italy

Re: Tips for Reverse Engineering a Cassette Program

Post by nbla000 »

Yes, it seems that works even if there is a "?LOAD ERROR" but maybe will be problems in a certain condition of the game or something else who knows.

Btw I've tried to create a prg file from both original/cleaned tape but each time it will produce a prg (from $1201 to $3FFF) with different CRC32, it works but I don't trust it.

By filling memory from 1201 to 3fff with an arbitrary value before to load the TAP, you see these value inside this range 1201/3ff and not always in the same place, for me a new dump is better.
Mega-Cart: the cartridge you plug in once and for all.
groepaz
Vic 20 Scientist
Posts: 1187
Joined: Wed Aug 25, 2010 5:30 pm

Re: Tips for Reverse Engineering a Cassette Program

Post by groepaz »

Why don't you just use winvice instead of the command line vice?
there is no such thing as a "command line vice". winvice can be started using the exact same commandline.
I'm just a Software Guy who has no Idea how the Hardware works. Don't listen to me.
User avatar
orion70
VICtalian
Posts: 4341
Joined: Thu Feb 02, 2006 4:45 am
Location: Piacenza, Italy
Occupation: Biologist

Re: Tips for Reverse Engineering a Cassette Program

Post by orion70 »

Ok, i meant "launch the program dragging it into the window".
Post Reply