Display: Difference between revisions
mNo edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 33: | Line 33: | ||
== Features == | == Features == | ||
Screens are 32x32 tile maps; each map entry can use one of 512 (mono) or 1024 (color) tiles, one of sixteen distinct palettes, as well as be drawn mirrored or flipped. | Screens are 32x32 tile maps, for a total of 256x256 pixels; each map entry can use one of 512 (mono) or 1024 (color) tiles, one of sixteen distinct palettes, as well as be drawn mirrored or flipped. The screens can be scrolled horizontally and vertically. | ||
The sprite layer consists of 128 distinct sprites. These can use any of the first 512 tiles, palettes 8 through 15, as well as be drawn over or under screen 2. | The sprite layer consists of 128 distinct sprites. These can use any of the first 512 tiles, palettes 8 through 15, as well as be drawn over or under screen 2. | ||
Line 58: | Line 58: | ||
* [[Display/Screens|Screen format]] | * [[Display/Screens|Screen format]] | ||
* [[Display/Sprites|Sprite format]] | * [[Display/Sprites|Sprite format]] | ||
* [[Display/Windows|Windows]] | |||
* [[Display/LCD Icons|LCD icons]] | * [[Display/LCD Icons|LCD icons]] | ||
* [[Display/IO Ports|I/O ports]] | * [[Display/IO Ports|I/O ports]] |
Latest revision as of 11:13, 23 February 2025
The WonderSwan features a 224x144 display capable of displaying up to 16 shades of gray (mono) or 4096 colors (color).
↑ Front ↑ | Window | Scroll |
---|---|---|
Sprites, high priority | ✔ | |
Screen 2 | ✔ | ✔ |
Sprites, low priority | ✔ | |
Screen 1 | ✔ | |
Background color | ||
↑ Back ↑ | Window | Scroll |
Features
Screens are 32x32 tile maps, for a total of 256x256 pixels; each map entry can use one of 512 (mono) or 1024 (color) tiles, one of sixteen distinct palettes, as well as be drawn mirrored or flipped. The screens can be scrolled horizontally and vertically.
The sprite layer consists of 128 distinct sprites. These can use any of the first 512 tiles, palettes 8 through 15, as well as be drawn over or under screen 2.
The window functionality can be used to restrict drawing of Screen 2's tiles, as well as the sprite layer, to a given pixel-perfect window. Individual sprites can be marked as being drawn inside or outside the window.
Each palette consists of four colors, of which the first entry - color zero - is opaque in palettes 0-3 and 8-11 and transparent otherwise. The color models additionally feature a sixteen-color palette mode, in which color zero is always considered transparent. The background color is displayed if no opaque pixel from any screens or sprites is drawn.
In addition, a set of LCD segment-based icons is provided to a side of the display which can be independently controlled as an indicator to the user.
Interrupts
The display circuit generates two interrupts of its own:
- Display Interrupt Line Match - when
Display Current Line
==Display Interrupt Line
, at the beginning of said line. - Display Vertical Blank - when
Display Current Line
==144
, at the beginning of said line.
It also provides a timing source for the two Horizontal and Vertical Blank Timers, which provide their own respective interrupts.