Kodewerx

Our culture has advanced beyond all that you could possibly comprehend with one hundred percent of your brain.
It is currently Sat Apr 27, 2024 8:57 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: ARDS Type E code
PostPosted: Tue Jun 17, 2008 11:34 pm 
Offline
Kommunist
Kommunist

Joined: Fri Feb 16, 2007 10:09 pm
Posts: 36
I'm trying to figure out how to use/decode type E codes here...

The code I've been looking at is kenobi's code for Nanostray 2:
Code:
Invincibility
023FE074 012FFF11
E0000000 00000040
E92D0003 E59F002C
E59F102C E5900000
E3500000 0A000005
E0800001 E5901000
E3510001 1A000001
E3A01007 E5801000
E8BD0003 E12FFF1E
0212F39C 00002EC8
023FE074 E3520003


If I'm understanding this correctly after the opcode is written to 0x23fe074 it continues on to write the 8 lines of the asm hack to 0x23fe07c? I don't think this is right because then there is no code to jump to 0x23fe074... TIA for any help anyone can provide.

_________________
Want to cheat in *any* DS game on *any* cart? - Get DSATM
For more tools visit cracker's crap!


Top
 Profile  
Reply with quote  
 Post subject: Re: ARDS Type E code
PostPosted: Wed Jun 18, 2008 1:44 am 
Offline
Kommunist
Kommunist
User avatar

Joined: Sat Nov 24, 2007 6:04 pm
Posts: 647
Location: Rattlesnakes and Sand
Code:
023FE074 012FFF11 :
Type 0 : 32 bits write (str)
writes word 0x012FFF11 to [023FE074+offset])

E0000000 00000040 :
Type E : 'patch' code. Copies YYYYYYYY bytes from (current code location + 8)
to  [XXXXXXXX + offset].
EXXXXXXX YYYYYYYY
In This Case : Copies 0x00000040 bytes from (current code location + 8) to  [00000000 + offset]
The following bytes will be copied to the following addresses:
[00000000 + offset] E92D0003
[00000004 + offset] E59F002C
[00000008 + offset] E59F102C
[0000000C + offset] E5900000
[00000010 + offset] E3500000
[00000014 + offset] 0A000005
[00000018 + offset] E0800001
[0000001C + offset] E5901000
[00000020 + offset] E3510001
[00000024 + offset] 1A000001
[00000028 + offset] E3A01007
[0000002C + offset] E5801000
[00000030 + offset] E8BD0003
[00000034 + offset] E12FFF1E
[00000038 + offset] 0212F39C
[0000003C + offset] 00002EC8

023FE074 E3520003 :
Type 0 : 32 bits write (str)
writes word 0xE3520003 to [023FE074+offset])


... I guess...


Top
 Profile  
Reply with quote  
 Post subject: Re: ARDS Type E code
PostPosted: Wed Jun 18, 2008 2:51 am 
Offline
Kommunist
Kommunist

Joined: Fri Feb 16, 2007 10:09 pm
Posts: 36
Thanks for the reply.

Yeah I have been using the thread here for AR code types and thought it had some misinformation on the type E codes. I should have realized before what is going on with the type E codes such as these... They are assembler hacks into the AR code handler thus it would only make sense in reading the copied opcodes if the AR engine was loaded into RAM -- impossible in an emulator.

_________________
Want to cheat in *any* DS game on *any* cart? - Get DSATM
For more tools visit cracker's crap!


Top
 Profile  
Reply with quote  
 Post subject: Re: ARDS Type E code
PostPosted: Wed Jun 18, 2008 10:59 am 
Offline
Kommunist
Kommunist
User avatar

Joined: Sat Nov 24, 2007 6:04 pm
Posts: 647
Location: Rattlesnakes and Sand
cracker wrote:
impossible in an emulator.

Impossible in any emulators we have now? Probably.
In a GEWD emulator? Oh, totally possible.


Top
 Profile  
Reply with quote  
 Post subject: Re: ARDS Type E code
PostPosted: Wed Jun 18, 2008 11:27 am 
Offline
Kommunist
Kommunist

Joined: Fri Feb 16, 2007 10:09 pm
Posts: 36
Oh I know it wouldn't be hard to do by the authors of the various emulators. I meant impossible in the emulators we have now (unless hack the AR binary, manually inject the game's bins into the DS 'RAM' and patch up anything that would cause an illegal opcode/jump).

_________________
Want to cheat in *any* DS game on *any* cart? - Get DSATM
For more tools visit cracker's crap!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 71 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group