Jump to content

Glossary: Difference between revisions

Added item count.
>Bbbbbbbbba
(Added species bytes.)
>Bbbbbbbbba
(Added item count.)
Line 29:
:The result is a relatively easier to understand (and potentially easier to edit) program; if said program was compiled from an higher-level programming language (such as C, as in the case for most games for the GBA and DS) it is possible, although often with more effort, to go one step further ('''decompiling''') and produce a source file functionally equivalent to the original one.
:The creation and study of disassemblies, whether as a full-blown project or targeted study of a segment of code, is often useful for providing insight about complex and/or obscure game mechanics—most notably, the generation I and II Pokémon games have enjoyed a new wave of "scientific" research and understanding of glitches and other mechanics in the 2010s.
 
;{{Anchor|Item count}}'''Item count'''
:The value of the [[#Count byte|count byte]] for the list of items in the bag or in the PC. Normally, it is just the number of items in the bag or in the PC.
:In Generation I, it is the item count, instead of the [[#Terminator|terminator]], that controls how many items the player can actually access. The item count can be relatively easily decreased below the number of actual items with the [[item stack duplication glitch]], and its value is important for [[item underflow]] glitches.
 
;{{Anchor|Jump table}}'''Jump table'''
Line 61 ⟶ 65:
;{{Anchor|Underflow}}'''Underflow'''
:For a value to be lower than the minimum representable value in its data type. For example, the range for an unsigned [[byte]] is 0~255, so trying to calculate 0-1 would result in an underflow. If the condition is not checked, then the value would usually be "wrapped around" to an in-range value: The above example would give (-1)+256 = 255. May or may not be considered a type of [[#Overflow|overflow]] depending on the exact definition of the latter.
:A notable example of underflow in Pokémon games is [[item underflow]], which refers to underflowing the [[#Item count|item count]] to 255, allowing the player to access an [[expanded item pack]].
 
;{{Anchor|W^X}}'''W^X''' (Write Xor eXecute)
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.