English Amiga Board


Go Back   English Amiga Board > Support > support.Games

 
 
Thread Tools
Old 18 May 2007, 12:21   #1
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
Question Carrier Command: fuel opcodes..?

Hello Amiga People,

I'm using an A500 with kick 1.3 and an Action Replay III module. I love finding the memory addresses for lives, energy, etc. in games, and NOP out the opcodes. I feel very creative when I do that..

But I have a problem with Carrier Command, and the fuel gauges. For example, the fuel for the Manta 1 (aircraft 1), is located at 490 and 491 (in my version of the game) with a maximum value of respectively 7F and FF - that is when the tank is full. But I can NOT find anything that messes with those addresses. I tried finding it with the FA command on addresses 48E, 48F, 490 an 491 - it finds nothing. I have also tried to insert breakpoints on the same addresses, but they do not trigger, even if I alter the amount of fuel manually in the game. The values change on those addresses when I do that, so why doesn't it trigger the breakpoints?

And why the h*ll are there no opcodes?? Please help me understand what I do wrong..

-Brian

Last edited by Thrash911; 18 May 2007 at 12:21. Reason: just minor error, edited 1 minute after posting..
Thrash911 is offline  
Old 18 May 2007, 12:24   #2
musashi5150
move.w #$4489,$dff07e
 
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
When you said using "breakpoints" on the address - you meant "memory watchpoints" didn't you?

If you set a watchpoint on the fuel address it should trigger near the instruction that changes it.
musashi5150 is offline  
Old 18 May 2007, 12:37   #3
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
Damn.. Yes, it triggers with the watchpoints! My bad. So.. When it freezes due to the watchpoint, and I use D command (disassemble), it starts at the exact point where execution stopped, right?
Thrash911 is offline  
Old 18 May 2007, 13:44   #4
musashi5150
move.w #$4489,$dff07e
 
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
No.. it's not exact. It may be a few instructions after. But it's pretty near.

Makes the machine run shit slow too while it's turned on
musashi5150 is offline  
Old 27 May 2007, 19:02   #5
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
Can someone with a brilliant mind help me find the address(es) to NOP out, or otherwise change? How can I find it, when the FA command gives me nothing at all?

-Brian
Thrash911 is offline  
Old 27 May 2007, 22:07   #6
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
there is probably a sub command subtracting the fuel..

us the f command to search for sub (opcode is probably $0479)

Code:
f 04 79
and then see if any returned results are subtracting from $490
BippyM is offline  
Old 27 May 2007, 22:21   #7
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
Thank you for helping.

Oh, those values can represent assembler commands? That's neat. But that's a no go. It returns no results at all.. So.. What can be done now?
Thrash911 is offline  
Old 27 May 2007, 22:44   #8
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
i'll have a look, my offsets sem diff tho, and i can't be bothered searching soooooo what's your config for winuae?
BippyM is offline  
Old 27 May 2007, 22:59   #9
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
Hmm.. I was using a regular A500. But I have fired up WinUAE now. I have the complete TOSEC collection (including original disks), so maybe u can tell me what version you are using, and I can quickly find the correct address. I think..
Thrash911 is offline  
Old 27 May 2007, 23:07   #10
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
pick one.. i have complete tosec and some..
BippyM is offline  
Old 27 May 2007, 23:14   #11
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
Oki.

Carrier Command (1988)(Rainbird)[cr Defjam - CCS]

On this version Manta 1 fuel is at 4AE and 4AF. When game starts they should be 7F and FF (max).
Thrash911 is offline  
Old 27 May 2007, 23:16   #12
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
you could search for the address $04 $ae

fa 04ae
BippyM is offline  
Old 27 May 2007, 23:26   #13
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
Hmm.. In WinUAE, it gives this:

044780 CMP.L 000004AE.S,D7

But on my regular Amiga, it gives me nothing (when done on 0490, of course).. Why? hmm..

Well, what is CMP? Compare?
Thrash911 is offline  
Old 27 May 2007, 23:27   #14
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
it's comparing the contents at that address with whatever value is in d7

what are the next few commands, one will be a branch
BippyM is offline  
Old 27 May 2007, 23:34   #15
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
Ok:

044784 LINEA
044786 CMP.B D6,D6
044788 LINEA
04478A LINEA
04478C LINEA
04478E BCLR D2,-425F(A0)
044792 LINEA

A lot of LINEA's, whatever that is..
Thrash911 is offline  
Old 27 May 2007, 23:36   #16
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
that looks like crap data
BippyM is offline  
Old 27 May 2007, 23:39   #17
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
Do you have something different? But it all seems weird, because if it finds something with FA here, it should also find something with the other version of the game, right? I mean It's the same code in memory, just a little different offset? Or am I not thinking right?
Thrash911 is offline  
Old 27 May 2007, 23:57   #18
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
how do i play this bloody game?

I need to move
BippyM is offline  
Old 27 May 2007, 23:58   #19
Thrash911
Registered User
 
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29


Just make the little plane fly? Or do u want to move the whole carrier?
Thrash911 is offline  
Old 27 May 2007, 23:59   #20
BippyM
Global Moderator
 
BippyM's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
i dunno how to do anything..
BippyM 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
Carrier Command credits Codetapper HOL data problems 5 12 April 2011 09:02
New Carrier Command -=ARA=- Retrogaming General Discussion 12 18 September 2009 10:37
WTB: Carrier Command Drac MarketPlace 0 05 July 2009 00:35
Carrier Command BippyM request.Old Rare Games 1 17 November 2002 19:35
Carrier Command DOCS Darkseid request.Old Rare Games 2 09 June 2002 22:03

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 22:11.

Top

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