コードタイプ

00コード

00XXXXXX
000000YY

X : アドレス
Y : データ

Example
00100205
00000067
The byte value 67 is repeatedly written to memory location 100205.

01コード

01XXXXXX
0000YYYY

X : アドレス
Y : 16進数で指定

Example
01100204
00002367
The byte value 2367 is repeatedly written to memory location 100204

02コード

02XXXXXX
YYYYYYYY

X : アドレス
Y : を16進数で指定

Example
02100204
01022367
The byte value 01022367 is repeatedly written to memory location 100204.

04コード

04XXXXXX
WWWWZZZZ
YYYYYYYY

X : 最初に書き込むアドレス
W : 繰り返す回数
Z : アドレス増加数の指定
指定した値が4倍され
現在のアドレス値に加算されて次のアドレスとし繰り返されます
Y : データ

Example
04100204
00040001
64646464
データ64646464h(hは16進数だという事を表す目印)がアドレス8c100
204hから4h回、アドレスを4hずつ(0001h x 4)加算しながら書きこみます。
書きこまれる場所は8c100204h,8c100208h,8c10020ch,8c100210hの4箇所。
アドレス増加数を0002hにした場合は
8c100204h,8c10020ch,8c100214h,8c10021chに

05コード

05XXXXXX
YYYYYYYY
ZZZZZZZZ

X : 複写元アドレス
Y : 複写先アドレス
Z : 複写データのバイト数

Example
05100204
8C100004
00000064
複写元アドレス8c100204hから複写先アドレス8C100004hへ64hバイト
(手元の資料には64 bytesと書かれており
10進数のように解釈できるのですが恐らく16進数だと思われます)
分のデータを複写します。

071コード

071-000XX
XX = Encryption Type (Only 00-07 Perform Valid Changes)

Functionality
It changes the encryption in the usage of encrypted codes only.
XX can be anything from 00 to FF,
but only 00-07 will produce different results,
00 and 08 will produce the same results, as will 00 and F8, etc..

Example
07100005
Uses method 05 to decrypt the next codes.

0Eコード

0E-WWYYYY
0ZXXXXXX

WW = Number Of Lines To Skip
YYYY = 16 Bit Value To Check Condition From
Z = Condition Type
XXXXXX = Address To Check Condition From

Condition Types:
0 = If Equal To
1 = If Different To
2 = If Less Than
3 = If Greater Than

Functionality
It copies checks the condition type,
and then does a comparison with
the value at the address XXXXXX & YYYY.
If the condition is false, it skips over the next WW lines of codes.
(Use this code type with 04 codes
because you can specify an odd value for WW.)

Example
0E030204
03100204
If the value at 100204 is greater than 0204
then dont skip the next 3 lines of codes.

0Dコード

0D-XXXXXX
000ZYYYY

XXXXXX = Address To Check Condition From
Z = Condition Type
YYYY = 16 Bit Value To Check Condition From

Condition Types:
0 = If Equal To
1 = If Different To
2 = If Less Than
3 = If Greater Than

Functionality
It checks the condition type,
and then does a comparison with the value
at the address XXXXXX & YYYY.
If the condition is false, it skips over the next 2 lines of codes.
(Yes this is a bug in DC CDX,
it should really in fact be able to be 100% compatible
with using 04 codes types below a 0D code type.
It might still work,
but it is lazy coding to not skip the full 3 lines of code instead of 2.)

Example
0D100204
00010004
If the value at 100204 is not equal to 0004,
then dont skip the next 2 lines of codes.

0Fコード

0F-XXXXXX
0000YYYY

XXXXXX = Address
YYYY = 16-Bit Value

Functionality
This is one of the least common code types.
 It simply writes the given 16 bit value, YYYY,
to the given address, XXXXXX
BEFORE anything is run for the game.
Used for games like PSO that require Enable Codes and such.
(The address MUST be even.)

Example
0F100204
00002367
The byte value 2367 is written once to memory location 100204.

backtop