84PCSE:BCALLs:4D4A

From WikiTI
Revision as of 10:08, 20 October 2013 by FloppusMaximus (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Hypothesized Official Name: FillRect

BCALL Address: 4D4Ah

Fill a rectangle with a solid color.

Inputs

  • HL = X coordinate of left edge
  • DE = X coordinate of right edge (must be at most 319)
  • B = Y coordinate of top edge (from top of screen)
  • C = Y coordinate of bottom edge (must be greater than or equal to B and at most 239)
  • (fillRectColor) = color of rectangle

Outputs

None

Destroys

  • AF

Comments

The rectangle is drawn only to the LCD, never to the graph buffer.

The dimensions of the filled area are (HL-DE+1) × (C-B+1). The routine checks for HL > DE (in which case nothing is drawn), but doesn't check for B > C, and doesn't check that the provided coordinates are valid.

The interrupt state (IFF) is preserved.