Japanese
HARDWARE ManualVDP2 User's ManualChapter 6 Rotating scroll screen
BackForward
VDP2 User's Manual/Chapter 6 Rotating scroll screen

■6.2 Rotational scroll screen display control

The rotating scroll screen has two sides, RBG0 and RBG1, and if you want to display only one side, display RBG0. If you want to display RBG1, you must also display RBG0, and in that case, the normal scroll screen will not be able to be displayed at all.
When displaying a rotating scroll screen, the image data (pattern name table, character pattern table, or bitmap pattern) cannot be used in common with the image data for the normal scroll screen. It is also not possible to share the image data of RBG0 and RBG1. Additionally, the image data for each rotating scroll screen must be stored in separate VRAMs. Of the image data, the RBG1 pattern name table is stored in VRAM-B1, and the character pattern table is stored in VRAM-B0.

When RBG0 only needs coefficient data line by line, the coefficient table can be stored in any bank of VRAM, but when it is needed by dot, it must be stored in a separate bank from the image data. It won't.
The registers that control the display of the rotating scroll screen include the screen display enable register and the RAM control register. The screen display enable register controls the screen display and transparency code. The contents of the register are the same as the normal scroll screen. For details, see " 4.1 Screen Display Control ."

●RAM control register

The RAM control register specifies the VRAM bank division, the purpose of VRAM usage for the rotating scroll screen, and the color RAM mode. This is a 16-bit readable and writable register located at address 18000EH. The value is cleared to 0 after power-on or reset, so be sure to set it.

RAMCTL 18000EH
   15   
   14   
   13   
   12   
   11   
   10   
   09   
   08   
 CRKTE
 -
 CRMD1
 CRMD0
 -
 -
 VRBMD
 VRAMD

   07   
   06   
   05   
   04   
   03   
   02   
   01   
   00   
 RDBSB11
 RDBSB10
 RDBSB01
 RDBSB00
 RDBSA11
 RDBSA10
 RDBSA01
 RDBSA00

Color RAM coefficient table enable bit : Color RAM coefficient table enable bit (CRKTE), bit 15
Please refer to " 6.4 Coefficient table control ".

Color RAM mode bit : Color RAM mode bit (CRMD1, CRMD0), bits 13, 12
Please refer to " 3.4 Color RAM Mode ".
When the CRKTE bit is set to 1, set the color RAM mode to mode 1. At that time, the second half of the color RAM (100800H to 100FFFH) is used for coefficient table data, so color data cannot be stored.

  

VRAM mode bit : VRAM mode bit (VRAMD, VRBMD), bits 9, 8
Please refer to " 3.2 VRAM Bank Division ".

Rotation data bank selection bit : Data bank select bit
(RDBSA01, RDBSA00, RDBSA11, RDBSA10, RDBSB01, RDBSB00, RDBSB11, RDBSB10)
Specify the purpose of VRAM usage on the rotating scroll screen. This bit is only valid when displaying a rotating scroll screen.

RDBSA00,RDBSA01 18000EH bit 1,0 For VRAM-A0 (or for VRAM-A)
RDBSA10,RDBSA11 18000EH bit 3,2 For VRAM-A1
RDBSB00,RDBSB01 18000EH bit 5,4 For VRAM-B0 (or for VRAM-B)
RDBSB10,RDBSB11 18000EH bit 7,6 For VRAM-B1

RDBSx1 RDBSx0 VRAM usage purpose
 0
 0
Not used as RAM for RBG0
 0
 1
RAM for coefficient table of RBG0
 1
 0
RAM for RBG0 pattern name table
 1
 1
For RBG0 character pattern table (or bitmap pattern)
RAM
[Note] x in the bit name can be A0, A1, B0, or B1.

If VRAM is not divided into banks, the bits for VRAM-A0 are used for VRAM-A, and the bits for VRAM-B0 are used for VRAM-B.
If you do not need coefficient data for each dot, there is no need to set the coefficient table RAM (01B).
When displaying in bitmap format, there is no need to set RAM (10B) for the pattern name table.
The settings of the VRAM cycle pattern register of the VRAM bank specified as the rotary scroll RAM are ignored.
If the image data read address is not within the specified bank, the data will not be read and the screen will not be displayed correctly.
When displaying RBG1, be sure to set 00B to the bits for VRAM-B0 and VRAM-B1.
The coefficient data read address was not within the specified bank.

If this happens, the coefficient data will not be read and the screen display will not be correct.
When storing the coefficient table in color RAM, do not set the coefficient table RAM (01B) of RBG0.
When the CRKTE bit is set to 1, do not specify the 4 banks of VRAM to be used as RAM for coefficient table data.


BackForward
HARDWARE Manual VDP2 User's ManualChapter 6 Rotating scroll screen
Copyright SEGA ENTERPRISES, LTD., 1997