Glitch City Laboratories Archives

Glitch City Laboratories closed on 1 September 2020 (announcement). This is an archived copy of a thread from Glitch City Laboratories Forums.

You can join Glitch City Research Institute to ask questions or discuss current developments.

You may also download the archive of this forum in .tar.gz, .sql.gz, or .sqlite.gz formats.

Generation II Glitch Discussion

Unofficial G/S/C character hex list! (VERY SLOPPY) - Page 1

Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: Couldntthinkofaname
Date: 2017-10-21 10:22:15
EDIT 1: Wow, you can't even read this on mobile! Bear with me here, I'm learning to use the "table" function, hopefully that will clean things up.


As box name codes become increasingly popular, it's become necessary to have the characters and their corresponding hexes documented in location.

Unfortunately, The Big HEX List only documented R/B/Y Characters.

So,for the time being, here's an unofficial G/S/C Character hex list! (Apologies for disorganization)


WARNING: INCREDIBLY SLOPPY! What I should've done was make this in Notepad, and copy-paste upon completion, but that idea hit me far too late.
Char:            Hex:            Dec:          Pokemon:        Item:      Op:
(Space)          $7f              127              Pinsir        Card Key    ld a,a
A                  $80              128              Tauros        Machine Part  add a,b
B                  $81              129              Magikarp    Teru-Sama    add a,c
C                  $82              130            Gyrados        Lost Item    add a,d
D                  $83              131            Lapras        Stardust        add a,e
E                  $84              132              Ditto          StarPiece      add a,h
F                  $85              133              Eevee      Basement Key  add a,l
G                  $86              134              Vapeoren      Pass              add a,(hl)
H                  $87              135              Jolteon          Teru-Sama      add a,a
I                  $88              136              Flareon        Teru-Sama      adc a,b
J                  $89              137              Porygon        Teru-Sama      adc a,c
K                  $8a              138            Omanyte          Charcoal      adc a,d
L                  $8b              139              Omastar        Berry Juice    adc a,e
M                $8c              140                Kabuto        Scope lens      adc a,h
N                $8d              141              Kabutops        Teru-Sama    adc a,l
O                $8e              142              Aerodactyl      Teru-Sama    adc a,(hl)
P                  $8f              143              Snorlax          Metal Coat    adc a,a
Q                $90              144              Articuno        Dragon Fang    sub a,b
R                $91              145              Zapdos            Teru-Sama    sub a,c
S                $92              146              Moltres              Leftovers      sub a,d
T                $93              147              Dratini              Teru-Sama    sub a,e
U                $94              148              Dragonair          Teru-Sama    sub a,h
V                $95              149              Dragonite            Teru-Sama    sub a,l
W              $96              150                Mewtwo          MystryBerry    sub a,(hl)
X                $97              151              Mew              Dragon Scale      sub a,a
Y                $98              152              Chikorita        Berserk Gene      sbc a,b
Z                $99              153              Bayleef              Teru-Sama        sbc a,c
(                $9a              154            Meganium            Teru-Sama        sbc a,d
)                $9b                155            Cyndaquil              Teru-Sama      sbc a,e
:                $9c                156          Quilava                  Sacred Ash        sbc a,h
;                $9d                157            Typhlosion              Heavy Ball          sbc a,l
[                $9e                158            Totodile                Flower Mail        sbc a,(hl)
]                $9f                159              Croconow            Level Ball            sbc a,a
a                $a0                160              Feriligator          Lure ball            and b
b              $a1                  161            Sentret                  Fast Ball          and c
c              $a2                  162              Furret                Teru-Sama          and d
d              $a3                  163              HootHoot            Light Ball            and e
e            $a4                  164              Noctowl                Friend ball          and h
f              $a5                  165              Lebyda                  Moon ball            and l
g            $a6                  166              Ledian                  Love Ball          and (hl)
h          $a7                    167              Spinark                Normal Box          and a
i            $a8                    168              Ariados              Gorgeous Box        xor b
j            $a9                    169              Crobat                  Sun Stone          xor c
k          $aa                    170              Chinchou            Polkadot Bow        xor d
l            $ab                    171              Lanturn                Teru-Sama            xor e
m          $ac                    172              Pichu                  Up-Grade                xor h
n          $ad                  173              Cleffa                      Berry                  xor l
o          $ae                    174          IgglyBuff                  Gold berry          xor (hl)
p          $af                  175              Togepi                  Squirtbottle            xor a
q          $b0                  176            Togepic                    Teru-Sama        or b
r          $b1                  177                Natu                    Park ball            or c
s          $b2                  178                Xatu                    Rainbow Wing      or d
t          $b3                  179                Mareep                  Teru-Sama          or e
u          $b4                  180                Flaffy                  Brick Piece              or h
v          $b5                181                Ampharos              Surf Mail              or l
w        $b6                182              Bellossom              LiteBlue Mail          or (hl)
x        $b7                183                Marril                    Portrait Mail          or a
y        $b8                184              Azumarril                    Lovely Mail          cp b
z        $b9                185                Sudowoodo              Eon Mail                cp c
'd        $d0                208              Steelix                      TM 17                  ret nc
'l        $d1                209                Snubbull                    TM 18                    pop de
'm      $d2              210                Granbull                      TM 19              jp nc,$xxyy
'r        $d3                211                QwillFish                      TM 20              invalid op
's        $d4              212                  Scizor                          TM 21            call nc,$xxyy
't        $d5              213                  Shuckle                      TM 22              push de
'v      $d6              214                  Heracross                    TM 23            sub $xx
'        $e0              224                      Octillary                      TM 32            ld ($ffxx),a
PK      $e1              225                      Delibird                      TM 33            pop hl
MN    $e2              226                    Mantine                        TM 34          ld ($ff00 + c),a
-        $e3              227                      Skarmory                    TM 35          invalid op
?        $e6              230                      Kingdra                      TM 38            and $xx
!        $e7              231                        Phanpy                    TM 39            rst 20h
.        $e8              232                          Donphan                TM 40            add sp,$xx
&      $e9              233                          Porygon2              TM 41            jp (hl)
é      $ea              234                      Stantler                      TM 42            ld ($xxyy),a
(male) $ef              239                        Elekid                      TM 47            rst 28h
x(mult) $f1            241                        Miltank                      TM 49          pop af
/        $f3              243                          Raikou                      HM 01        di
,        $f4              244                          Entei                        HM 02        invalid op
(female) $f5          245                        Suicune                        HM 03        push af
0        $f6            246                      Larvitar                        HM 04        or $xx
1        $f7            247                          Pupitar                        HM 05        rst 30h
2        $f8            248                      Tyranitar                        HM 06        ld hl,(sp + $xx)
3        $f9          249                            Lugia                        HM 07        ld sp,hl
4        $fa          250                          Ho-oh                        HM 08        ld a,($xxyy)
5        $fb          251                            Celebi                        HM 09      ei
6        $fc          252                            ?????                      HM 10      invalid op
7        $fd          253                            Egg                        HM 11        invalid op
8        $fe          254                            ?????                        HM 12        cp $xx
9        $ff          255                            ?????                      CANCEL      rst 38h

