Glossary: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (fixed spelling)
m (Added <code> tags for label names in the disassembly.)
 
Line 41: Line 41:


;{{Anchor|Jump table}}'''Jump table'''
;{{Anchor|Jump table}}'''Jump table'''
:A table of addresses pointing to assembly code (typically entry points of functions). A relatively well-known example of a jump table is [https://github.com/pret/pokered/blob/725b86ebbec23bd1f53fd60bf0201c904fee951d/engine/items/items.asm#L18 ItemUsePtrTable] in Generation I. An invalid index into a jump table will usually cause glitches, possibly [[arbitrary code execution]] exploits.
:A table of addresses pointing to assembly code (typically entry points of functions). A relatively well-known example of a jump table is <code>[https://github.com/pret/pokered/blob/725b86ebbec23bd1f53fd60bf0201c904fee951d/engine/items/items.asm#L18 ItemUsePtrTable]</code> in Generation I. An invalid index into a jump table will usually cause glitches, possibly [[arbitrary code execution]] exploits.
<!--
<!--
;{{Anchor|Machine code}}'''Machine code'''
;{{Anchor|Machine code}}'''Machine code'''