Kodewerx
https://www.kodewerx.org/forum/

ARDS Type E code
https://www.kodewerx.org/forum/viewtopic.php?f=11&t=5685
Page 1 of 1

Author:  cracker [ Tue Jun 17, 2008 11:34 pm ]
Post subject:  ARDS Type E code

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.

Author:  jleemero [ Wed Jun 18, 2008 1:44 am ]
Post subject:  Re: ARDS Type E code

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...

Author:  cracker [ Wed Jun 18, 2008 2:51 am ]
Post subject:  Re: ARDS Type E code

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.

Author:  jleemero [ Wed Jun 18, 2008 10:59 am ]
Post subject:  Re: ARDS Type E code

cracker wrote:
impossible in an emulator.

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

Author:  cracker [ Wed Jun 18, 2008 11:27 am ]
Post subject:  Re: ARDS Type E code

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).

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/