English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 12 August 2020, 18:33   #1
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 100
Shadow Of The Beast 2 - Anti Action-Replay Code

Hi !


Actually, I working on this game (IPF ID 1359)
and I think this game has a anti-Action-replay code.
I tested this on a Real Amiga 500 and WinUAE
/!\ see my last message at the bottom of this thread : More test....


Start the game to level1
Enter in AR
Exit to AR
(no problem)
Enter in AR (again so)
Exit to AR
and... now it's no longer possible to use F1->F10 Key and another Key like 'A' to enter a 'communication'.
I searched a little and I find an exeption 2 is produced when When use keyboard.
And go to the address shown in ($68) : 9A70


Code:
============================

9A70    MOVEM.L    D0-D2/A0,-(A7)
9A74    LEA $00BFED01, A0
9A7A    MOVEQ #$00, D0
9A7C    MOVE.B -$0100(A0), D0
9A80    TST.B (A0)
...
<A lot of TST and CMP on D0>
...
9B16    MOVE.W #$4008, $DFF09C
9B1E    MOVEM.L (A7)+, D0/D1/D2/A0pile
9B22    RTE
============================
And
1E2C MOVE.L #9A70,68.S



A see this also in the cracked version SR (2 disks) for info.

Question :


Is they are any body who could tell me more about this subject ?
I don't know how it's work and I would like to know.





Thks a lot

Last edited by Giants; 12 August 2020 at 22:56.
Giants is offline  
Old 12 August 2020, 18:47   #2
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,542
This is normal level 2 interrupt code. The game will most probably check CIA timers to detect the cartridge.
StingRay is offline  
Old 12 August 2020, 18:58   #3
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 47
Posts: 7,756
I doubt this is action replay code, probably just badly written interrupt acknowlege code that lead to to failure of so many keyboard routines on faster processors.

Usually an illegal copperlist move.l #$ffffffff,$dff080 is the usual culprit.
Galahad/FLT is offline  
Old 12 August 2020, 19:29   #4
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 100
Hi !
StingRay : Do you have a example of this code ?
'check CIA timers '

Galahad/FLT : maybe but i don't find : move.l #$ffffffff,$dff080 in memory
I going to look deeper and into copper list, maybe they are a tips...

#..on faster processors
Tested on origina Amiga500 with no accelerator, so 7Mhz ?
and into Winuae with 'cycle-exact'.

If they are a badly code, why it's always done with this workflow ?
Strange no ?
Giants is offline  
Old 12 August 2020, 22:36   #5
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 100
OK !

More tests here :

No Bug :
Windows XP 32b + WinUAE 4.1.0 // A500 OCS noExtMemory + Cycle Full + MKIII image v3.17 + IPF 1359
Windows 10 64b + WinUAE 4.1.0 // A500 OCS noExtMemory + Cycle Full + MKIII image v3.17 + Cracked Version
Windows 10 64b + WinUAE 4.1.0 // A500 OCS noExtMemory + Cycle Full + MKIII image v3.17 + IPF 1359
Amiga 500 + MKIII + IP1359 re-created on real Disk (with kryoflux)
Amiga 500 + MKIII + Cracked Version on real DisK (re-created with adf-copy)


No more keyboard after enter 2 time on ActionReplay :

Windows 10 + WinUAE 4.4.0 (2020.04.01) 64-bit // A500 OCS noExtMemory + Cycle Full + MKIII image v3.17 + Cracked Version
Windows 10 + WinUAE 4.4.0 (2020.04.01) 64-bit // A500 OCS noExtMemory + Cycle Full + MKIII image v3.17 + IPF 1359
Windows XP 32b + WinUAE 4.4.0 // A500 OCS noExtMemory + Cycle Full + MKIII image v3.17 + IPF 1359
Amiga 500 + MKIII + Cracked version saved with SA command on WinUae on level1 into Real Disk played on real Amiga (with command LA)

So... it's seem's a problem on WinUae.
Strange...

I going to write to Tony

Last edited by Giants; 12 August 2020 at 23:11.
Giants is offline  
Old 12 August 2020, 22:56   #6
Galahad/FLT
Going nowhere

Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 47
Posts: 7,756
Quote:
Originally Posted by Giants View Post
Hi !
StingRay : Do you have a example of this code ?
'check CIA timers '

Galahad/FLT : maybe but i don't find : move.l #$ffffffff,$dff080 in memory
I going to look deeper and into copper list, maybe they are a tips...

#..on faster processors
Tested on origina Amiga500 with no accelerator, so 7Mhz ?
and into Winuae with 'cycle-exact'.

If they are a badly code, why it's always done with this workflow ?
Strange no ?
The example I gave you is to show the typical AR protection that was used, that wasn't a hint that Beast 2 used it.

An AR protection that stops the keyboard working during the game isn't much of a protection, because it doesn't stop you cracking the game, hence why I suspect its not an AR protection but the keyboard interrupt losing its acknowlegement.

There are literally HUNDREDS of poorly programmed keyboard interrupts in Amiga games, and Beast 2 is still early enough to probably still have a problem like that.
Galahad/FLT is offline  
Old 12 August 2020, 23:13   #7
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 100
Ok.
Thks a lot
Giants is offline  
Old 13 August 2020, 09:42   #8
jotd
This cat is no more
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 48
Posts: 4,390
I don't care about anti AR code now that I exclusively use WinUAE debugger. Once you're used to it, it's super powerful.
jotd is offline  
Old 13 August 2020, 10:12   #9
Dan
Registered User
Dan's Avatar
 
Join Date: Nov 2004
Location: Germany
Posts: 527
Quote:
Originally Posted by Giants View Post
OK !

I going to write to Tony
See this thread: http://eab.abime.net/showthread.php?t=103107
Dan is offline  
Old 13 August 2020, 10:26   #10
Giants
Registered User
 
Join Date: Nov 2017
Location: france
Posts: 100
Dan : It's exactly that

jotd : Ce n'est pas le sujet
Giants is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
shadow of the beast marley Retrogaming General Discussion 4 06 September 2016 15:19
Shadow of the Beast AF2013 project.Maptapper 6 30 July 2013 14:24
Shadow of the Beast Hewitson Retrogaming General Discussion 30 21 July 2011 15:38
Shadow Of The Beast mai support.Games 14 05 April 2009 02:49
Shadow of the Beast haynor666 HOL data problems 17 14 June 2004 22:33

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.11611 seconds with 13 queries