-
-
Notifications
You must be signed in to change notification settings - Fork 0
Video modes
The basic TMS9918 features 3 video modes
- Text mode
This mode, as its name says, is designed to display text on screen. It does not support sprites and each pattern is 6x8 pixels but requires little memory space. Up to 40 columns are displayed in this mode.
This mode is attractive for text adventures, text dialogs, messages, instructions, lists, menus, etc.
- Graphics mode
This mode is designed to display 8x8 tile-based graphics like those found on 8-bit video game consoles. This mode can display up to 32 sprites on screen of which only 4 can be visible in each scanline. Each group of 8 patterns can have up to 2 colors from a palette of 16 colors (including transparency).
This mode is attractive for games, animations, drawings, etc.
- Multicolor mode
This video mode is rarely used. With this mode you can display semi-graphics in a resolution of 32x24 pixels, where each pixel can have a unique color from the 16 color palette (including transparency). This mode supports sprites as in the graphics mode.
This mode is attractive for maps, statistical graphics, painting, pixel-art, etc.
Constants are always capitalized. These are some of them related to video modes:
- VDP_MODE_G1
- VDP_MODE_G2 (unused)
- VDP_MODE_MULTICOLOR
- VDP_MODE_TEXT
- SDK
- Important system files
The boot.py file
The main.py file
Libraries
- MCU
What is MicroPython?
How to install MicroPython
- Video
TMS9918 compatible VDP parts
TMS9918 VDP display modes
Color palette
Video modes
Video adapters
MGB file format
- Video API
vdp_set_bdcolor
vdp_print
vdp_cls
vdp_mset
vdp_textcolor
vdp_sprite_set_position
vdp_text_wrap
set_write_address
write_byte_to_VRAM
vdp_init
- Audio
Music related troubleshooting
AY-3-8910 compatible PSG parts
How to flash LPC810 or LPC812 MCU
How to flash ATmega8, ATmega48, ATmega88, ATmega168 or ATmega328
AY-3-8910
Konami SCC
WT588D
Clock sources
SoundCortex limitations
VGM file format
WT588D's BUSY output
- Audio API
music.reset
music.load_vgm
music.tick
music.set_vol
music.play_freq
music.play_notes
voice.send_threelines
voice.send_oneline
- Input
PISO shift register compatible gamepad parts
PS2 keyboard scancodes
- Input API
- Memory
Memory related troubleshooting
Video RAM
- Memory API