'Star Rank Boxing V2'
Author:hyper active (registered user: 296 posts )
Date: Wed, Jun 15th, 2011 @ 01:53 ( . )

I'm no expert, but they probably ran into too many problems with some 1541 or 1571 drives that just weren't compatible enough to pass the protection, the way accolade did on some of their games.
Another reason for it's rare use is the price that Harald might have charged for it.


REPLY: [With No Quote] --- [With Quoted Text]

'Star Rank Boxing V2'
Author:Lord Crass (guest: search)
Date: Wed, Jun 15th, 2011 @ 23:16 ( . )

The drive code that is uploaded can be anything the programmer wants it to be and is easily changed if a particular routine was unreliable. I was referring more to the C64 code, which is amazingly well protected.

There p-code is decrypted as it is called. The VM itself (along with the p-code again) is encrypted. The routine that decrypts the VM is encrypted as well, using the entire (encrypted) VM as the decryption key. Once the drive-side protection passes, the drive code loads in 2 encrypted sectors from track 18 which decrypts to one sector of code. That code then loads and decrypts 3 other encrypted sectors on track 18 which becomes the drive code of the V-Max loader that is used to load the main game.

It's the routine that decrypts the VM which is the rough part though. It's a giant mess of spaghetti code, throwing addresses and values all over the place. It's deliberately inefficient to confuse you. While decrypting, it's using $1800 bytes of extra data I'm guessing as some kind of checksum that regurgitates into the decryption routine, because if you alter even one byte of the encrypted VM code, the rest of it decrypts as garbage. This decrypt routine is over 4K in code size alone (not including that $1800 bytes of "junk"), and is almost VM-like itself. Just to give you an idea of how much useless crap is in there to throw you off, the decrypt code I wrote that decodes the VM is only 26 bytes, and the code to re-encrypt the VM is 32 bytes. The code mess does more than just decrypt though, so you can't just skip over it.

This is one of those cases where letting the game code load in, finding the entry point, then saving it off to disk and putting in your own loader is FAR easier than attacking the protection head-on.

An appropriate message in the spaghetti code:

"DON'T WASTE YOURTIME"


REPLY: [With No Quote] --- [With Quoted Text]

'Star Rank Boxing V2'
Author:Lord Crass (guest: search)
Date: Thu, Jun 16th, 2011 @ 02:57 ( . )

I missed it originally, but Star Rank Boxing v1 also has the VM, though it doesn't have the nasty encryption like v2 has. The p-code still has simple encryption.

However, the whole VM is simple to bypass in v1. There are also slight differences in it.


REPLY: [With No Quote] --- [With Quoted Text]


--- 0 Users Online --- 0 Recent Unique Posters

Q66=1714930765 - Threads: / 1714930765