Even though the framebuffer is 512x256 in it's default configuration, the
VDP1 limits the area you can erase, regardless of the rectangle size:
- For a 224 or 240 line display, you can clear 224 or 240 lines.
- For a 320 or 352 pixel display, you can clear 400 or 428 pixels.
Note that 428 is not a multiple of eight, only the first four pixels
of the last eight pixel group have the erase/write data written to them.
For example, a 352x240 display would have a 428x240 pixel area erased if
EWLR = $0000 and EWRR = $FFFF (which logically corresponds to an erase
area from 0,0 to 1023,511).
It also seems that when the erase rectangle is bigger than the clipping
rectangle the VDP1 defines, it doesn't do any extra work and so the
erase/write sequence takes the same amount of time.