forked from ahezard/NitroHax_Old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNitroHax.txt
128 lines (103 loc) · 4.42 KB
/
NitroHax.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
======= Nitro Hax =======
======= By Chishm =======
Nitro Hax is a cheat tool for the Nintendo DS.
It works with original games only.
============ Usage ============
1) Patch NitroHax.nds with a DLDI file if you need to.
2) Copy the NitroHax.nds file to your media device.
3) Place an Action Replay XML file on your media device.
4) Start NitroHax.nds from your media device
4a) One of the following will be loaded automatically if it is found (in order of preference):
"cheats.xml" in the current directory
"/NitroHax/cheats.xml"
"/data/NitroHax/cheats.xml"
"/cheats.xml"
4b) If no file is found, browse for and select a file to open.
5) Remove your media device if you want to.
6) Remove any card that is in Slot-1
7) Insert the DS game into Slot-1
8) Choose the cheats you want to enable.
8a) Some cheats are enabled by default and others may be always on. This is specified in the XML file.
8b) The keys are:
A : Open a folder or toggle a cheat enabled
B : Go up a folder or exit the cheat menu if at the top level
X : Enable all cheats in current folder
Y : Disable all cheats in current folder
L : Move up half a screen
R : Move down half a screen
Up : Move up one line
Down : Move down one line
Start : Start the game
9) When you are done, exit the cheat menu.
10) The game will then start with cheats running.
========== Copyright ==========
Copyright (C) 2008 Michael "Chishm" Chisholm
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
====== Acknowledgements =======
Thanks to:
(in no particular order)
* Pink-Lightning - Original skin (v0.5-0.82)
* bLAStY - Memory dumps
* cReDiAr - Last crucial step for running DS Cards
* Parasyte - Tips for hooking the game automagically
* kenobi - Action Replay code document
* Darkain - Memory and cache clearing code
* Martin Korth - GBAtek
* Deathwind / WinterMute - File menu code (v0.2 - v0.4)
* Everyone else who helped me along the way
Big thanks to Datel (CodeJunkies) for creating the original Action Replay and its cheats
====== Custom Code Types ======
CF000000 00000000 - End of code list
CF000001 xxxxxxxx - Relocate cheat engine to xxxxxxxx
CF000002 xxxxxxxx - Change hook address to xxxxxxxx
C100000x yyyyyyyy - Call function with arguments
x - number of arguments (0 - 4)
yyyyyyyy - Address of function
The argument list follows this code. To call a function at 0x02049A48,
with the arguments r0 = 0x00000010, r1 = 0x134CBA9C, r2 = 0x12345678,
you would use:
C1000003 02049A48
00000010 134CBA9C
12345678 00000000
C200000x yyyyyyyy - Run code from cheat list
x - 0 = ARM mode, 1 = THUMB mode
yyyyyyyy - length of function in bytes
EG:
C2000000 00000010
AAAAAAAA BBBBBBBB
CCCCCCCC E12FFF1E
This will run the code AAAAAAAA BBBBBBBB CCCCCCCC in ARM mode.
The E12FFF1E (bx lr) is needed at the end to return to the cheat engine.
(These instructions are based on those written by kenobi.)
C4000000 xxxxxxxx - Safe data store (Based on Trainer Toolkit code)
Sets the offset register to point to the first word of this code.
Storing data at [offset+4] will save over the top of xxxxxxxx.
C5000000 xxxxyyyy - Counter (Based on Trainer Toolkit code)
Each time the cheat engine is executed, the counter is incremented by 1.
If (counter & yyyy) == xxxx then execution status is set to true.
Else it is set to false.
C6000000 xxxxxxxx - Store offset (Based on Trainer Toolkit code)
Stores the offset register to [xxxxxxxx].
D400000x yyyyyyyy - Dx Data operation
Performs the operation Data = Data ? yyyyyyyy where ? is determined by x 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
If type codes
Adds offset to the address if the lowest bit of the address is set.
Sets the address equal to offset if the original address is 0x00000000.