HARDWARE ManualVDP2 User's ManualChapter 8 Window
BackForward
VDP2 User's Manual / Chapter 8 Window

■ 8.2 Window processing

There are three types of window processing:

  1. Transparent processing window
  2. Rotation parameter window
  3. Color calculation window

The Transparency Window is a window that forces the specified window effective area to become transparent and can be used for each screen.

The rotation parameter window is a window that specifies whether to display the image obtained by rotation parameter A or the image obtained by rotation parameter B when displaying the RBG0 screen. The image obtained by rotation parameter B is displayed in the specified window effective area, and the image obtained by rotation parameter A is displayed outside the window effective area.

The color calculation window is a window that prevents color calculation in the specified window effective area, and is enabled for screens that use the color calculation function.

Window processing is shown in Figure 8.7.

Figure 8.7.1 Window processing ・ 1

Figure 8.7.2 Window processing ・ 2

Figure 8.7.3 Window processing ・ 3

● Window control register

The window control register specifies how to use the window for each screen. This is a write-only 16-bit register located at addresses 1800D0H to 1800D6H. After turning on the power or resetting, the value will be cleared to 0, so be sure to set it.

WCTLA 1800D0H
 15
 14
 13
 12
 11
 Ten
 09 09
 08 08
 N1LOG
 ---
 N1SWE
 N1SWA
 N1W1E
 N1W1A
 N1W0E
 N1W0A

 07 07
 06 06
 05 05
 04
 03 03
 02 02
 01 01
 00
 N0LOG
 ---
 N0SWE
 N0SWA
 N0W1E
 N0W1A
 N0W0E
 N0W0A 

WCTLB 1800D2H
 15
 14
 13
 12
 11
 Ten
 09 09
 08 08
 N3LOG
 ---
 N3SWE
 N3SWA
 N3W1E
 N3W1A
 N3W0E
 N3W0A

 07 07
 06 06
 05 05
 04
 03 03
 02 02
 01 01
 00
 N2LOG
 ---
 N2SWE
 N2SWA
 N2W1E
 N2W1A
 N2W0E
 N2W0A 

WCTLC 1800D4H
 15
 14
 13
 12
 11
 Ten
 09 09
 08 08
 SPLOG
 ---
 SPSWE
 SPSWA
 SPW1E
 SPW1A
 SPW0E
 SPW0A

 07 07
 06 06
 05 05
 04
 03 03
 02 02
 01 01
 00
 R0LOG
 ---
 R0SWE
 R0SWA
 R0W1E
 R0W1A
 R0W0E
 R0W0A 

WCTLD 1800D6H
 15
 14
 13
 12
 11
 Ten
 09 09
 08 08
 CCLOG
 ---
 CCSWE
 CCSWA
 CCW1E
 CCW1A
 CCW0E
 CCW0A

 07 07
 06 06
 05 05
 04
 03 03
 02 02
 01 01
 00
 RPLOG
 ---
 RPSWE
 RPSWA
 RPW1E
 RPW1A
 RPW0E
 RPW0A

 
Window logic bit : Logic bit
(N0LOG, N1LOG, N2LOG, N3LOG, R0LOG, SPLOG, RPLOG, CCLOG)
Specifies how to overlay the windows used for each screen.

N0LOG 1800D0H Bit 7 For NBG0 (or RBG1) of the transparent processing window
N1LOG 1800D0H Bit 15 For NBG1 (or EXBG) of transparent processing window
N2LOG 1800D2H Bit 7 For NBG2 of transparent processing window
N3LOG 1800D2H Bit 15 For NBG3 of transparent processing window
R0LOG 1800D4H Bit 7 For RBG0 of transparent processing window
SPLOG 1800D4H Bit 15 For sprites in transparent processing windows
RPLOG 1800D6H Bit 7 For rotation parameter window
CCLOG 1800D6H Bit 15 For color calculation window

xxLOG Overlay logic
0 OR
1 AND
Note The bit name xx can be N0, N1, N2, N3, R0, SP, RP, or CC.

When the window enable bits of W0, W1, and SW are all 0, setting this bit to 0 makes the entire screen not the window effective area, and setting it to 1 makes the entire screen the window effective area.

 

Window enable bit (for W0) : W0 enable bit
(N0W0E, N1W0E, N2W0E, N3W0E, R0W0E, SPW0E, RPW0E, CCW0E)
Specifies whether to use the normal window W0 for each screen.

N0W0E 1800D0H Bit 1 For NBG0 (or RBG1) of the transparent processing window
N1W0E 1800D0H Bit 9 For NBG1 (or EXBG) of transparent processing window
N2W0E 1800D2H Bit 1 For NBG2 of transparent processing window
N3W0E 1800D2H Bit 9 For NBG3 of transparent processing window
R0W0E 1800D4H Bit 1 For RBG0 of transparent processing window
SPW0E 1800D4H Bit 9 For sprites in transparent processing windows
RPW0E 1800D6H Bit 1 For rotation parameter window
CCW0E 1800D6H Bit 9 For color calculation window

xxW0E process
0 Do not use W0 window
1 Use W0 window
Note The bit name xx can be N0, N1, N2, N3, R0, SP, RP, or CC.

