18 May 2007, 12:21 | #1 |
Registered User
Join Date: May 2007
Location: Denmark
Age: 48
Posts: 29
|
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.. |
18 May 2007, 12:24 | #2 |
move.w #$4489,$dff07e
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. |
18 May 2007, 12:37 | #3 |
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?
|
18 May 2007, 13:44 | #4 |
move.w #$4489,$dff07e
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 |
27 May 2007, 19:02 | #5 |
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 |
27 May 2007, 22:07 | #6 |
Global Moderator
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 |
27 May 2007, 22:21 | #7 |
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? |
27 May 2007, 22:44 | #8 |
Global Moderator
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?
|
27 May 2007, 22:59 | #9 |
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..
|
27 May 2007, 23:07 | #10 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
pick one.. i have complete tosec and some..
|
27 May 2007, 23:14 | #11 |
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). |
27 May 2007, 23:16 | #12 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
you could search for the address $04 $ae
fa 04ae |
27 May 2007, 23:26 | #13 |
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? |
27 May 2007, 23:27 | #14 |
Global Moderator
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 |
27 May 2007, 23:34 | #15 |
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.. |
27 May 2007, 23:36 | #16 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
that looks like crap data
|
27 May 2007, 23:39 | #17 |
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?
|
27 May 2007, 23:57 | #18 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
how do i play this bloody game?
I need to move |
27 May 2007, 23:58 | #19 |
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? |
27 May 2007, 23:59 | #20 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
i dunno how to do anything..
|
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 |
|
|