User:MrMissingNo72/Binary-coded decimal: Difference between revisions

From Glitch City Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
Tags: Mobile edit Mobile web edit
Tags: Mobile edit Mobile web edit
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
== Information ==
== Information ==
Binary-coded decimal is used for money in the Generation I games. It is programmed so that a hexadecimal value represents its visual decimal equivalent; the maximum value for any money byte is 0x99 (normally 153 in decimal, is read as 99 in binary-coded decimal).
Binary-coded decimal is used for money in the Generation I games. It is programmed so that a hexadecimal value represents its visual decimal equivalent; the maximum value for any money byte is 0x99 (normally 153 in decimal, is read as 99 in binary-coded decimal).

Hexadecimal values that include any of the special hexadecimal digits (A, B, C, D, E, F) are not supported, they will show up as overworld tiles.

At the start of a new game, your money value will be 3000 (0x3000, not 0xBB8).

Latest revision as of 13:30, 12 July 2023

This is a guide for binary-coded decimal and its use in all Generation I games.

Information

Binary-coded decimal is used for money in the Generation I games. It is programmed so that a hexadecimal value represents its visual decimal equivalent; the maximum value for any money byte is 0x99 (normally 153 in decimal, is read as 99 in binary-coded decimal).

Hexadecimal values that include any of the special hexadecimal digits (A, B, C, D, E, F) are not supported, they will show up as overworld tiles.

At the start of a new game, your money value will be 3000 (0x3000, not 0xBB8).