<h2>Lost sprites of Sonic 2 Beta:</h2>
*Submitted by Sonic Hachelle-Bee on June 26 2005.*

<h3>Restore the lost badnicks from Sonic 2 Beta:</h3>
Here, I will explain how to restore the lost sprites from Sonic 2 Beta to Sonic 2 Final or Sonic 2 & Knuckles.
Instead of using the Esrael patch to restore them (as usual), I will explain how to make that task manually with only an hex editor.
We will restore the batbot, the dinobot, the trycerobot, the crocobot, and the snailbot sprites.

<h4>The sprites code pointer table:</h4>
In both Sonic 2 Beta and Sonic 2 Final, you have a sprites code pointer table where all pointers for the code of each sprite are stored in a certain order.

Sonic 2 Beta sprites code pointer table: $D01A
Sonic 2 Final sprites code pointer table: $1600C
Sonic 2 & Knuckles sprites code pointer table: $3128FA

This huge table start with a first pointer of 4 bytes. This is the absolute address for the sprite ID $00 code. This is the Sonic sprite. Then, the second pointer of 4 bytes is the absolute address for the sprite ID $01 code, and that's the Tails sprite. Then, for each sprite ID, you have a pointer in order to jump to the right object code.

Several pointers in this table refers to nothing (the end of the table at $1637C). It's said that they are leftovers of some sprites you can see in earlier versions of Sonic 2. We will use these pointers to create our new sprites. As Sonic 2 Beta, and as Esrael patch, we will do this:

The batbot is ID $4C.
The trycerobot is ID $4D.
The crocobot is ID $4E.
The dinobot is ID $4F.
The snailbot is ID $62.

All these sprites ID are usually empty, and we will use them for our sprites.

For example, in Sonic 2 Final, the pointer that jumps to the batbot code is at $16138 and it's currently 00 01 63 7C (empty). The one for the trycerobot is next, and it's again 00 01 63 7C. You will have to change these pointers at the end, once you have your objects code in the ROM file.

<h4>Lost sprites code:</h4>
You have, for each sprite, to copy their code from Sonic 2 Beta and paste it somewhere in the Sonic 2 Final or Sonic 2 & Knuckles ROM file. Here is the addresses where to copy these sprites from the Sonic 2 Beta ROM file:

For the most lazy ones, I have done that boring part for you: <a href="http://www.sonicresearch.org/s2long/Miscellaneous/Sonic/SCHG/HackingCulT/Sonic2-001.zip">click here</a> for Sonic 2 or <a href="http://www.sonicresearch.org/s2long/Miscellaneous/Sonic/SCHG/HackingCulT/Sonic2-002.zip">here</a> for Sonic 2 & Knuckles.

Batbot: $1EE68 - $1F2EE
Trycerobot: $1D984 - $1DC52
Crocobot: $1F2F0 - $1F5E8
Dinobot: $1DEAC - $1E00E
Snailbot: $1F6E8 - $1F99C and $1EAF2 - $1EB8C
For the snailbot, paste the second part (animated fire) after the first (main) part. The result is $34E bytes in size.

Now, you can change your pointers in the sprites code pointer table to jump at each objects code.

<h4>Pointers to fix in each objects code:</h4>
Now that you copied the sprites codes from Sonic 2 Beta, we need to change some pointers into them. That's right, every pointer in the sprites codes are wrong and have to be updated to the right addresses from the final version of Sonic 2. This way, the game will use the right routines of Sonic 2 Final in replacement. In order to see where are these pointers to change, we will say that every sprite code start at address $0.

This is an extremely boring part, and then, for the most lazy ones, if you previously downloaded the zip archive to get the sprites codes, you will be happy to see that most pointers are already fixed! Some others however need to be fixed manually, because they are relative to the place you pasted the code. Just fix the pointers listed in <span style="color: rgb(68, 102, 68);">green</span> color below.

