This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Video
itIsBrando edited this page Jun 8, 2021
·
3 revisions
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