List of Opcodes: Difference between revisions
m Teensy-weensy bit of opcodes (up to 0xE5) Tags: Reverted Visual edit |
m Opcodes galore! Up to 0xF5, yes this is minor Para Tags: Reverted Visual edit |
||
| Line 3,591: | Line 3,591: | ||
|} | |} | ||
=== 0xdd - screen_FlushChange === | === 0xdd - screen_FlushChange === | ||
Does nothing. | |||
{| class="wikitable" | {| class="wikitable" | ||
|+Parameters | |+Parameters | ||
| Line 3,602: | Line 3,602: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Does nothing. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
|unk2 | |unk2 | ||
| | |Does nothing. | ||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
|unk3 | |unk3 | ||
| | |Does nothing. | ||
|- | |- | ||
|5 | |5 | ||
|uint | |uint | ||
|unk4 | |unk4 | ||
| | |Does nothing. | ||
|- | |- | ||
|6 | |6 | ||
|uint | |uint | ||
|unk5 | |unk5 | ||
| | |Does nothing. | ||
|- | |- | ||
|7 | |7 | ||
|uint | |uint | ||
|unk6 | |unk6 | ||
| | |Does nothing. | ||
|- | |- | ||
|8 | |8 | ||
|uint | |uint | ||
|unk7 | |unk7 | ||
| | |Does nothing. | ||
|} | |} | ||
| Line 3,827: | Line 3,827: | ||
|} | |} | ||
=== 0xe2 - screen_WhiteIn === | === 0xe2 - screen_WhiteIn === | ||
Does nothing. Do not be deceived by this opcode's name: After using <code>screen_WhiteOut</code>, use <code>screen_FadeIn</code> to restore the Touch Screen's brightness level! | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,840: | Line 3,840: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xe3 - screen_WhiteInAll === | === 0xe3 - screen_WhiteInAll === | ||
Does nothing. Do not be deceived by this opcode's name: After using <code>screen_WhiteOutAll</code>, use <code>screen_FadeInAll</code> to restore the Touch Screen's brightness level! | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,861: | Line 3,861: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xe4 - screen_WhiteOut === | === 0xe4 - screen_WhiteOut === | ||
| Line 3,915: | Line 3,915: | ||
|} | |} | ||
=== 0xe6 - screen2_FadeChange === | === 0xe6 - screen2_FadeChange === | ||
Changes the brightness of the screen across a certain number of frames. This opcode will affect everything on the Top Screen. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,926: | Line 3,926: | ||
|- | |- | ||
|1 | |1 | ||
| | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and 1 is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |duration | ||
| | |The number of frames used to change the Top Screen's brightness. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
| | |start_brightness | ||
| | |The brightness level the opcode will begin at. | ||
* The minimum brightness is 0, which results in a black screen. | |||
* The default brightness is 256. | |||
* The maximum brightness is 512, which results in a white screen. | |||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
| | |end_brightness | ||
| | |The brightness level the opcode will end at. | ||
* The minimum brightness is 0, which results in a black screen. | |||
* The default brightness is 256. | |||
* The maximum brightness is 512, which results in a white screen. | |||
|} | |} | ||
=== 0xe7 - screen2_FadeChangeAll === | === 0xe7 - screen2_FadeChangeAll === | ||
Does nothing. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,959: | Line 3,967: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Does nothing. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
|unk2 | |unk2 | ||
| | |Does nothing. | ||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
|unk3 | |unk3 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xe8 - screen2_FadeIn === | === 0xe8 - screen2_FadeIn === | ||
Changes the brightness of the screen to its default state across a certain number of frames. This opcode will affect everything on the Top Screen. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 3,989: | Line 4,001: | ||
|1 | |1 | ||
|bool | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and anything else is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|duration | |duration | ||
| | |The number of frames used to change the Top Screen's brightness. | ||
|} | |} | ||
=== 0xe9 - screen2_FadeInAll === | === 0xe9 - screen2_FadeInAll === | ||
Does nothing. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,009: | Line 4,021: | ||
|- | |- | ||
|1 | |1 | ||
| | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |unk1 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xea - screen2_FadeOut === | === 0xea - screen2_FadeOut === | ||
Changes the brightness of the screen to its minimum (i.e., a black screen) across a certain number of frames. This opcode will affect everything on the Top Screen. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,031: | Line 4,043: | ||
|1 | |1 | ||
|bool | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and anything else is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|duration | |duration | ||
| | |The number of frames used to change the Top Screen's brightness. | ||
|} | |} | ||
=== 0xeb - screen2_FadeOutAll === | === 0xeb - screen2_FadeOutAll === | ||
Does nothing. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,051: | Line 4,063: | ||
|- | |- | ||
|1 | |1 | ||
| | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |unk1 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xec - screen2_FlushChange === | === 0xec - screen2_FlushChange === | ||
Does nothing. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,074: | Line 4,086: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Does nothing. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
|unk2 | |unk2 | ||
| | |Does nothing. | ||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
|unk3 | |unk3 | ||
| | |Does nothing. | ||
|- | |- | ||
|5 | |5 | ||
|uint | |uint | ||
|unk4 | |unk4 | ||
| | |Does nothing. | ||
|- | |- | ||
|6 | |6 | ||
|uint | |uint | ||
|unk5 | |unk5 | ||
| | |Does nothing. | ||
|- | |- | ||
|7 | |7 | ||
|uint | |uint | ||
|unk6 | |unk6 | ||
| | |Does nothing. | ||
|- | |- | ||
|8 | |8 | ||
|uint | |uint | ||
|unk7 | |unk7 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xed - screen2_FlushIn === | === 0xed - screen2_FlushIn === | ||
< | The same as <code>screen_FlushIn</code>, but for the Top Screen. | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,123: | Line 4,135: | ||
|- | |- | ||
|1 | |1 | ||
| | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and anything else is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |duration | ||
| | |The number of frames used to change the Top Screen's color. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
| | |mode | ||
| | | | ||
# Completely darkens the Top Screen. | |||
# Completely turns the Top Screen to a certain color. | |||
# Instantly darkens the Top Screen? | |||
# Overlays the Top Screen with a certain color. | |||
# Instantly darkens the Top Screen? | |||
# Overlays the Top Screen with hardcoded color bytes: 144, 144, and 255. | |||
# Instantly darkens the Top Screen? | |||
# Overlays the Top Screen with hardcoded color bytes: 255, 192, and 128. | |||
# Instantly darkens the Top Screen? | |||
# Overlays the Top Screen with hardcoded color bytes: All 255. The Top Screen is not turned completely white. | |||
# Instantly overlays the Top Screen with hardcoded color bytes: All 255. The Top Screen is not turned completely white. | |||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
| | |r | ||
| | |Unused if ''mode'' is not 2 or 4. Byte used for the color red. Has a minimum of 0 and a maximium of 255. | ||
|- | |- | ||
|5 | |5 | ||
|uint | |uint | ||
| | |g | ||
| | |Unused if ''mode'' is not 2 or 4. Byte used for the color green. Has a minimum of 0 and a maximium of 255. | ||
|- | |- | ||
|6 | |6 | ||
|uint | |uint | ||
| | |b | ||
| | |Unused if ''mode'' is not 2 or 4. Byte used for the color blue. Has a minimum of 0 and a maximium of 255. | ||
|} | |} | ||
=== 0xee - screen2_FlushOut === | === 0xee - screen2_FlushOut === | ||
< | The same as <code>screen_FlushOut</code>, but for the Top Screen. | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,164: | Line 4,187: | ||
|- | |- | ||
|1 | |1 | ||
| | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and anything else is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |duration | ||
| | |The number of frames used to change the Top Screen's color. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
| | |mode | ||
| | | | ||
# Completely darkens the Top Screen. | |||
# Completely turns the Top Screen to a certain color. | |||
# Instantly darkens the Top Screen? | |||
# Overlays the Top Screen with a certain color. | |||
# Instantly darkens the Top Screen? | |||
# Overlays the Top Screen with hardcoded color bytes: 144, 144, and 255. | |||
# Instantly darkens the Top Screen? | |||
# Overlays the Top Screen with hardcoded color bytes: 255, 192, and 128. | |||
# Instantly darkens the Top Screen? | |||
# Overlays the Top Screen with hardcoded color bytes: All 255. The Top Screen is not turned completely white. | |||
# Instantly overlays the Top Screen with hardcoded color bytes: All 255. The Top Screen is not turned completely white. | |||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
| | |r | ||
| | |Unused if ''mode'' is not 2 or 4. Byte used for the color red. Has a minimum of 0 and a maximium of 255. | ||
|- | |- | ||
|5 | |5 | ||
|uint | |uint | ||
| | |g | ||
| | |Unused if ''mode'' is not 2 or 4. Byte used for the color green. Has a minimum of 0 and a maximium of 255. | ||
|- | |- | ||
|6 | |6 | ||
|uint | |uint | ||
| | |b | ||
| | |Unused if ''mode'' is not 2 or 4. Byte used for the color blue. Has a minimum of 0 and a maximium of 255. | ||
|} | |} | ||
=== 0xef - screen2_WhiteChange === | === 0xef - screen2_WhiteChange === | ||
Changes the brightness of the screen across a certain number of frames. This opcode will affect everything on the Top Screen. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,205: | Line 4,239: | ||
|- | |- | ||
|1 | |1 | ||
| | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and anything else is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |duration | ||
| | |The number of frames used to change the Top Screen's brightness. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
| | |start_brightness | ||
| | |The brightness level the opcode will begin at. | ||
* The minimum brightness is 0, which results in a white screen. | |||
* The default brightness is 256. | |||
* The maximum brightness is 512, which results in a black screen. | |||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
| | |end_brightness | ||
| | |The brightness level the opcode will end at. | ||
* The minimum brightness is 0, which results in a white screen. | |||
* The default brightness is 256. | |||
* The maximum brightness is 512, which results in a black screen. | |||
|} | |} | ||
=== 0xf0 - screen2_WhiteChangeAll === | === 0xf0 - screen2_WhiteChangeAll === | ||
Does nothing. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,238: | Line 4,280: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Does nothing. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
|unk2 | |unk2 | ||
| | |Does nothing. | ||
|- | |- | ||
|4 | |4 | ||
|uint | |uint | ||
|unk3 | |unk3 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xf1 - screen2_WhiteIn === | === 0xf1 - screen2_WhiteIn === | ||
< | Does nothing. Do not be deceived by this opcode's name: After using <code>screen2_WhiteOut</code>, use <code>screen2_FadeIn</code> to restore the Top Screen's brightness level! | ||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,269: | Line 4,313: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xf2 - screen2_WhiteInAll === | === 0xf2 - screen2_WhiteInAll === | ||
Does nothing. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,290: | Line 4,334: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xf3 - screen2_WhiteOut === | === 0xf3 - screen2_WhiteOut === | ||
Changes the brightness of the screen to its maximum (i.e., a white screen) across a certain number of frames. This opcode will affect everything on the Top Screen. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,309: | Line 4,353: | ||
|- | |- | ||
|1 | |1 | ||
| | |bool | ||
| | |suspension_flag | ||
| | |Determines whether the script will suspend until this opcode's operation is complete. 0 is false and anything else is true. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
| | |duration | ||
| | |The number of frames used to change the Top Screen's brightness. | ||
|} | |} | ||
=== 0xf4 - screen2_WhiteOutAll === | === 0xf4 - screen2_WhiteOutAll === | ||
Does nothing. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,332: | Line 4,376: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Does nothing. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Does nothing. | ||
|} | |} | ||
=== 0xf5 - se_ChangePan === | === 0xf5 - se_ChangePan === | ||
Currently unknown. | |||
{| class="wikitable" | {| class="wikitable" | ||
| Line 4,353: | Line 4,397: | ||
|uint | |uint | ||
|unk0 | |unk0 | ||
| | |Currently unknown. | ||
|- | |- | ||
|2 | |2 | ||
|uint | |uint | ||
|unk1 | |unk1 | ||
| | |Currently unknown. | ||
|- | |- | ||
|3 | |3 | ||
|uint | |uint | ||
|unk2 | |unk2 | ||
| | |Currently unknown. | ||
|} | |} | ||
=== 0xf6 - se_ChangeVolume === | === 0xf6 - se_ChangeVolume === | ||