<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"><tbody><tr><td style="background-color: rgb(0, 34, 0);" colspan="1" rowspan="2" align="center" valign="middle">Sprite</td><td style="background-color: rgb(0, 34, 0);" colspan="1" rowspan="2" align="center" valign="middle">Address of the pointer to fix</td><td style="background-color: rgb(0, 34, 0);" colspan="1" rowspan="2" align="center" valign="middle">Pointer to fix</td><td style="background-color: rgb(0, 34, 0);" colspan="2" rowspan="1" align="center" valign="middle">New pointer</td></tr><tr><td style="background-color: rgb(0, 34, 0);" align="center" valign="middle">Sonic 2</td><td style="background-color: rgb(0, 34, 0);" align="center" valign="middle">Sonic 2 & Knuckles</td></tr><tr><td colspan="1" rowspan="9" align="center" valign="middle">Batbot</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$14</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">21 7C 00 01 F1 06</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $29E<br>Data at this address: 00 1E 00 40 00 62 ...</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$64</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">43 F9 00 01 F0 D2</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $26A<br>Data at this address: 00 08 00 0C 00 1B ...</td></tr><tr><td align="center" valign="middle">$7C</td><td align="center" valign="middle">4E B9 00 00 32 0A</td><td align="center" valign="middle">4E B9 00 00 33 B6</td><td align="center" valign="middle">4E B9 00 30 2F 10</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$D0</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">43 F9 00 01 F0 D2</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $26A<br>Data at this address: 00 08 00 0C 00 1B ...</td></tr><tr><td align="center" valign="middle">$1C2</td><td align="center" valign="middle">4E B9 00 00 32 0A</td><td align="center" valign="middle">4E B9 00 00 33 B6</td><td align="center" valign="middle">4E B9 00 30 2F 10</td></tr><tr><td align="center" valign="middle">$1EC</td><td align="center" valign="middle">4E B9 00 00 31 E4</td><td align="center" valign="middle">4E B9 00 00 33 90</td><td align="center" valign="middle">4E B9 00 30 2E EA</td></tr><tr><td align="center" valign="middle">$474</td><td align="center" valign="middle">4E F9 00 00 D2 A0</td><td align="center" valign="middle">4E F9 00 01 63 D2</td><td align="center" valign="middle">4E F9 00 31 2C C0</td></tr><tr><td align="center" valign="middle">$47A</td><td align="center" valign="middle">4E F9 00 00 D4 12</td><td align="center" valign="middle">4E F9 00 01 65 44</td><td align="center" valign="middle">4E F9 00 31 2D D0</td></tr><tr><td align="center" valign="middle">$480</td><td align="center" valign="middle">4E F9 00 00 D2 7A</td><td align="center" valign="middle">4E F9 00 01 63 AC</td><td align="center" valign="middle">4E F9 00 31 2C 9A</td></tr><tr><td colspan="1" rowspan="7" align="center" valign="middle">Trycerobot</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$12</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">21 7C 00 01 DA EE</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $16A<br>Data at this address: 00 10 00 3A 00 64 ...</td></tr><tr><td align="center" valign="middle">$48</td><td align="center" valign="middle">4E B9 00 01 38 98</td><td align="center" valign="middle">4E B9 00 01 ED FA</td><td align="center" valign="middle">4E B9 00 31 91 02</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$70</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">43 F9 00 01 DA D2</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $14E<br>Data at this address: 00 06 00 14 00 17 ...</td></tr><tr><td align="center" valign="middle">$AE</td><td align="center" valign="middle">4E B9 00 01 38 98</td><td align="center" valign="middle">4E B9 00 01 ED FA</td><td align="center" valign="middle">4E B9 00 31 91 02</td></tr><tr><td align="center" valign="middle">$2BC</td><td align="center" valign="middle">4E F9 00 00 D2 A0</td><td align="center" valign="middle">4E F9 00 01 63 D2</td><td align="center" valign="middle">4E F9 00 31 2C C0</td></tr><tr><td align="center" valign="middle">$2C2</td><td align="center" valign="middle">4E F9 00 00 D4 12</td><td align="center" valign="middle">4E F9 00 01 65 44</td><td align="center" valign="middle">4E F9 00 31 2D D0</td></tr><tr><td align="center" valign="middle">$2C8</td><td align="center" valign="middle">4E F9 00 00 D2 4E</td><td align="center" valign="middle">4E F9 00 01 63 80</td><td align="center" valign="middle">4E F9 00 31 2C 6E</td></tr><tr><td colspan="1" rowspan="8" align="center" valign="middle">Crocobot</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$12</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">21 7C 00 01 F4 20</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $130<br>Data at this address: 00 18 00 3A 00 5C ...</td></tr><tr><td align="center" valign="middle">$48</td><td align="center" valign="middle">4E B9 00 01 38 98</td><td align="center" valign="middle">4E B9 00 01 ED FA</td><td align="center" valign="middle">4E B9 00 31 91 02</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$70</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">43 F9 00 01 F4 06</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $116<br>Data at this address: 00 06 00 0E 00 11 ...</td></tr><tr><td align="center" valign="middle">$AE</td><td align="center" valign="middle">4E B9 00 01 38 98</td><td align="center" valign="middle">4E B9 00 01 ED FA</td><td align="center" valign="middle">4E B9 00 31 91 02</td></tr><tr><td align="center" valign="middle">$2E0</td><td align="center" valign="middle">4E F9 00 00 D2 A0</td><td align="center" valign="middle">4E F9 00 01 63 D2</td><td align="center" valign="middle">4E F9 00 31 2C C0</td></tr><tr><td align="center" valign="middle">$2E6</td><td align="center" valign="middle">4E F9 00 00 D4 12</td><td align="center" valign="middle">4E F9 00 01 65 44</td><td align="center" valign="middle">4E F9 00 31 2D D0</td></tr><tr><td align="center" valign="middle">$2EC</td><td align="center" valign="middle">4E F9 00 00 D2 4E</td><td align="center" valign="middle">4E F9 00 01 63 80</td><td align="center" valign="middle">4E F9 00 31 2C 6E</td></tr><tr><td align="center" valign="middle">$2F2</td><td align="center" valign="middle">4E F9 00 00 D2 7A</td><td align="center" valign="middle">4E F9 00 01 63 AC</td><td align="center" valign="middle">4E F9 00 31 2C 9A</td></tr><tr><td colspan="1" rowspan="9" align="center" valign="middle">Dinobot</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$14</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">21 7C 00 01 DF CA</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $11E<br>Data at this address: 00 06 00 10 00 1A ...</td></tr><tr><td align="center" valign="middle">$4A</td><td align="center" valign="middle">4E B9 00 01 38 98</td><td align="center" valign="middle">4E B9 00 01 ED FA</td><td align="center" valign="middle">4E B9 00 31 91 02</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$78</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">43 F9 00 01 DF BC</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $110<br>Data at this address: 00 04 00 07 09 01 ...</td></tr><tr><td align="center" valign="middle">$DC</td><td align="center" valign="middle">4E B9 00 01 38 98</td><td align="center" valign="middle">4E B9 00 01 ED FA</td><td align="center" valign="middle">4E B9 00 31 91 02</td></tr><tr><td align="center" valign="middle">$144</td><td align="center" valign="middle">4E F9 00 00 D3 C2</td><td align="center" valign="middle">4E F9 00 01 64 F4</td><td align="center" valign="middle">4E F9 00 31 2D 80</td></tr><tr><td align="center" valign="middle">$14A</td><td align="center" valign="middle">4E F9 00 00 D3 B4</td><td align="center" valign="middle">4E F9 00 01 64 E6</td><td align="center" valign="middle">4E F9 00 31 2D 72</td></tr><tr><td align="center" valign="middle">$150</td><td align="center" valign="middle">4E F9 00 00 D4 12</td><td align="center" valign="middle">4E F9 00 01 65 44</td><td align="center" valign="middle">4E F9 00 31 2D D0</td></tr><tr><td align="center" valign="middle">$156</td><td align="center" valign="middle">4E F9 00 00 D2 4E</td><td align="center" valign="middle">4E F9 00 01 63 80</td><td align="center" valign="middle">4E F9 00 31 2C 6E</td></tr><tr><td align="center" valign="middle">$15C</td><td align="center" valign="middle">4E F9 00 00 D2 7A</td><td align="center" valign="middle">4E F9 00 01 63 AC</td><td align="center" valign="middle">4E F9 00 31 2C 9A</td></tr><tr><td colspan="1" rowspan="15" align="center" valign="middle">Snailbot</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$18</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">21 7C 00 01 F9 38</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $250<br>Data at this address: 00 06 00 18 00 2A ...</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$60</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">23 7C 00 01 F9 38</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $250<br>Data at this address: 00 06 00 18 00 2A ...</td></tr><tr><td align="center" valign="middle">$C0</td><td align="center" valign="middle">4E B9 00 01 38 98</td><td align="center" valign="middle">4E B9 00 01 ED FA</td><td align="center" valign="middle">4E B9 00 31 91 02</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$D6</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">43 F9 00 01 F9 2C</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $244<br>Data at this address: 00 04 00 08 05 00 ...</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$F2</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">43 F9 00 01 F9 2C</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $244<br>Data at this address: 00 04 00 08 05 00 ...</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$156</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">23 7C 00 01 EB 0E</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $2D0<br>Data at this address: 00 0E 00 20 00 3A ...</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$1D6</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">43 F9 00 01 EA F2</td><td style="background-color: rgb(34, 68, 34);" colspan="2" rowspan="1" align="center" valign="middle">Sprite code internal pointer<br>Must jump to $2B4<br>Data at this address: 00 08 00 0B 00 0F ...</td></tr><tr><td align="center" valign="middle">$284</td><td align="center" valign="middle">4E F9 00 00 D3 B4</td><td align="center" valign="middle">4E F9 00 01 64 E6</td><td align="center" valign="middle">4E F9 00 31 2D 72</td></tr><tr><td align="center" valign="middle">$28A</td><td align="center" valign="middle">4E F9 00 00 E7 88</td><td align="center" valign="middle">4E F9 00 01 7F FA</td><td align="center" valign="middle">4E F9 00 31 3D 8E</td></tr><tr><td align="center" valign="middle">$290</td><td align="center" valign="middle">4E F9 00 00 D4 12</td><td align="center" valign="middle">4E F9 00 01 65 44</td><td align="center" valign="middle">4E F9 00 31 2D D0</td></tr><tr><td align="center" valign="middle">$296</td><td align="center" valign="middle">4E F9 00 00 DC 4C</td><td align="center" valign="middle">4E F9 00 01 6D 8A</td><td align="center" valign="middle">4E F9 00 21 6D 8A</td></tr><tr><td align="center" valign="middle">$29C</td><td align="center" valign="middle">4E F9 00 00 D3 40</td><td align="center" valign="middle">4E F9 00 01 64 72</td><td align="center" valign="middle">4E F9 00 31 2D 44</td></tr><tr><td align="center" valign="middle">$2A2</td><td align="center" valign="middle">4E F9 00 00 DC 30</td><td align="center" valign="middle">4E F9 00 01 6D 6E</td><td align="center" valign="middle">4E F9 00 21 6D 6E</td></tr><tr><td align="center" valign="middle">$2A8</td><td align="center" valign="middle">4E F9 00 00 D2 4E</td><td align="center" valign="middle">4E F9 00 01 63 80</td><td align="center" valign="middle">4E F9 00 31 2C 6E</td></tr><tr><td align="center" valign="middle">$2AE</td><td align="center" valign="middle">4E F9 00 00 D2 7A</td><td align="center" valign="middle">4E F9 00 01 63 AC</td><td align="center" valign="middle">4E F9 00 31 2C 9A</td></tr></tbody></table>

