summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2017-01-11 00:11:14 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2017-01-11 00:11:14 -0300
commit3ec72ed5adb613438f6d250ba8efd03fc807674a (patch)
tree14f1b22c1a3a0db35095e5d566f33cb8063d2010
parentbbcb3e3b315c140d6716248c0620c74d64568b8b (diff)
Update graphics modes
-rw-r--r--src/hardware_data/graphics/ppu_rp2c02+mmc3-4screen.lua172
-rw-r--r--src/hardware_data/graphics/ppu_rp2c03+mmc3-4screen.lua172
-rw-r--r--src/hardware_data/graphics/ppu_rp2c07+mmc3-4screen.lua172
3 files changed, 516 insertions, 0 deletions
diff --git a/src/hardware_data/graphics/ppu_rp2c02+mmc3-4screen.lua b/src/hardware_data/graphics/ppu_rp2c02+mmc3-4screen.lua
new file mode 100644
index 0000000..4c00e80
--- /dev/null
+++ b/src/hardware_data/graphics/ppu_rp2c02+mmc3-4screen.lua
@@ -0,0 +1,172 @@
+-- Information: --
+-- PPU (Picture processing unit) --
+-- RP2C02 with MMC3/MMC6 --
+-- (Memory management controller) --
+
+return {
+ screen = {
+ width = 256,
+ height = 224,
+ vsync = 60.0988,
+ origin = {
+ x = 0,
+ y = -8,
+ },
+ -- Total of unique texels, pixels and vertices on VRAM --
+ pixels = 73728,
+ texels = 320,
+ vertices = false,
+ },
+ colours = {
+ total = 64,
+ limit = 25,
+ transparent = {
+ sprite = colourKey,
+ tile = colourKey,
+ },
+ palettes = {
+ {
+ total = 4,
+ type = 'tilePerPalette',
+ colours = 3,
+ layers = false,
+ },
+ {
+ total = 4,
+ type = 'spritePerPalette',
+ colours = 3,
+ layers = false,
+ },
+ },
+ },
+ meshes = false,
+ shaders = {
+ api = false,
+ version = false,
+ fragment = false,
+ vectex = false,
+ geometry = false,
+ tessellation = false,
+ },
+ physic = false,
+ sprites = {
+ -- Limit sprites on screen --
+ onScreen = 64,
+ -- Limit sprites on line (scanline) without flickering --
+ onLine = 8,
+ transform = {
+ move = true,
+ rotate = false,
+ scale = 'flip',
+ shear = false,
+ affine = false,
+ },
+ -- Sprite sizes in pixels --
+ sizes = {
+ {
+ width = 8,
+ height = 8,
+ },
+ {
+ width = 8,
+ height = 16,
+ },
+ },
+ },
+ tiles = {
+ layers = {
+ {
+ -- Total tiles and pixels on VRAM --
+ onVRAM = {
+ screenSections = {
+ all = {
+ Xtiles = 32,
+ Ytiles = 30,
+ tiles = 960,
+ pixels = 245760,
+ },
+ },
+ tiles = 'screenSections',
+ pixels = 'screenSections',
+ },
+ -- Total tiles and pixels on screen --
+ onScreen = {
+ screenSections = {
+ -- On screen section with support scrolling X and/or Y, --
+ -- will be include one tile by axis --
+ all = {
+ Xtiles = 16+1,
+ Ytiles = 15+1,
+ tiles = 240+16+15+1,
+ pixels = 61440,
+ },
+ },
+ tiles = 'screenSections',
+ pixels = 'screenSections',
+ },
+ -- Total of tiles on VRAM --
+ unique = false,
+ maximum = 256,
+ mirror = {
+ switchable = false,
+ nametables = 4,
+ '4 screen',
+ },
+ screenSections = {
+ main = {
+ optional = false,
+ moveSection = false,
+ {
+ startSection = {
+ x = 'startVRAM',
+ y = 'startVRAM',
+ },
+ endSection = {
+ x = 'endVRAM',
+ y = 'endVRAM',
+ },
+ size = {
+ -- Tile size in pixels --
+ width = 16,
+ height = 16,
+ },
+ transform = {
+ move = true,
+ rotate = false,
+ scale = false,
+ shear = false,
+ affine = false,
+ },
+ },
+ },
+ overlay0 = {
+ optional = true,
+ moveSection = true,
+ {
+ startSection = {
+ x = 'free',
+ y = 'free',
+ },
+ endSection = {
+ x = 'free',
+ y = 'free',
+ },
+ size = {
+ -- Tile size in pixels --
+ width = 16,
+ height = 16,
+ },
+ transform = {
+ move = false,
+ rotate = false,
+ scale = false,
+ shear = false,
+ affine = false,
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+}
diff --git a/src/hardware_data/graphics/ppu_rp2c03+mmc3-4screen.lua b/src/hardware_data/graphics/ppu_rp2c03+mmc3-4screen.lua
new file mode 100644
index 0000000..36a54bb
--- /dev/null
+++ b/src/hardware_data/graphics/ppu_rp2c03+mmc3-4screen.lua
@@ -0,0 +1,172 @@
+-- Information: --
+-- PPU (Picture processing unit) --
+-- RP2C03/RP2C04/RP2C05 with MMC3/MMC6 --
+-- (Memory management controller) --
+
+return {
+ screen = {
+ width = 256,
+ height = 224,
+ vsync = 60.0985,
+ origin = {
+ x = 0,
+ y = -8,
+ },
+ -- Total of unique texels, pixels and vertices on VRAM --
+ pixels = 73728,
+ texels = 320,
+ vertices = false,
+ },
+ colours = {
+ total = 64,
+ limit = 25,
+ transparent = {
+ sprite = colourKey,
+ tile = colourKey,
+ },
+ palettes = {
+ {
+ total = 4,
+ type = 'tilePerPalette',
+ colours = 3,
+ layers = false,
+ },
+ {
+ total = 4,
+ type = 'spritePerPalette',
+ colours = 3,
+ layers = false,
+ },
+ },
+ },
+ meshes = false,
+ shaders = {
+ api = false,
+ version = false,
+ fragment = false,
+ vectex = false,
+ geometry = false,
+ tessellation = false,
+ },
+ physic = false,
+ sprites = {
+ -- Limit sprites on screen --
+ onScreen = 64,
+ -- Limit sprites on line (scanline) without flickering --
+ onLine = 8,
+ transform = {
+ move = true,
+ rotate = false,
+ scale = 'flip',
+ shear = false,
+ affine = false,
+ },
+ -- Sprite sizes in pixels --
+ sizes = {
+ {
+ width = 8,
+ height = 8,
+ },
+ {
+ width = 8,
+ height = 16,
+ },
+ },
+ },
+ tiles = {
+ layers = {
+ {
+ -- Total tiles and pixels on VRAM --
+ onVRAM = {
+ screenSections = {
+ all = {
+ Xtiles = 32,
+ Ytiles = 30,
+ tiles = 960,
+ pixels = 245760,
+ },
+ },
+ tiles = 'screenSections',
+ pixels = 'screenSections',
+ },
+ -- Total tiles and pixels on screen --
+ onScreen = {
+ screenSections = {
+ -- On screen section with support scrolling X and/or Y, --
+ -- will be include one tile by axis --
+ all = {
+ Xtiles = 16+1,
+ Ytiles = 15+1,
+ tiles = 240+16+15+1,
+ pixels = 61440,
+ },
+ },
+ tiles = 'screenSections',
+ pixels = 'screenSections',
+ },
+ -- Total of tiles on VRAM --
+ unique = false,
+ maximum = 256,
+ mirror = {
+ switchable = false,
+ nametables = 4,
+ '4 screen',
+ },
+ screenSections = {
+ main = {
+ optional = false,
+ moveSection = false,
+ {
+ startSection = {
+ x = 'startVRAM',
+ y = 'startVRAM',
+ },
+ endSection = {
+ x = 'endVRAM',
+ y = 'endVRAM',
+ },
+ size = {
+ -- Tile size in pixels --
+ width = 16,
+ height = 16,
+ },
+ transform = {
+ move = true,
+ rotate = false,
+ scale = false,
+ shear = false,
+ affine = false,
+ },
+ },
+ },
+ overlay0 = {
+ optional = true,
+ moveSection = true,
+ {
+ startSection = {
+ x = 'free',
+ y = 'free',
+ },
+ endSection = {
+ x = 'free',
+ y = 'free',
+ },
+ size = {
+ -- Tile size in pixels --
+ width = 16,
+ height = 16,
+ },
+ transform = {
+ move = false,
+ rotate = false,
+ scale = false,
+ shear = false,
+ affine = false,
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+}
diff --git a/src/hardware_data/graphics/ppu_rp2c07+mmc3-4screen.lua b/src/hardware_data/graphics/ppu_rp2c07+mmc3-4screen.lua
new file mode 100644
index 0000000..a41233a
--- /dev/null
+++ b/src/hardware_data/graphics/ppu_rp2c07+mmc3-4screen.lua
@@ -0,0 +1,172 @@
+-- Information: --
+-- PPU (Picture processing unit) --
+-- RP2C07 with MMC3/MMC6 --
+-- (Memory management controller) --
+
+return {
+ screen = {
+ width = 256,
+ height = 240,
+ vsync = 50.0070,
+ origin = {
+ x = 0,
+ y = 0,
+ },
+ -- Total of unique texels, pixels and vertices on VRAM --
+ pixels = 73728,
+ texels = 320,
+ vertices = false,
+ },
+ colours = {
+ total = 64,
+ limit = 25,
+ transparent = {
+ sprite = colourKey,
+ tile = colourKey,
+ },
+ palettes = {
+ {
+ total = 4,
+ type = 'tilePerPalette',
+ colours = 3,
+ layers = false,
+ },
+ {
+ total = 4,
+ type = 'spritePerPalette',
+ colours = 3,
+ layers = false,
+ },
+ },
+ },
+ meshes = false,
+ shaders = {
+ api = false,
+ version = false,
+ fragment = false,
+ vectex = false,
+ geometry = false,
+ tessellation = false,
+ },
+ physic = false,
+ sprites = {
+ -- Limit sprites on screen --
+ onScreen = 64,
+ -- Limit sprites on line (scanline) without flickering --
+ onLine = 8,
+ transform = {
+ move = true,
+ rotate = false,
+ scale = 'flip',
+ shear = false,
+ affine = false,
+ },
+ -- Sprite sizes in pixels --
+ sizes = {
+ {
+ width = 8,
+ height = 8,
+ },
+ {
+ width = 8,
+ height = 16,
+ },
+ },
+ },
+ tiles = {
+ layers = {
+ {
+ -- Total tiles and pixels on VRAM --
+ onVRAM = {
+ screenSections = {
+ all = {
+ Xtiles = 32,
+ Ytiles = 30,
+ tiles = 960,
+ pixels = 245760,
+ },
+ },
+ tiles = 'screenSections',
+ pixels = 'screenSections',
+ },
+ -- Total tiles and pixels on screen --
+ onScreen = {
+ screenSections = {
+ -- On screen section with support scrolling X and/or Y, --
+ -- will be include one tile by axis --
+ all = {
+ Xtiles = 16+1,
+ Ytiles = 15+1,
+ tiles = 240+16+15+1,
+ pixels = 61440,
+ },
+ },
+ tiles = 'screenSections',
+ pixels = 'screenSections',
+ },
+ -- Total of tiles on VRAM --
+ unique = false,
+ maximum = 256,
+ mirror = {
+ switchable = false,
+ nametables = 4,
+ '4 screen',
+ },
+ screenSections = {
+ main = {
+ optional = false,
+ moveSection = false,
+ {
+ startSection = {
+ x = 'startVRAM',
+ y = 'startVRAM',
+ },
+ endSection = {
+ x = 'endVRAM',
+ y = 'endVRAM',
+ },
+ size = {
+ -- Tile size in pixels --
+ width = 16,
+ height = 16,
+ },
+ transform = {
+ move = true,
+ rotate = false,
+ scale = false,
+ shear = false,
+ affine = false,
+ },
+ },
+ },
+ overlay0 = {
+ optional = true,
+ moveSection = true,
+ {
+ startSection = {
+ x = 'free',
+ y = 'free',
+ },
+ endSection = {
+ x = 'free',
+ y = 'free',
+ },
+ size = {
+ -- Tile size in pixels --
+ width = 16,
+ height = 16,
+ },
+ transform = {
+ move = false,
+ rotate = false,
+ scale = false,
+ shear = false,
+ affine = false,
+ },
+ },
+ },
+ },
+ },
+ },
+ },
+}