eZ80 docs
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

ClearRect

Draws a solid white filled rectangle to the screen.

This call behaves the same as:

push hl
ld.sis hl, $FFFF
ld.sis (fillRectColor), hl
pop hl
call FillRect

Address: $021218

Inputs:

  • hl: Top-left X coordinate of the rectangle.
  • de: Bottom-right X coordinate of the rectangle.
  • b: Top-left Y coordinate of the rectangle.
  • c: Bottom-right Y coordinate of the rectangle.

Outputs:

Destroys:

  • af