<h4>Pallet and VRAM position to fix for each object code:</h4>
Now, we need to fix their respective pallet line to use and VRAM position where the graphics will be loaded. Again, we will change something in the sprites codes.

All sprites that need a pallet and graphics have a 2 bytes value loaded into a register. This 2 bytes value tells the pallet line to use and the VRAM position for the graphics:

PV VV

P - Pallet line to use (0, 1, 2 or 3).
V - VRAM location where to load graphics. Actually, to obtain the exact 4 nybbles address, you have to take these 3 nybbles and multiply them by $20.

Hopefully, I have once again fixed all that myself in the files that are in the zip archive. You just have to pay attention on one thing listed in <span style="color: rgb(68, 102, 68);">green</span> color, because for some odd reasons, some emulators won't display the sprite of the snailbot properly, while others will.

Here is where and how to change everything for our sprites. Notice how the snailbot has 3 different parts (shell, body, and the animated fire):

<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"><tbody><tr><td style="background-color: rgb(0, 34, 0);" colspan="1" rowspan="2" align="center" valign="middle">Sprite</td><td style="background-color: rgb(0, 34, 0);" colspan="1" rowspan="2" align="center" valign="middle">Address of the string to fix</td><td style="background-color: rgb(0, 34, 0);" colspan="1" rowspan="2" align="center" valign="middle">Initial string value</td><td style="background-color: rgb(0, 34, 0);" colspan="2" rowspan="1" align="center" valign="middle">New string value</td></tr><tr><td style="background-color: rgb(0, 34, 0);" align="center" valign="middle">Sonic 2</td><td style="background-color: rgb(0, 34, 0);" align="center" valign="middle">Sonic 2 & Knuckles</td></tr><tr><td colspan="1" rowspan="1" align="center" valign="middle">Batbot</td><td align="center" valign="middle">$1C</td><td align="center" valign="middle">31 7C 25 30</td><td colspan="2" rowspan="1" align="center" valign="middle">31 7C 23 B2<br></td></tr><tr><td colspan="1" rowspan="1" align="center" valign="middle">Trycerobot</td><td align="center" valign="middle">$1A</td><td align="center" valign="middle">31 7C 23 C4</td><td colspan="2" rowspan="1" align="center" valign="middle">31 7C 23 A0<br></td></tr><tr><td align="center" valign="middle">Crocobot</td><td align="center" valign="middle">$1A</td><td align="center" valign="middle">31 7C 23 00<br></td><td colspan="2" rowspan="1" align="center" valign="middle">31 7C 25 00</td></tr><tr><td colspan="1" rowspan="1" align="center" valign="middle">Dinobot</td><td align="center" valign="middle">$1C</td><td align="center" valign="middle">31 7C 05 00</td><td colspan="2" rowspan="1" align="center" valign="middle">Nothing to change here<br></td></tr><tr><td colspan="1" rowspan="3" align="center" valign="middle">Snailbot</td><td align="center" valign="middle">$20 (body)</td><td align="center" valign="middle">31 7C 04 02</td><td colspan="2" rowspan="1" align="center" valign="middle">31 7C 05 4E</td></tr><tr><td align="center" valign="middle">$68 (shell)</td><td align="center" valign="middle">33 7C 24 02</td><td colspan="2" rowspan="1" align="center" valign="middle">33 7C 25 4E</td></tr><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">$15E (animated fire)</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">33 7C 03 E6</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">33 7C 03 D2</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">General case:<br>33 7C 03 D2<br>With some emulators:<br>33 7C 07 A4</td></tr></tbody></table>

