Slot 2 Mapping Flat Code in $00000 - $07fff [1]

Graphics Compression

Byte Pair Encoding

The Pac-Mania ROM contains the following data in BPE format:

DataAddress RangeCompressed
Size (bytes)
Decompressed
Size (bytes)
Compression
Ratio
4bpp Tiles: High Score Screen Border Part 1 (of 2)$049b5 - $0522f2171400054.3%
4bpp Tiles: High Score Screen Border Part 2 (of 2)$13b10 - $13f261047201651.9%
4bpp Tiles: Title Screen$18000 - $1a25f88001408062.5%
Name Table Entries: Title Screen$1a260 - $1a6f71176153676.6%
4bpp Tiles: TecMagik Logo$1a6f8 - $1b3243117566455.0%
3bpp Tiles: Jungly Steps Intro$1b50b - $1bbca1728297658.1%
Name Table Entries: High Score Screen$1bbcb - $1be41631153641.1%
3bpp Tiles: Pac-Man's Park Intro$1ec10 - $1f30a1787312057.3%

In total, Pac-Mania uses this format to compress 34928 bytes into 20457, an overall compression ratio of 58.6%.

Run Length Encoding

The Pac-Mania ROM contains the following data in RLE format:

DataAddress RangeCompressed
Size (bytes)
Decompressed
Size (bytes)
Compression
Ratio
Name Table Entries: TecMagik Logo$1b325 - $1b50a486153631.6%
Name Table Entries: Pac-Man's Park Intro$1f30b - $1f93c1586307251.6%
Name Table Entries: Jungly Steps Intro$1f93d - $1ff6e1586499231.8%

In total, Pac-Mania uses this format to compress 9600 bytes into 3658, an overall compression ratio of 38.1%.

Demo

If no buttons are pressed on the title screen, a demo of round 1 will begin. Pac-Man's movements during the demo are driven by simulated input - the data for this is in "Pac-Mania" format and is located at $03ccf-$03ce2 in the Pac-Mania ROM. Each time the demo plays, it uses the same input data. Variety arises from randomness in the movement of the ghosts.

ROM Map

This table summarises the contents of the Pac-Mania ROM (Size: 128KB; CRC32: be57a9a5):

Address RangeContents
$00000 - $00a55Unknown
$00a56 - $013aaUnknown Data
$013ab - $02da4Unknown
$02da5 - $035e5Unknown Data
$035e6 - $03609"ROUND 1\rBLOCK TOWN\r [EASY]\rNO BONUS", $ff
$0360a - $03637"ROUND 2\rPACMAN'S PARK\r [MEDIUM]\rBONUS 70000\r\r", $ff
$03638 - $03663"ROUND 4\rSANDBOX LAND\r [HARD]\rBONUS 150000\r\r", $ff
$03664 - $03687"ROUND 6\rJUNGLY STEPS\r[UNSELECTABLE]", $ff
$03688 - $03712"    WELL DONE!\rYOU HAVE COMPLETED\r\rALL THE ROUNDS OF\r\r    PACMANIA\r\r\r",
"YOU CAN NOW START\r\r THE GAME AGAIN\r\rWITHOUT RESETTING\r\r   YOUR SCORE!", $ff
$03713 - $039021bpp Tiles: ASCII Characters $20 - $3f, ©, A - Z, [ ]
$03903 - $03b3dUnknown Data
$03b3e - $03bbc"FUK 99999999\r\rPIX 00010000\r\rALI 00009000\r\rNIK 00008000\r\rJAS 00007000\r\r",
"EGG 00006000\r\rJEF 00005000\r\rMJA 00004000\r\rJRH 00003000\r\r", $ff
$03bbd - $03c48" TODAY'S GREATEST\r\r\r\r CONGRATULATIONS!\r\rYOU HAVE BECOME A\r\r    PACMANIAC!\r\r",
"USE  UP/DOWN,FIRE\r  TO ENTER YOUR\r\r    NAME:  \r\r\r\r\r\r    RANK:   ", $ff
$03c49 - $03cc84bpp Tiles: Block Town Intro
$03cc9 - $03cceBackground Palette: Block Town Intro
$03ccf - $03ce2Demo Simulated Input Data
$03ce3 - $03ce5Background Palette: High Score Screen
$03ce6 - $03cf5Background Palette: Title Screen
$03cf6 - $03d41"WELCOME TO PACMAN'S\rWORLD\r\rLETS HAVE FUN WITH\rPACMAN\r\r",
"LETS GO TO BLOCK\rTOWN", $ff
$03d42 - $03d7c"LETS GO TO\r PACMAN'S\r  PARK\r\r\r IT'S THE\r  PACMAN\r THEATRE!", $ff
$03d7d - $03db0"LETS GO TO SANDBOX\rLAND\r\r\rBEWARE OF JUMPING\rGHOSTS!", $ff
$03db1 - $03dd5"LETS GO TO\r    THE\r  JUNGLY\r  STEPS!", $ff
$03dd6 - $03e01" ROUND\rCLEARED!\r\rGOOD JOB!\r\r\rCOURAGE\r BONUS", $ff
$03e02 - $03e04Unused?
$03e05 - $03e3c" ROUND\rCLEARED!\r\rGOOD JOB!\r\r\rLET'S TRY\rTHE NEXT\r  ROUND", $ff
$03e3d - $03e5c"LET'S GO\r TO THE\r  NEXT\r  WORLD", $ff
$03e5d - $03eb7Unknown Data
$03eb8 - $03ebfBackground Palette: Pac-Man's Park Intro
$03ec0 - $03ec7Background Palette: Jungly Steps Intro
$03ec8 - $03f471bpp Tiles: "GAMEOVER"
$03f48 - $03f59Tile Indices: "GAME OVER"
$03f5a - $03f90" PRESS FIRE WITHIN\r\r  9 SECONDS TO\r\rRESTART THIS LEVEL", $ff
$03f91 - $03fa9"LET'S GO TO\r\rCOIN WORLD!", $ff
$03faa - $03faf"SCORE", $ff
$03fb0 - $03fbfBackground Palette: TecMagik Logo Screen
$03fc0 - $03fcfSprite Palette: High Score Screen
$03fd0 - $047caUnknown Code
$047cb - $047ffCode: RLE Decompression
$04800 - $04845Unknown Code
$04846 - $04971Code: BPE Decompression
$04972 - $049b4Unused [2]
$049b5 - $0522fBPE Compressed 4bpp Tiles: High Score Screen Border Part 1 (of 2)
$05230 - $061af4bpp Tiles: Pac-Man
$061b0 - $06def4bpp Tiles: Ghosts
$06df0 - $074ef4bpp Tiles: Magic Items
$074f0 - $0766f4bpp Tiles: Power Pills
$07670 - $076ef4bpp Tiles: Coin
$076f0 - $07bef4bpp Tiles: Yellow Points Popups
$07bf0 - $07eef4bpp Tiles: Red Points Popups
$07ef0 - $07fef4bpp Tiles: Shadows
$07ff0 - $07fffROM Header (Product Code: 25010; Version: 0; Region: SMS Export; ROM Size: 128KB)
  
