############################################################################### # # File: penta.keg # # Description: # # This file contains the definition for Penta. # # Author: Kevin Brisley # ############################################################################### # # The name of the game. # Penta.Name: Penta # # The desired FPS. # Penta.FramesPerSecond: 60 # # The history and anecdote files. # Penta.HistoryFile: penta.his Penta.TalesFile: penta.tal # # Address spaces. # Penta.NumSpaces: 1 # # The first address space is used by the Game CPU. It includes the following: # 0x00000-0x0FFFF (64K): Game RAM/ROM. # 0x10000-0x10000 (1Byte): Interrupt Disable. # 0x10001-0x10001 (1Byte): Gfx Bank # Penta.Space1.Size: 0x10002 Penta.Space1.NumROMs: 8 Penta.Space1.ROM1.Description: penta.u8 @ 0x00000 Penta.Space1.ROM2.Description: penta.u7 @ 0x01000 Penta.Space1.ROM3.Description: penta.u15 @ 0x02000 Penta.Space1.ROM4.Description: penta.u14 @ 0x03000 Penta.Space1.ROM5.Description: penta.u21 @ 0x04000 Penta.Space1.ROM6.Description: penta.u20 @ 0x05000 Penta.Space1.ROM7.Description: penta.u32 @ 0x06000 Penta.Space1.ROM8.Description: penta.u31 @ 0x07000 # # CPUs. # Penta.NumCPUs: 1 # # CPU 1 (game). # Penta.CPU1.Description: Game Penta.CPU1.Type: Z80_OLD Penta.CPU1.ClockSpeed: 3072000 Penta.CPU1.Space: 1 Penta.CPU1.IValue: 255 Penta.CPU1.IDisable: 0x10000 # # The number of inputs. # Penta.NumInputs: 4 Penta.Input1.Description: Player 1 Controls Penta.Input1.CPU: 1 Penta.Input1.Location: 0x90c0 Penta.Input1.Default: 0xff Penta.Input2.Description: Player 2 Controls Penta.Input2.CPU: 1 Penta.Input2.Location: 0x9080 Penta.Input2.Default: 0xff Penta.Input3.Description: Dip Switches 1 Penta.Input3.CPU: 1 Penta.Input3.Location: 0x9040 Penta.Input3.Default: 0xb0 Penta.Input4.Description: Dip Switches 2 Penta.Input4.CPU: 1 Penta.Input4.Location: 0x9000 Penta.Input4.Default: 0xff # # The number of outputs. # Penta.NumOutputs: 2 Penta.Output1.Description: Interrupt Disable Penta.Output1.CPU: 1 Penta.Output1.WLocation: 0x9040 Penta.Output1.Location: 0x10000 Penta.Output2.Description: Gfx Bank Penta.Output2.CPU: 1 Penta.Output2.WLocation: 0x9047 Penta.Output2.Location: 0x10001 # # The keys used in the game. # Penta.NumKeys: 16 # Player 1 Push Penta.Key1.Key: KEY_SPACE Penta.Key1.Joy: JOY_B1 Penta.Key1.Mask: 0x80 Penta.Key1.Input: 1 Penta.Key1.Default: Off/1 # Credit Penta.Key2.Key: KEY_3 Penta.Key2.Mask: 0x40 Penta.Key2.Input: 1 Penta.Key2.Default: Off/1 # Coin Slot B Penta.Key3.Key: KEY_9 Penta.Key3.Mask: 0x20 Penta.Key3.Input: 1 Penta.Key3.Default: Off/1 # Coin Slot A Penta.Key4.Key: KEY_8 Penta.Key4.Mask: 0x10 Penta.Key4.Input: 1 Penta.Key4.Default: Off/1 # Player 1 Right Penta.Key5.Key: KEY_RIGHT Penta.Key5.Joy: JOY_RIGHT Penta.Key5.Mask: 0x08 Penta.Key5.Input: 1 Penta.Key5.Default: Off/1 # Player 1 Left Penta.Key6.Key: KEY_LEFT Penta.Key6.Joy: JOY_LEFT Penta.Key6.Mask: 0x04 Penta.Key6.Input: 1 Penta.Key6.Default: Off/1 # Player 1 Down Penta.Key7.Key: KEY_DOWN Penta.Key7.Joy: JOY_DOWN Penta.Key7.Mask: 0x02 Penta.Key7.Input: 1 Penta.Key7.Default: Off/1 # Player 1 Up Penta.Key8.Key: KEY_UP Penta.Key8.Joy: JOY_UP Penta.Key8.Mask: 0x01 Penta.Key8.Input: 1 Penta.Key8.Default: Off/1 # Player 2 Push Penta.Key9.Key: KEY_A Penta.Key9.Mask: 0x80 Penta.Key9.Input: 2 Penta.Key9.Default: Off/1 # Player 2 Start Penta.Key10.Key: KEY_2 Penta.Key10.Joy: JOY_B2 Penta.Key10.Mask: 0x40 Penta.Key10.Input: 2 Penta.Key10.Default: Off/1 # Player 1 Start Penta.Key11.Key: KEY_1 Penta.Key11.Joy: JOY_B1 Penta.Key11.Mask: 0x20 Penta.Key11.Input: 2 Penta.Key11.Default: Off/1 # Test. Penta.Key12.Key: KEY_X Penta.Key12.Mask: 0x10 Penta.Key12.Input: 2 Penta.Key12.Default: Off/1 # Player 2 Right Penta.Key13.Key: KEY_L Penta.Key13.Mask: 0x08 Penta.Key13.Input: 2 Penta.Key13.Default: Off/1 # Player 2 Left Penta.Key14.Key: KEY_J Penta.Key14.Mask: 0x04 Penta.Key14.Input: 2 Penta.Key14.Default: Off/1 # Player 2 Down Penta.Key15.Key: KEY_K Penta.Key15.Mask: 0x02 Penta.Key15.Input: 2 Penta.Key15.Default: Off/1 # Player 2 Up Penta.Key16.Key: KEY_I Penta.Key16.Mask: 0x01 Penta.Key16.Input: 2 Penta.Key16.Default: Off/1 # # The dip switches used in the game. # Penta.NumDips: 0 # Difficulty Level (1 of 2) Penta.Dip1.Description: Difficulty Level (1 of 2) Penta.Dip1.Mask: 0x80 Penta.Dip1.Input: 3 Penta.Dip1.Default: Off/1 # Difficulty Level (2 of 2) Penta.Dip2.Description: Difficulty Level (2 of 2) Penta.Dip2.Mask: 0x40 Penta.Dip2.Input: 3 Penta.Dip2.Default: Off/1 # Rack Test Penta.Dip3.Description: Rack Test Penta.Dip3.Mask: 0x20 Penta.Dip3.Input: 3 Penta.Dip3.Default: On/0 # Number of Lives (1 of 2) Penta.Dip4.Description: Number of Lives (1 of 2) Penta.Dip4.Mask: 0x10 Penta.Dip4.Input: 3 Penta.Dip4.Default: Off/1 # Number of Lives (2 of 2). Penta.Dip5.Description: Number of Lives (2 of 2) Penta.Dip5.Mask: 0x08 Penta.Dip5.Input: 3 Penta.Dip5.Default: On/0 # Cabinet Type Penta.Dip6.Description: Cabinet Type Penta.Dip6.Mask: 0x04 Penta.Dip6.Input: 3 Penta.Dip6.Default: On/0 # Attract Mode Sounds Penta.Dip7.Description: Attract Mode Sounds Penta.Dip7.Mask: 0x02 Penta.Dip7.Input: 3 Penta.Dip7.Default: On/0 # Bonus Life Penta.Dip8.Description: Bonus Life Penta.Dip8.Mask: 0x01 Penta.Dip8.Input: 3 Penta.Dip8.Default: On/0 # # Screen Resolution. # Penta.ScreenWidth: 224 Penta.ScreenHeight: 288 # # Graphics Sets. # Penta.NumGfxSets: 2 # # The first set contains the characters. # Penta.GfxSet1.Width: 8 Penta.GfxSet1.Height: 8 Penta.GfxSet1.Number: 512 Penta.GfxSet1.BPP: 2 Penta.GfxSet1.BPs: 0 4 Penta.GfxSet1.XBits: 56 48 40 32 24 16 8 0 Penta.GfxSet1.YBits: 64 65 66 67 0 1 2 3 Penta.GfxSet1.Increment: 128 Penta.GfxSet1.NumROMs: 2 Penta.GfxSet1.ROM1.Description: penta.u92, 0x0000, 0x1000 Penta.GfxSet1.ROM2.Description: penta.105, 0x0000, 0x1000 # # The second set contains the sprites. # Penta.GfxSet2.Width: 16 Penta.GfxSet2.Height: 16 Penta.GfxSet2.Number: 128 Penta.GfxSet2.BPP: 2 Penta.GfxSet2.BPs: 0 4 Penta.GfxSet2.XBits: 312 304 296 288 280 272 264 256 \ 56 48 40 32 24 16 8 0 Penta.GfxSet2.YBits: 64 65 66 67 128 129 130 131 \ 192 193 194 195 0 1 2 3 Penta.GfxSet2.Increment: 512 Penta.GfxSet2.NumROMs: 2 Penta.GfxSet2.ROM1.Description: penta.u92, 0x1000, 0x1000 Penta.GfxSet2.ROM2.Description: penta.105, 0x1000, 0x1000 # # Graphic Layers # Penta.NumGfxLayers: 2 ############################################################################### # The first layer renders the characters. # # The video RAM starts at 0x08000 and is mapped as follows: # # /0x83dd 0x83dc 0x83db ... 0x83c3 0x83c2\ # \0x83fd 0x83fc 0x83fb ... 0x83e3 0x83e2/ # /0x83a0 0x8380 0x8360 ... 0x8060 0x8040\ # | 0x83a1 0x8381 0x8361 ... 0x8061 0x8041 | # ... ... ... ... ... # | 0x83be 0x839e 0x837e ... 0x807e 0x805e | # \0x83bf 0x839f 0x837f ... 0x807f 0x805f/ # /0x801d 0x801c 0x801b ... 0x8003 0x8002\ # \0x803d 0x803c 0x803b ... 0x8023 0x8022/ # # The colour RAM starts at 0x04400 and is mapped as follows: # # /0x87dd 0x87dc 0x87db ... 0x87c3 0x87c2\ # \0x87fd 0x87fc 0x87fb ... 0x87e3 0x87e2/ # /0x87a0 0x8780 0x8760 ... 0x8460 0x8440\ # | 0x87a1 0x8781 0x8761 ... 0x8461 0x8441 | # ... ... ... ... ... # | 0x87be 0x879e 0x877e ... 0x847e 0x845e | # \0x87bf 0x879f 0x877f ... 0x847f 0x845f/ # /0x841d 0x841c 0x841b ... 0x8403 0x8402\ # \0x843d 0x843c 0x843b ... 0x8423 0x8422/ # ############################################################################### Penta.GfxLayer1.Lightweight: Yes Penta.GfxLayer1.Space: 1 Penta.GfxLayer1.GfxSet: 1 Penta.GfxLayer1.Palette: 1 Penta.GfxLayer1.ColourTable: 1 Penta.GfxLayer1.Transparency: Off Penta.GfxLayer1.Clipping: 0,223,0,287 Penta.GfxLayer1.BlankChar: 64 Penta.GfxLayer1.NumChars: 1024 Penta.GfxLayer1.NumDirty: 3 Penta.GfxLayer1.Dirty1.Start: 0x08000 Penta.GfxLayer1.Dirty1.End: 0x083ff Penta.GfxLayer1.Dirty1.CharsPerLoc: 1 Penta.GfxLayer1.Dirty1.Assign: # Penta.GfxLayer1.Dirty2.Start: 0x08400 Penta.GfxLayer1.Dirty2.End: 0x087ff Penta.GfxLayer1.Dirty2.CharsPerLoc: 1 Penta.GfxLayer1.Dirty2.Assign: # Penta.GfxLayer1.Dirty3.Start: 0x10001 Penta.GfxLayer1.Dirty3.End: 0x10001 Penta.GfxLayer1.Dirty3.CharsPerLoc: 1008 Penta.GfxLayer1.Dirty3.Assign: $ Penta.GfxLayer1.NumCharNums: 1 Penta.GfxLayer1.CharNum1.Value: @0x10001 * 256 + @(0x08000 + #) Penta.GfxLayer1.NumColours: 1 Penta.GfxLayer1.Colour1.Value: @0x10001 * 128 + @(0x08400 + #) Penta.GfxLayer1.NumXPoss: 1 Penta.GfxLayer1.XPos1.Value: \ (# / 32) <= 1 ? (29 - # % 32) * 8 : \ (# / 32) >= 30 ? (29 - # % 32) * 8 : \ (29 - # / 32) * 8 Penta.GfxLayer1.NumYPoss: 1 Penta.GfxLayer1.YPos1.Value: \ (# / 32) <= 1 ? (# / 32 + 34) * 8 : \ (# / 32) >= 30 ? (# / 32 - 30) * 8 : \ (# % 32 + 2) * 8 ############################################################################### # The second layer renders the sprites. # # The sprite RAM is split in two, half at 0x08FF2 and the other half at # 0x09022. There are 2 sequential bytes per sprite and 6 sprites. # The following describes the 4 bytes: # # First half - # 0 : bit 0 indicates vertical flip # bit 1 indicates horizontal flip # bits 2-7 indicate the sprite number # 1 : Colour # # Second half - # 0 : X Position from right side of the screen. # 1 : Y Position from bottom of the screen. ############################################################################### Penta.GfxLayer2.Space: 1 Penta.GfxLayer2.GfxSet: 2 Penta.GfxLayer2.Palette: 1 Penta.GfxLayer2.ColourTable: 1 Penta.GfxLayer2.Clipping: 0,223,16,287 Penta.GfxLayer2.Transparency: Map Penta.GfxLayer2.NumChars: 6 Penta.GfxLayer2.NumDirty: 3 Penta.GfxLayer2.Dirty1.Start: 0x08ff2 Penta.GfxLayer2.Dirty1.End: 0x08ffd Penta.GfxLayer2.Dirty1.CharsPerLoc: 1 Penta.GfxLayer2.Dirty1.Assign: # / 2 Penta.GfxLayer2.Dirty2.Start: 0x09022 Penta.GfxLayer2.Dirty2.End: 0x0902d Penta.GfxLayer2.Dirty2.CharsPerLoc: 1 Penta.GfxLayer2.Dirty2.Assign: # / 2 Penta.GfxLayer2.Dirty3.Start: 0x10001 Penta.GfxLayer2.Dirty3.End: 0x10001 Penta.GfxLayer2.Dirty3.CharsPerLoc: 6 Penta.GfxLayer2.Dirty3.Assign: $ Penta.GfxLayer2.NumCharNums: 1 Penta.GfxLayer2.CharNum1.Value: \ @0x10001 * 64 + (@(0x08ff2 + 2 * #) >> 2) Penta.GfxLayer2.NumColours: 1 Penta.GfxLayer2.Colour1.Value: @0x10001 * 128 + @(0x08ff3 + 2 * #) Penta.GfxLayer2.NumXPoss: 1 Penta.GfxLayer2.XPos1.Value: 239 - @(0x09022 + 2 * #) Penta.GfxLayer2.NumYPoss: 1 Penta.GfxLayer2.YPos1.Value: 272 - @(0x09023 + 2 * #) Penta.GfxLayer2.NumEnables: 1 Penta.GfxLayer2.Enable1.Value: 1 Penta.GfxLayer2.NumHFlips: 1 Penta.GfxLayer2.HFlip1.Value: @(0x8ff2 + 2 * #) & 0x02 Penta.GfxLayer2.NumVFlips: 1 Penta.GfxLayer2.VFlip1.Value: @(0x8ff2 + 2 * #) & 0x01 # # Colour Palettes # Penta.NumPalettes: 1 Penta.Palette1.NumColours: 32 Penta.Palette1.MaxValue: 255 Penta.Palette1.Colour1.RGB: 0x00/0x00/0x00 Penta.Palette1.Colour2.RGB: 0xde/0xde/0xff Penta.Palette1.Colour3.RGB: 0xff/0x00/0x00 Penta.Palette1.Colour4.RGB: 0x00/0xff/0x97 Penta.Palette1.Colour5.RGB: 0x21/0x21/0x68 Penta.Palette1.Colour6.RGB: 0x00/0xff/0xff Penta.Palette1.Colour7.RGB: 0xff/0xff/0x97 Penta.Palette1.Colour8.RGB: 0xff/0xb8/0xff Penta.Palette1.Colour9.RGB: 0xff/0xb8/0xb8 Penta.Palette1.Colour10.RGB: 0xde/0x47/0x00 Penta.Palette1.Colour11.RGB: 0xff/0xb8/0x97 Penta.Palette1.Colour12.RGB: 0xff/0xff/0xb8 Penta.Palette1.Colour13.RGB: 0x00/0xde/0xff Penta.Palette1.Colour14.RGB: 0xde/0xde/0x97 Penta.Palette1.Colour15.RGB: 0x68/0x68/0x68 Penta.Palette1.Colour16.RGB: 0xde/0x00/0x68 Penta.Palette1.Colour17.RGB: 0x00/0x00/0x00 Penta.Palette1.Colour18.RGB: 0xde/0xde/0xff Penta.Palette1.Colour19.RGB: 0x00/0x68/0x68 Penta.Palette1.Colour20.RGB: 0x00/0xde/0xff Penta.Palette1.Colour21.RGB: 0x00/0xff/0xff Penta.Palette1.Colour22.RGB: 0xde/0x47/0x00 Penta.Palette1.Colour23.RGB: 0xff/0x00/0x00 Penta.Palette1.Colour24.RGB: 0xff/0xb8/0x97 Penta.Palette1.Colour25.RGB: 0xde/0xde/0x97 Penta.Palette1.Colour26.RGB: 0xff/0xff/0x97 Penta.Palette1.Colour27.RGB: 0xff/0xff/0xb8 Penta.Palette1.Colour28.RGB: 0x00/0xb8/0x97 Penta.Palette1.Colour29.RGB: 0x47/0xde/0x97 Penta.Palette1.Colour30.RGB: 0x00/0xff/0x97 Penta.Palette1.Colour31.RGB: 0xff/0xb8/0xff Penta.Palette1.Colour32.RGB: 0xde/0x00/0x68 # # The colour lookup table. # Penta.NumColourTables: 1 Penta.ColourTable1.NumEntries: 256 Penta.ColourTable1.List: \ 0x00,0x00,0x00,0x00,0x00,0x05,0x03,0x01, \ 0x00,0x05,0x02,0x01,0x00,0x05,0x06,0x01, \ 0x00,0x05,0x07,0x01,0x00,0x05,0x0a,0x01, \ 0x00,0x05,0x0b,0x01,0x00,0x05,0x0c,0x01, \ 0x00,0x05,0x0d,0x01,0x00,0x05,0x04,0x01, \ 0x00,0x03,0x06,0x01,0x00,0x03,0x02,0x01, \ 0x00,0x03,0x07,0x01,0x00,0x03,0x05,0x01, \ 0x00,0x02,0x03,0x01,0x00,0x00,0x00,0x00, \ 0x00,0x08,0x03,0x01,0x00,0x09,0x02,0x05, \ 0x00,0x08,0x05,0x0d,0x04,0x04,0x04,0x04, \ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, \ 0x00,0x02,0x02,0x02,0x00,0x03,0x03,0x03, \ 0x00,0x06,0x06,0x06,0x00,0x07,0x07,0x07, \ 0x00,0x0a,0x0a,0x0a,0x00,0x0b,0x0b,0x0b, \ 0x00,0x01,0x01,0x01,0x00,0x05,0x05,0x05, \ 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, \ 0x00,0x00,0x00,0x00,0x00,0x13,0x17,0x1d, \ 0x00,0x1c,0x1f,0x1b,0x00,0x1c,0x1e,0x1b, \ 0x00,0x1c,0x16,0x1b,0x00,0x1c,0x17,0x1b, \ 0x00,0x1c,0x13,0x1b,0x00,0x1c,0x18,0x1b, \ 0x00,0x1c,0x1d,0x1b,0x00,0x1c,0x14,0x1b, \ 0x00,0x1c,0x19,0x1b,0x00,0x1c,0x15,0x1b, \ 0x00,0x1c,0x12,0x1b,0x00,0x1c,0x1b,0x12, \ 0x00,0x18,0x1c,0x12,0x00,0x18,0x1f,0x12, \ 0x00,0x13,0x12,0x11,0x00,0x12,0x1f,0x13, \ 0x00,0x1f,0x1e,0x12,0x00,0x1e,0x17,0x1f, \ 0x00,0x17,0x16,0x1e,0x00,0x16,0x15,0x17, \ 0x00,0x15,0x00,0x16,0x00,0x00,0x1b,0x15, \ 0x00,0x1b,0x1c,0x00,0x00,0x1c,0x1d,0x1b, \ 0x00,0x1d,0x18,0x1c,0x00,0x18,0x19,0x1d, \ 0x00,0x19,0x1a,0x18,0x00,0x1a,0x11,0x19, \ 0x00,0x11,0x14,0x1a,0x00,0x14,0x13,0x11