Azahar supports Gateway-format cheat codes, the same format used by the physical Gateway 3DS flashcart. Cheats are applied per game and stored on disk so they persist across sessions. You can enable or disable individual cheats at any time without restarting the emulator.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/azahar-emu/azahar/llms.txt
Use this file to discover all available pages before exploring further.
Opening the cheats dialog
With a game running, select Emulation → Cheats from the menu bar. The Cheats window lists every cheat currently saved for the running title. If no cheats have been added yet, the list is empty.The Cheats option is only available while a game is running. It is grayed out on the main menu.
Gateway cheat code format
Each cheat entry consists of a name and one or more lines of hex code in the following structure:- The name is placed inside square brackets.
- Each code line is a pair of 32-bit hexadecimal values separated by a space.
- Comment lines begin with
*and are ignored by the engine. - A single cheat entry can contain multiple code lines.
core/cheats/gateway_cheat.h include:
| Type prefix | Operation |
|---|---|
0 | Write32 — write a 32-bit value to address |
1 | Write16 — write a 16-bit value to address |
2 | Write8 — write an 8-bit value to address |
3 | GreaterThan32 — skip next line if memory value is greater than operand (32-bit) |
4 | LessThan32 — skip next line if memory value is less than operand (32-bit) |
5 | EqualTo32 — skip next line if memory value equals operand (32-bit) |
6 | NotEqualTo32 — skip next line if memory value is not equal to operand (32-bit) |
B | LoadOffset — load value from memory address into offset register |
C | Loop — repeat the following lines a specified number of times |
D3 | SetOffset — set offset register to specified value |
D4 | AddValue — add a value to the offset register |
D5 | SetValue — set the value register to a specified value |
DD | Joker — button-activated code (only executes when specified buttons are held) |
Example: max money code
00 indicates a 32-bit write, 5E6E14 is the target memory address, and 000F423F (999999 decimal) is the value to write.
Adding a cheat
Enter the code
Paste or type the Gateway-format code lines into the Code text area. Each line must follow the
XXXXXXXX YYYYYYYY pattern.