$08000 - $0a3ffName Table Entries: Block Town
$0a400 - $0becf3bpp Tiles: Block Town
$0bed0 - $0bf4f4bpp Tiles: Life Icon
$0bf50 - $0bf7fUnused
$0bf80 - $0bfff4bpp Tiles: Block Town Dots
  
$0c000 - $0e3ffName Table Entries: Pac-Man's Park
$0e400 - $0fee73bpp Tiles: Pac-Man's Park
$0fee8 - $0ff7fUnused
$0ff80 - $0ffbf4bpp Tiles: Pac-Man's Park Dots
$0ffc0 - $0ffffUnused
  
$10000 - $123ffName Table Entries: Sandbox Land
$12400 - $13b0f3bpp Tiles: Sandbox Land
$13b10 - $13f26BPE Compressed 4bpp Tiles: High Score Screen Border Part 2 (of 2)
$13f27 - $13f7fUnused
$13f80 - $13fbf4bpp Tiles: Sandbox Land Dots
$13fc0 - $13fffUnused
  
$14000 - $163ffName Table Entries: Jungly Steps
$16400 - $17f173bpp Tiles: Jungly Steps
$17f18 - $17f7fUnused
$17f80 - $17fbf4bpp Tiles: Jungly Steps Dots
$17fc0 - $17fffUnused
  
$18000 - $1a25fBPE Compressed 4bpp Tiles: Title Screen
$1a260 - $1a6f7BPE Compressed Name Table Entries: Title Screen
$1a6f8 - $1b324BPE Compressed 4bpp Tiles: TecMagik Logo
$1b325 - $1b50aRLE Compressed Name Table Entries: TecMagik Logo
$1b50b - $1bbcaBPE Compressed 3bpp Tiles: Jungly Steps Intro
$1bbcb - $1be41BPE Compressed Name Table Entries: High Score Screen
$1be42 - $1bfffUnused
  
$1c000 - $1e3ffName Table Entries: Coin World
$1e400 - $1ec0f3bpp Tiles: Coin World
$1ec10 - $1f30aBPE Compressed 3bpp Tiles: Pac-Man's Park Intro
$1f30b - $1f93cRLE Compressed Name Table Entries: Pac-Man's Park Intro
$1f93d - $1ff6eRLE Compressed Name Table Entries: Jungly Steps Intro
$1ff6f - $1ff7fUnused
$1ff80 - $1ffbf4bpp Tiles: Coin World Dots
$1ffc0 - $1ffffUnused

  1. ^ All address ranges on this page are inclusive.
  2. ^ This area contains garbage data.

Researched by Paul Baker




Return to top
0.165s