English Amiga Board


Go Back   English Amiga Board > Other Projects > project.WHDLoad

 
 
Thread Tools
Old 07 August 2018, 20:04   #81
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 48
Posts: 1,152
Quote:
Originally Posted by modrobert View Post
I figured out what to patch for infinite lives, maybe it will help ross with the slave.
Actually I had not yet searched for the trainer's mem location so thanks modrobert

However, I will not look at it now
ross is offline  
Old 08 August 2018, 09:10   #82
StingRay
move.l #$c0ff33,throat

StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,092
Quote:
Originally Posted by modrobert View Post
I figured out what to patch for infinite lives, maybe it will help ross with the slave.

The address to patch after Zool AGA is running under WHDLoad is $D0FE, look for #$53B9 0002 23D4 6A00, patch with #$4E71 4E71 4E71 6000.

In effect replacing this machine code...

Code:
SUBQ.L #1,($223D4)
BPL.W $6CCA
...with this...

Code:
NOP
NOP
NOP
 BRA.W $6CCA

Better approach would be to change the subq.l #1 instruction to tst.l, that way you only have to change 1 byte and it's also easily possible to toggle that option on or off.
StingRay is offline  
Old 08 August 2018, 14:14   #83
modrobert
old bearded fool

modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 51
Posts: 488
Quote:
Originally Posted by StingRay View Post
Better approach would be to change the subq.l #1 instruction to tst.l, that way you only have to change 1 byte and it's also easily possible to toggle that option on or off.

Good point, I was actually testing with "SUBQ.L #0,($223D4)" but the assembler didn't like me, hehe.
modrobert is offline  
Old 08 August 2018, 14:53   #84
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 48
Posts: 1,152
Quote:
Originally Posted by modrobert View Post
Good point, I was actually testing with "SUBQ.L #0,($223D4)" but the assembler didn't like me, hehe.
Well, the assembler could insert 0 in the quick (3)bit encoding for the instruction but to gain a value the 0 is used as 8, so you can have only a subq from 1 to 8
ross is offline  
Old 08 August 2018, 15:34   #85
modrobert
old bearded fool

modrobert's Avatar
 
Join Date: Jan 2010
Location: Bangkok
Age: 51
Posts: 488
I always found NOP to be extremely powerful despite the fact that is does nothing. The Romans suffered from not having zero naturally in their number system (although they did use it against modern popular belief), maybe SUBQ should allow immediate zero also? Just a thought...

BTW: $223D4 holds the number of lives, and it's a long word, if anyone still prefers a challenge. There is one caveat however, after going through some of the code, at some point it is actually checked against $223D8 with CMP.L, haven't checked the reason for the check. Anyway, probably best to set both addresses to the same value.
modrobert is offline  
Old 08 August 2018, 16:17   #86
ross
Omnia fert aetas

ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 48
Posts: 1,152
Quote:
Originally Posted by modrobert View Post
I always found NOP to be extremely powerful despite the fact that is does nothing. The Romans suffered from not having zero naturally in their number system (although they did use it against modern popular belief), maybe SUBQ should allow immediate zero also? Just a thought...
Immediate zero is allowed, so you can use subi.l #0,$223D4 but is the same as tst.l (and not directly usable in place because of the longer encoding).
ross 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
Who can fix Cannon Fodder WHDLoad installer? apex project.WHDLoad 3 18 November 2016 23:39
FS-UAE - Unregistered WHDLOAD : WHDLOAD.KEY - FIX Neil79 support.FS-UAE 14 29 January 2013 22:34
Annoyed Zool ad/ Zool PSP Survey Scuba-cheese Nostalgia & memories 9 30 May 2011 16:57
Zool 2 Slowdown on WHDLoad Graham Humphrey support.Games 14 22 April 2007 15:59
Zool vs Zool 2 (2nd time) NytroX86 Nostalgia & memories 6 05 December 2002 14:10

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 14:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.
Page generated in 0.06648 seconds with 16 queries