I know it's sloppy, and i probably made a spelling blunder somewhere, but i hope this useful in some way!

Enjoy!

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: SatoMew
Date: 2017-10-21 12:21:00
HTML tables aren't optimized for responsive layout so you would need some elaborate CSS to render them differently and in an accessible fashion on mobile devices (see this CSS-Tricks article as an example). Also, don't worry much about older Internet Explorer versions, only IE11 is still supported and matters most at this point in time regardless of what stats you check but, even then, focus on Edge, thus standard HTML and CSS ;)

As to character encodings, Bulbapedia has the Japanese and English ones of the Generation I and II games (also the Korean one for the latter). These should help with generating Box name codes. They also have the Pokémon IDs by generation (I, II) and the item IDs by generation (I, II).

The opcode list comes in handy, thanks! :)

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: Couldntthinkofaname
Date: 2017-10-21 13:24:40

HTML tables aren't optimized for responsive layout so you would need some elaborate CSS to render them differently and in an accessible fashion on mobile devices (see this CSS-Tricks article as an example). Also, don't worry much about older Internet Explorer versions, only IE11 is still supported and matters most at this point in time regardless of what stats you check but, even then, focus on Edge, thus standard HTML and CSS ;)

As to character encodings, Bulbapedia has the Japanese and English ones of the Generation I and II games (also the Korean one for the latter). These should help with generating Box name codes. They also have the Pokémon IDs by generation (I, II) and the item IDs by generation (I, II).

The opcode list comes in handy, thanks! :)


Thanks for the advice!

I found a website that allows creation of a neat, clean ASCII chart. I hope to have it finished sometime today.

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: spamviech
Date: 2017-10-21 16:08:40
You might want to include Luckytyphlosion's list for european languages.