<h4>Sprites graphics and pattern load cues:</h4>
Now that we tell the game which pallet line to use and where are located the graphics to load from the VRAM, we have to actually load these graphics in VRAM, by decompressing what's already in the ROM file in Nemesis format. In order to make that, we will use the pattern load cues of the Sonic engine: they will do the work done for you.

First, we have to find the original graphics (compressed in Nemesis format) in the Sonic 2 Beta ROM file, and copy them into Sonic 2 Final (or Sonic 2 & Knuckles). Here are the locations for each sprite:

Batbot: $7A6A2
Trycerobot: $7AD18
Crocobot: $7A11A
Dinobot: $7B114
Snailbot: $7C514

For the most lazy ones (and because it's faster), here is the archive that contains all these graphics: <a href="http://www.sonicresearch.org/s2long/Miscellaneous/Sonic/SCHG/HackingCulT/Sonic2-003.zip">click here</a>.

Now, all you need to do is to edit the pattern load cues of the levels in which you want the sprites to appear. <a href="http://www.hacking-cult.org/?r/4/63">Here</a> is the article that explains how things works. You have the graphics absolute addresses (it's the one where you pasted the graphics in Sonic 2 Final or Sonic 2 & Knuckles). Now, you need the VRAM position where to load these graphics in VRAM. Accordingly to every fixes we have done before, here is the VRAM position where to load the graphics for each sprite, in order to display them correctly on screen:

Batbot: $7640
Trycerobot: $7400
Crocobot: $A000
Dinobot: $A000
Snailbot: $7A40
The wasp graphics must be loaded just before it, for the animated fire.

<h4>Specific case for the snailbot:</h4>
The snailbot is a more complex sprite than the others as you can see. There is another thing to do if you want your sprite to display on screen. Actually, the old sprite ID for the snailbot of Sonic 2 Beta is $54 and not $62. Because of this, we will have to change directly some extra bytes in the sprite code. If you have previously downloaded the archive, then there is no further problem for you, you have finished. Else, here is the addresses where to change these bytes in the snailbot sprite code:

<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2"><tbody><tr><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">Address of the byte to change</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">Previous data</td><td style="background-color: rgb(34, 68, 34);" align="center" valign="middle">New data</td></tr><tr><td align="center" valign="middle">$54</td><td align="center" valign="middle">13 7C 00 54</td><td align="center" valign="middle">13 7C 00 62</td></tr><tr><td align="center" valign="middle">$14A</td><td align="center" valign="middle">13 7C 00 54</td><td align="center" valign="middle">13 7C 00 62</td></tr><tr><td align="center" valign="middle">$1A6</td><td align="center" valign="middle">0C 11 00 54</td><td align="center" valign="middle">0C 11 00 62</td></tr><tr><td align="center" valign="middle">$220</td><td align="center" valign="middle">0C 11 00 54</td><td align="center" valign="middle">0C 11 00 62</td></tr></tbody></table>

This put an end of this dreadful tutorial. Phew! ^_^