-- Information: -- -- Video Mode 1 (official) -- -- -- -- Horizontal tiles on screen and/or VRAM, -- -- can not be changed by compilation. -- -- Default values are: -- -- {VRAM,SCREEN}_TILES_H=40 if TILE_WIDTH=6 -- -- {VRAM,SCREEN}_TILES_H=30 if TILE_WIDTH=8 -- -- -- -- Vertical tiles on screen and/or VRAM, -- -- can be changed by compilation, -- -- but is not recomended. -- -- Default values are: -- -- {VRAM,SCREEN}_TILES_V=224/TILE_HEIGHT -- -- -- -- Tile width size in pixels, -- -- can be changed by compilation. -- -- Default value is: -- -- TILE_WIDTH=6 -- -- Available value is: -- -- TILE_WIDTH=6 or TILE_WIDTH=8 -- -- -- -- Tile height size in pixels, -- -- can be changed by compilation, -- -- more that 224 pixels is not recommended. -- -- Default value is: -- -- TILE_HEIGHT=8 -- -- Available value is: -- -- TILE_HEIGHT=1 to TILE_HEIGHT=224 or more -- -- -- -- Vertical synchronization, -- -- can be changed by compilation. -- -- Default value is: -- -- MODE1_FAST_VSYNC=1 (60Mhz) -- -- Available value is: -- -- MODE1_FAST_VSYNC=1 (60Mhz) -- -- MODE1_FAST_VSYNC=0 (30Mhz) -- -- -- -- Numbers of video lines to render, -- -- can be changed by compilation, -- -- but is not recommended, changes the -- -- CPU cyles. -- -- Default value is: -- -- FRAME_LINES=SCREEN_TILES_V*TILE_HEIGHT -- -- -- -- First render line is used to adjust -- -- vertical centering if the value -- -- FRAME_LINES is changed. -- -- Can be changed by compilation. -- -- Default value is: -- -- FIRST_RENDER_LINE=20 -- -- Sites: -- http://uzebox.org/wiki/index.php?title=Video_Modes -- https://github.com/Uzebox/uzebox -- https://raw.githubusercontent.com/Uzebox/uzebox/master/kernel/videoMode1/videoMode1.def.h -- https://raw.githubusercontent.com/Uzebox/uzebox/master/kernel/videoMode1/videoMode1.s return { screen = { width = 240, height = 224, vsync = 60, origin = { x = 0, y = 0, }, -- Total of unique texels, pixels and vertices on VRAM -- pixels = 4194304, texels = 65536, vertices = false, }, colours = { total = 256, limit = false, transparent = { sprite = false, tile = false, }, palettes = false, }, meshes = false, shaders = { api = false, version = false, fragment = false, vectex = false, geometry = false, tessellation = false, }, physic = false, sprites = false, tiles = { layers = { { -- Total tiles and pixels on VRAM -- onVRAM = { screenSections = { all = { Xtiles = 30, Ytiles = 28, tiles = 840, pixels = 53760, }, }, tiles = 'screenSections', pixels = 'screenSections', }, -- Total tiles and pixels on screen (is same as VRAM) -- onScreen = 'vram', -- Total of unique tiles on VRAM -- unique = 65536, screenSections = { mirror = false, main = { optional = false, moveSection = false, { startSection = { x = 'startVRAM', y = 'startVRAM', }, endSection = { x = 'endVRAM', y = 'endVRAM', }, size = { -- Tile size in pixels -- width = 8, height = 8, }, transform = { move = false, rotate = false, scale = false, shear = false, affine = false, }, }, }, }, }, }, }, }