FacingDex

From Glitch City Wiki
Revision as of 18:13, 15 September 2018 by >Kelvinv
Jump to navigation Jump to search
This article is incomplete. Please feel free to add any missing information about the subject. It is missing: Document effects of other indices, in particular for Red/Blue if possible.

The FacingDex covers invalid C109 address values in Pokémon Red, Blue, and Yellow. This address controls a state of the player's sprite.

In Pokémon Yellow, by adjusting the value of C109 and using glitch item Lg- (0x6E), it is possible to cause different effects, including arbitrary code execution.

The C109 script also executes when walking around one tile above an exit with the value kept while walking.

In order to obtain an invalid C109 address, the player may encounter Yellow regular MissingNo. to obtain a value which varies heavily.

In Pokemon Red/Blue

  • 00, 01, 02, 03,: facing the screen
  • 04, 05, 06, 07,: facing away from the screen
  • 08, 09, 0A, 0B,: facing to the left
  • 0C, 0D, 0E, 0F,: Facing to the right
  • 10: Woman's sprite
  • 11: ABCD letters
  • 12: Woman's sprite
  • 13: mirrored NMOP letters
  • 14: Back of woman
  • 15: QRST
  • 16: back of woman
  • 17: mirrored QRST
  • 18: woman facing to left

In Pokémon Yellow

Methods of obtaining invalid C109 values

  • Arbitrary code execution (also applies to Red/Blue)
  • Yellow MissingNo.: When its front sprite does not freeze the game, it can give the player an invalid C109 value after battle, which varies heavily, and may not be emulated correctly on older emulators. If the player encounters Yellow MissingNo. (non-ghost/fossil form) in Viridian Forest, previously erased the save file with Up+Select+B and has never encountered a glitch Pokémon before, the Yellow MissingNo. will not freeze the game on real hardware or emulators that provide the correct behavior (BGB included).

Scripts which do not execute RAM

Arbitrary code execution

  • 0E, 0F: Execute DA41 - This can fall through to wDayCareInUse and then the manipulable wNumInBox.
  • 12, 13: Execute D367 - This can be manipulated via the expanded items pack.
  • 2C - DFE6
  • 2D - DFE6
  • 3A - FA0A
  • 3B - FA0A
  • 3E - D368
  • 3F - D368
  • 50 - C9A7
  • 51 - C9A7
  • 54 - C937
  • 55 - C937
  • 56 - E5C9
  • 57 - E5C9
  • 58 - D5E5
  • 59 - D5E5
  • 5A - C5D5
  • 5B - C5D5
  • 5C - CDC5
  • 5D - CDC5
  • 5E - D4CD
  • 5F - D4CD
  • 62 - FA42
  • 63 - FA42
  • 66 - D35D
  • 67 - D35D
  • 70 - FA35
  • 71 - FA35
  • 74 - C109
  • 75 - C109
  • 76 - CBC1
  • 77 - CBC1
  • 82 - C021
  • 83 - C021
  • 8E - FA6F
  • 8F - FA6F
  • 90 - C5FA
  • 91 - C5FA
  • 92 - CFC5
  • 93 - CFC5
  • 9A - CD00
  • 9B - CD00
  • A0 - C13D
  • A1 - C13D
  • A2 - D1C1
  • A3 - D1C1
  • A4 - E1D1
  • A5 - E1D1
  • A6 - C9E1
  • A7 - C9E1
  • A8 - C8C9
  • A9 - C8C9
  • AC - D041
  • AD - D041
  • B0 - D341
  • B1 - D341
  • B4 - D641
  • B5 - D641
  • C7 - D0E4
  • DA - FAFF
  • DB - FAFF
  • DC - C5FA
  • DD - C5FA
  • DE - CFC5
  • DF - CFC5
  • EC - D918
  • ED - D918
  • F2 - D618
  • F3 - D618
  • F4 - E5D6
  • F5 - E5D6
  • F6 - D5E5
  • F7 - D5E5
  • F8 - C5D5
  • F9 - C5D5


Attribution

See also

This article or section is a stub. You can help Glitch City Wiki by expanding it.