video - itIsBrando/GBzLib GitHub Wiki
video.asm contains routines for the background and window.
List of routines:
- Creates a filled rectangle background from (x, y) to (x+w, y+h) with a tile
Parameters: A-tile, L-x, H-y, B-width, C-height
Destroys: All
- Draw tiles in a rectangular pattern onto the screen, based on the tiles pointed by
DE.
Parameters: H - screen X, L - screen Y, B - width, C - height, DE - pointer to tile data
Destroys: All
- Initializes LCD registers. Enables window, background, and sprites
- Initializes sprite & background palettes
Parameters: None
Destroys: A, HL
- Loads tiles into VRAM
Parameters: A-tile number, B-number of tiles to load, DE-pointer to tile data
Destroys: AF, BC, D, HL
- Scrolls the background to (x, y)
Parameters: H-x, L-y
Destroys: A
- Block copy of data from/to VRAM.
Parameters: HL-source pointer, DE-destination pointer, BC-size
Destroys: All
- Inefficiently waits for VRAM to be accessible.
Parameters: None
Destroys: AF