Window enable bit (for W1) : W1 enable bit
(N0W1E, N1W1E, N2W1E, N3W1E, R0W1E, SPW1E, RPW1E, CCW1E)
Specifies whether to use the normal window W1 for each screen.

N0W1E 1800D0H Bit 3 For NBG0 (or RBG1) of the transparent processing window
N1W1E 1800D0H Bit 11 For NBG1 (or EXBG) of transparent processing window
N2W1E 1800D2H Bit 3 For NBG2 of transparent processing window
N3W1E 1800D2H Bit 11 For NBG3 of transparent processing window
R0W1E 1800D4H Bit 3 For RBG0 of transparent processing window
SPW1E 1800D4H Bit 11 For sprites in transparent processing windows
RPW1E 1800D6H Bit 3 For rotation parameter window
CCW1E 1800D6H Bit 11 For color calculation window

xxW1E process
0 Do not use W1 window
1 Use W1 window
Note The bit name xx can be N0, N1, N2, N3, R0, SP, RP, or CC.

Window enable bit (for SW) : SW enable bit
(N0SWE, N1SW, N2SWE, N3SWE, R0SWE, SPSWE, CCSWE)
Specifies whether to use the sprite window SW on each screen.

N0SWE 1800D0H Bit 5 For NBG0 (or RBG1) of the transparent processing window
N1SWE 1800D0H Bit 13 For NBG1 (or EXBG) of transparent processing window
N2SWE 1800D2H Bit 5 For NBG2 of transparent processing window
N3SWE 1800D2H Bit 13 For NBG3 of transparent processing window
R0SWE 1800D4H Bit 5 For RBG0 of transparent processing window
SPSWE 1800D4H Bit 13 For sprites in transparent processing windows
CCSWE 1800D6H Bit 13 For color calculation window

xxSWE process
0 Do not use SW window
1 Use SW window
Note The bit name xx can be N0, N1, N2, N3, R0, SP, or CC.

When using a sprite window, set the sprite window enable bit (SPWINEN) in the sprite control register to 1.

Window area bit (for W0) : W0 area bit
(N0W0A, N1W0A, N2W0A, N3W0A, R0W0A, SPW0A, RPW0A, CCW0A)
Specifies which of the effective areas of the normal window W0 is used for each screen.

N0W0A 1800D0H Bit 0 For NBG0 (or RBG1) of the transparent processing window
N1W0A 1800D0H Bit 8 For NBG1 (or EXBG) of transparent processing window
N2W0A 1800D2H Bit 0 For NBG2 of transparent processing window
N3W0A 1800D2H Bit 8 For NBG3 of transparent processing window
R0W0A 1800D4H Bit 0 For RBG0 of transparent processing window
SPW0A 1800D4H Bit 8 For sprites in transparent processing windows
RPW0A 1800D6H Bit 0 For rotation parameter window
CCW0A 1800D6H Bit 8 For color calculation window

xxW0A process
0 Enable the inside of the W0 window
1 Enable outside the W0 window
Note The bit name xx can be N0, N1, N2, N3, R0, SP, RP, or CC.

Window area bit (for W1) : W1 area bit
(N0W1A, N1W1A, N2W1A, N3W1A, R0W1A, SPW1A, RPW1A, CCW1A)
Specifies which of the effective areas of the normal window W1 is used for each screen.

N0W1A 1800D0H Bit 2 For NBG0 (or RBG1) of the transparent processing window
N1W1A 1800D0H Bit 10 For NBG1 (or EXBG) of transparent processing window
N2W1A 1800D2H Bit 2 For NBG2 of transparent processing window
N3W1A 1800D2H Bit 10 For NBG3 of transparent processing window
R0W1A 1800D4H Bit 2 For RBG0 of transparent processing window
SPW1A 1800D4H Bit 10 For sprites in transparent processing windows
RPW1A 1800D6H Bit 2 For rotation parameter window
CCW1A 1800D6H Bit 10 For color calculation window

xxW1A process
0 Enable the inside of the W1 window
1 Enable the outside of the W1 window
Note The bit name xx can be N0, N1, N2, N3, R0, SP, RP, or CC.

Window area bit (for SW) : SW area bit
(N0SWA, N1SWA, N2SWA, N3SWA, R0SWA, SPSWA, CCSWA)
Specifies which of the effective areas of the sprite window SW to use for each screen.

N0SWA 1800D0H Bit 4 For NBG0 (or RBG1) of the transparent processing window
N1SWA 1800D0H Bit 12 For NBG1 (or EXBG) of transparent processing window
N2SWA 1800D2H Bit 4 For NBG2 of transparent processing window
N3SWA 1800D2H Bit 12 For NBG3 of transparent processing window
R0SWA 1800D4H Bit 4 For RBG0 of transparent processing window
SPSWA 1800D4H Bit 12 For sprites in transparent processing windows
CCSWA 1800D6H Bit 12 For color calculation window

xxSWA process
0 Enable the inside of the SW window
1 Enable the outside of the SW window
Note The bit name xx can be N0, N1, N2, N3, R0, SP, or CC.


BackForward
HARDWARE ManualVDP2 User's ManualChapter 8 Window
Copyright SEGA ENTERPRISES, LTD., 1997