Even though it is somewhat incomplete. Like in the German Version it is impossible to input a é character which basically disables any way to do anything (Mn is the only available LD-instruction that doesn't write into a Register).

Also: I didn't find a way in english to input a ' character in the english version, but maybe I'm just blind.

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: Torchickens
Date: 2017-10-21 18:03:27
Thank you for this. :)

Sanqui created a similar table a long time ago.

http://pastebin.com/raw/arPmsvYu

However it looks like yours avoids the N/A entries, which is good for looking up available opcodes/operands more quickly but not so good if you use a code self-modifying method.

I'll consider porting both for the wiki.

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: Couldntthinkofaname
Date: 2017-10-21 18:06:42

You might want to include Luckytyphlosion's list for european languages.

Even though it is somewhat incomplete. Like in the German Version it is impossible to input a é character which basically disables any way to do anything (Mn is the only available LD-instruction that doesn't write into a Register).

Also: I didn't find a way in english to input a ' character in the english version, but maybe I'm just blind.


The ' character was just an apostrophe. From my understanding, it is only used to load a into addresses at $FF00 and above, and I barely noticed it either.


Thank you for this. :)

Sanqui created a similar table a long time ago.

http://pastebin.com/raw/arPmsvYu

However it looks like yours avoids the N/A entries, which is good for looking up available opcodes/operands more quickly but not so good if you use a code self-modifying method.

I'll consider porting both for the wiki.


Thank You!

I wasn't aware of Sanqui's table, his is probably formatted better.

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: Torchickens
Date: 2017-10-21 18:26:23
You're welcome. ^^

Yes, Sanqui's table can be found in a link on the original post for the main Coin Case arbitrary code execution thread, but it's easily missable.

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: Couldntthinkofaname
Date: 2017-10-21 18:38:55

You're welcome. ^^

Yes, Sanqui's table can be found in a link on the original post for the main Coin Case arbitrary code execution thread, but it's easily missable.


Thanks for letting me know. :)

I was going to make an edit that cleans up the chart a bit, but I got lazy and it didn't get done. It should be up sometime tomorrow.

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: SatoMew
Date: 2017-10-21 18:39:57
Sanqui's table mirror :)

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: spamviech
Date: 2017-10-22 06:52:37


You might want to include Luckytyphlosion's list for european languages.

Even though it is somewhat incomplete. Like in the German Version it is impossible to input a é character which basically disables any way to do anything (Mn is the only available LD-instruction that doesn't write into a Register).

Also: I didn't find a way in english to input a ' character in the english version, but maybe I'm just blind.


The ' character was just an apostrophe. From my understanding, it is only used to load a into addresses at $FF00 and above, and I barely noticed it either.


Thing is I don't see an option to  (directly) use it in an Box Name (at least in english VC version). I know it is used in Farfetch'd for example, but you can't input it yourself.
Or I'm really blind and you can tell me where it is on the input character set (like left of é or sth.).

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: Couldntthinkofaname
Date: 2017-10-22 07:07:12



You might want to include Luckytyphlosion's list for european languages.

Even though it is somewhat incomplete. Like in the German Version it is impossible to input a é character which basically disables any way to do anything (Mn is the only available LD-instruction that doesn't write into a Register).

Also: I didn't find a way in english to input a ' character in the english version, but maybe I'm just blind.


The ' character was just an apostrophe. From my understanding, it is only used to load a into addresses at $FF00 and above, and I barely noticed it either.


Thing is I don't see an option to  (directly) use it in an Box Name (at least in english VC version). I know it is used in Farfetch'd for example, but you can't input it yourself.
Or I'm really blind and you can tell me where it is on the input character set (like left of é or sth.).


You know, now that you mention it, I can't find it either. Which is odd, I could've swore I had saw it earlier.

I must've been looking at the comma.

Maybe the (apostraphe) is language exclusive?

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: spamviech
Date: 2017-10-22 07:30:41
Probably the same as é in german versions:
Usable in the sence that it can be used when the game talks about Pokémon (for example beginning speach of Prof. Oak), but you can't input it yourself.

Re: Unofficial G/S/C character hex list! (VERY SLOPPY)

Posted by: Couldntthinkofaname
Date: 2017-10-22 07:39:28

Probably the same as é in german versions:
Usable in the sence that it can be used when the game talks about Pokémon (for example beginning speach of Prof. Oak), but you can't input it yourself.


Ah, I see.

I might remove (apostrophe) from the list to avoid confusion.