-
-
Notifications
You must be signed in to change notification settings - Fork 0
set_write_address
🧩🖼️ This is a low-level video-related function.
set_write_address(address)
- address: 16k VRAM memory address space offset
This function is used to point to a memory address in the VRAM of the TMS9918 in order to write data sequentially.
When you boot the system or initialize a video mode, global constants are created that contain memory addresses that you can use so that you don't have to remember them, as they change their value depending on the video mode.
Constants are always capitalized. These are some of them related to memory addresses:
- PATTERN_TABLE
- SPRITE_PATTERNS
- COLOR_TABLE
- NAME_TABLE
- SPRITE_ATTRIBUTES
In MicroPython there is no concept of constants, so technically you can write data to them. Don't do it, or you might break the system.
- 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