Skip to content

Latest commit

 

History

History
144 lines (136 loc) · 5.39 KB

File metadata and controls

144 lines (136 loc) · 5.39 KB

TempAR

Description

TempAR by raing3 is a mod of NitePR which was updated to support PSPAR and CWCheat code types as well as additional code types inspired by NitroHax for the DS.

Code types

Type Description
Conditional 32-bit Code Types
Type 0x03
Greater Than
3XXXXXXX YYYYYYYY
Same as PSPAR engine except if lowest bit of address is set the offset is added to the address.
Type 0x04
Less Than
4XXXXXXX YYYYYYYY
Same as PSPAR engine except if lowest bit of address is set the offset is added to the address.
Type 0x05
Equal To
5XXXXXXX YYYYYYYY
Same as PSPAR engine except if lowest bit of address is set the offset is added to the address.
Type 0x06
Not Equal To
6XXXXXXX YYYYYYYY
Same as PSPAR engine except if lowest bit of address is set the offset is added to the address.
Conditional 16-bit + Masking Code Types
Type 0x07
Greater Than
7XXXXXXX ZZZZYYYY
Same as PSPAR engine except if lowest bit of address is set the offset is added to the address.
Type 0x08
Less Than
8XXXXXXX ZZZZYYYY
Same as PSPAR engine except if lowest bit of address is set the offset is added to the address.
Type 0x09
Equal To
9XXXXXXX ZZZZYYYY
Same as PSPAR engine except if lowest bit of address is set the offset is added to the address.
Type 0x0A
Not Equal To
AXXXXXXX ZZZZYYYY
Same as PSPAR engine except if lowest bit of address is set the offset is added to the address.
Data Register Codes
Type 0xD4
Dx Data Operation
D400000Y XXXXXXXX
Sets the 'Dx data register' to Data = ? XXXXXXXX where ? is determined by Y as follows:
0 - add
1 - or
2 - and
3 - xor
4 - logical shift left
5 - logical shift right
6 - rotate right
7 - arithmetic shift right
8 - multiply
Miscellaneous Codes
Type 0xC1
Call Function with Arguments
C100000Y XXXXXXXX
AAAAAAAA BBBBBBBB
CCCCCCCC DDDDDDDD
Performs a jal to the function at XXXXXXXX. The number of arguments to pass to the function is specified by Y.
a0 = 0xAAAAAAAA
a1 = 0xBBBBBBBB
a2 = 0xCCCCCCCC
a3 = 0xDDDDDDDD.
Type 0xC2
Run Code From Cheat List
C2000000 XXXXXXXX
Performs a jal to the function directly after the 0xC2 code line. The length of function is specified by XXXXXXXX.
Type 0xC5
Counter
C5000000 ZZZZYYYY
Checks if YYYY == (not ZZZZ < cheat apply count).
If not, the code(s) following this one are not executed (ie. execution status is set to false) until a code type D0 or D2 is encountered, or until the end of the code list is reached.

Fake addresses

Fake address are used to return system information which either can't be accessed from memory or does not have a static address. These are intended to simplify the process of cheat creation / conversion from other cheat devices.

Presently these addresses can only be accessed using the exact address listed (ie. no 8/16-bit retrieval of the upper return bits).

Address Return Value
0x0A000000 Pressed buttons. See button activators for possible values.
0x0A000004 X-axis of analog nub.
0x0A000008 Y-axis of analog nub.