HARDWARE ManualVDP2 User's ManualChapter 15 How to use VDP2
BackBack
VDP2 User's Manual / Chapter 15 How to use VDP2

■ 15.3 Bit configuration diagram

Each bit in the register is associated with the other bit. The bit configuration diagram for each scroll screen and each priority function is shown below.


● TV screen mode

TV screen display (DISP, 180000H, bit15)

Border color mode (BDCLMD, 180000H, bit8)

Interlaced mode (LSMD, 180000H, bits7-6)

Vertical resolution (VRESO, 180000H, bit4-5)

Horizontal resolution (HRESO, 180000H, bit2-0)


● External signal enable

External latch enable (EXLTEN, 180002H, bit9)

External synchronization enabled (EXSYEN, 180002H, bit8)

Image display area select (DASEL, 180002H, bit1)

External screen enable (EXBGEN, 180002H, bit0)


● Screen status

External latch flag (EXLTFG, 180004H, bit9)

External synchronization flag (EXSYFG, 180004H, bit8)

V blank flag (VBLANK, 180004H, bit3)

H blank flag (HBLANK, 180004H, bit2)

Scanned field flag (ODD, 180004H, bit1)

TV system flag (PAL, 180004H, bit)

H counter value (HCT, 180008H, bit9 to 0)

V counter value (VCT, 180008H, bit9 to 0)

● VRAM

VRAM size (VRAMSZ, 180006H, bit15)

VRAM-A mode (VRAMD, 18000EH, bit8)
VRAM-B mode (VRBMD, 18000EH, bit9)

VRAM cycle pattern (for VRAM-A or VRAM-A0) (VCPnA0, 180010H, 180012H)
VRAM cycle pattern (for VRAM-A1) (VCPnA1, 180014H, 180016H)
VRAM cycle pattern (for VRAM-B or VRAM-B0) (VCPnB0, 180018H, 18001AH)
VRAM cycle pattern (for VRAM-B1) (VCPnB1, 18001CH, 18001EH)

Color RAM mode (CRMD, 18000EH, bit13-13)


● Scroll screen

Normal scroll

Rotating scroll

External input screen

Line screen


● Normal scroll screen (NBG0)

Transparent display enabled (N0TPON, 18020H, bit8)

Screen display enabled (N0ON, 18020H, bit0)

Number of character colors (N0CHCN, 180028H, bit6-4)

Bitmap enable (N0BMEN, 180028H, bit1)

Mosaic enable (N0BMEN, 180022H, bit0)
Mosaic size (MZSZx, 180022H)
  • Horizontal mosaic size (MZSZH, 180022H, bits 11-8)
  • Vertical mosaic size (MZSZV, 180022H, bits 15-12)

Screen scroll value (N0SCx, 180070H-180076H)

Coordinate increment (N0ZMx, 180078H-18007EH)

Reduced enable (N0ZMQT, N0ZMHF, 180098H, bits1 to 0)

Line scroll interval (N0LSS, 18909AH, bit5-4)

Line zoom enabled (N0LZMX, 18909AH, bit3)

Line scroll enable / vertical direction (N0LSCY, 18909AH, bit2)

Line scroll enable / horizontal direction (N0LSCX, 18909AH, bit1)

Vertical cell scroll enable (N0VCSC, 18909AH, bit0)

Line scroll table address (N0LSTA, 1800A0H, bit2 to 1800A2H, bit1)

Vertical cell scroll table address (VCSTA, 18909CH, bit2 to 18909EH, bit1)

● Cell format (NBG0)

Character size (N0CHSZ, 180028H, bit0)

Pattern name data size (N0PNB, 180030H, bit15)

1 word (pattern name data size)
Character number auxiliary mode (N0CNSM, 180030H, bit14)
  • 0: The character number in the pattern name data is 10 bits long,
    Inversion function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Invert function cannot be specified

Special priority (N0SPR, 180030H, bit9)
  • (For pattern name auxiliary data)

Special color operation (N0SCC, 180030H, bit8)
  • (For pattern name auxiliary data)

Auxiliary palette number (N0SPLT, 180030H, bit7-5)
  • (For pattern name auxiliary data)

Auxiliary character number (N0SCN, 180030H, bit4 to 0)
  • (For pattern name auxiliary data)

Plain size (N0PLSZ, 18003AH, bit1-0)

Map offset (N0MP, 18003CH, bit2-0)

Map (N0MPx, 180040-180042H)

● Bitmap format (NBG0)

Bitmap size (N0BMSZ, 180028H, bit3 ~ 2)

Special priority (N0BMPR, 18002CH, bit5)

Special color calculation (N0BMCC, 18002CH, bit4)

Auxiliary palette number (N0BMP, 18002CH, bit2 ~ 0)

Map offset (N0MP, 18003CH, bit2-0)

● Normal scroll screen (NBG1)

Transparent display enabled (N1TPON, 18020H, bit9)

Screen display enabled (N1ON, 18020H, bit1)

Number of character colors (N1CHCN, 180028H, bits 13-12)

Bitmap enable (N1BMEN, 180028H, bit9)

Mosaic enable (N1BMEN, 180022H, bit1)
Mosaic size (MZSZx, 180022H)
  • Horizontal mosaic size (MZSZH, 180022H, bits 11-8)
  • Vertical mosaic size (MZSZV, 180022H, bits 15-12)

Screen scroll value (N1SCx, 180080H-180086H)

Coordinate increment (N1ZMx, 180088H to 18008EH)

Reduced enable (N1ZMQT, N1ZMHF, 180098H, bit9-8)

Line scroll interval (N1LSS, 18909AH, bit13-12)

Line zoom enabled (N1LZMX, 18909AH, bit11)

Line scroll enable / vertical direction (N1LSCY, 18909AH, bit10)

Line scroll enable / horizontal direction (N1LSCX, 18909AH, bit9)

Vertical cell scroll enable (N1VCSC, 18909AH, bit8)

Line scroll table address (N1LSTA, 1800A4H, bit2 to 1800A6H, bit1)

Vertical cell scroll table address (VCSTA, 18909CH, bit2 to 18909EH, bit1)

● Cell format (NBG1)

Character size (N1CHSZ, 180028H, bit8)

Pattern name data size (N1PNB, 18032H, bit15)
1 word (pattern name data size)
Character number auxiliary mode (N1CNSM, 18032H, bit14)
  • 0: The character number in the pattern name data is 10 bits long,
    Inversion function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Invert function cannot be specified

Special priority (N1SPR, 18032H, bit9)
  • (For pattern name auxiliary data)

Special color operation (N1SCC, 18032H, bit8)
  • (For pattern name auxiliary data)

Auxiliary palette number (N1SPLT, 18032H, bit7-5)
  • (For pattern name auxiliary data)

Auxiliary character number (N1SCN, 18032H, bit4 to 0)
  • (For pattern name auxiliary data)

Plain size (N1PLSZ, 18003AH, bit3 ~ 2)

Map offset (N1MP, 18003CH, bit6-4)

Map (N1MPx, 180044-180046H)

● Bitmap format (NBG1)

Bitmap size (N1BMSZ, 180028H, bits 11-10)

Special priority (N1BMPR, 18002CH, bit3)

Special color calculation (N1BMCC, 18002CH, bit12)

Auxiliary palette number (N1BMP, 18002CH, bit10-8)

Map offset (N1MP, 18003CH, bit6-4)

● Normal scroll screen (NBG2)

Transparent display enabled (N2TPON, 18020H, bit10)

Screen display enabled (N2ON, 18020H, bit2)

Number of character colors (N2CHCN, 18002AH, bit1)

Display in cell formatReference: Cell format NBG2

Mosaic enable (N2BMEN, 180022H, bit2)
Mosaic size (MZSZx, 180022H)
  • Horizontal mosaic size (MZSZH, 180022H, bits 11-8)
  • Vertical mosaic size (MZSZV, 180022H, bits 15-12)

Screen scroll value (N2SCx, 180090H to 180092H)

● Cell format (NBG2)

Character size (N2CHSZ, 18002AH, bit0)

Pattern name data size (N2PNB, 180034H, bit15)
1 word (pattern name data size)
Character number auxiliary mode (N2CNSM, 180034H, bit14)
  • 0: The character number in the pattern name data is 10 bits long,
    Inversion function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Invert function cannot be specified

Special priority (N2SPR, 180034H, bit9)
  • (For pattern name auxiliary data)

Special color calculation (N2SCC, 180034H, bit8)
  • (For pattern name auxiliary data)

Auxiliary palette number (N2SPLT, 180034H, bit7-5)
  • (For pattern name auxiliary data)

Auxiliary character number (N2SCN, 180034H, bit4 to 0)
  • (For pattern name auxiliary data)

Plain size (N2PLSZ, 18003AH, bit5-4)

Map offset (N2MP, 18003CH, bit10-8)

Map (N2MPx, 180048H-18004AH)


● Normal scroll screen (NBG3)

Transparent display enabled (N3TPON, 18020H, bit11)

Screen display enabled (N3ON, 18020H, bit3)

Number of character colors (N3CHCN, 18002AH, bit5)

Display in cell formatReference: Cell format NBG3

Mosaic enable (N3BMEN, 180022H, bit3)
Mosaic size (MZSZx, 180022H)
  • Horizontal mosaic size (MZSZH, 180022H, bits 11-8)
  • Vertical mosaic size (MZSZV, 180022H, bits 15-12)

Screen scroll value (N3SCx, 180094H-180096H)

● Cell format (NBG3)

Character size (N3CHSZ, 18002AH, bit4)

Pattern name data size (N3PNB, 180036H, bit15)
1 word (pattern name data size)
Character number auxiliary mode (N3CNSM, 180036H, bit14)
  • 0: The character number in the pattern name data is 10 bits long,
    Inversion function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Invert function cannot be specified

Special priority (N3SPR, 180036H, bit9)
  • (For pattern name auxiliary data)

Special color operation (N3SCC, 180036H, bit8)
  • (For pattern name auxiliary data)

Auxiliary palette number (N3SPLT, 180036H, bit7-5)
  • (For pattern name auxiliary data)

Auxiliary character number (N3SCN, 180036H, bit4 to 0)
  • (For pattern name auxiliary data)

Plain size (N3PLSZ, 18003AH, bit7-6)

Map offset (N3MP, 18003CH, bit14-12)

Map (N3MPx, 18004CH ~ 18004EH)


● Rotating scroll screen (RBG0)

Transparent display enabled (R0TPON, 18020H, bit12)

Screen display enabled (R0ON, 18020H, bit4)

Number of character colors (R0CHCN, 18002AH, bit14-12)

Bitmap enable (R0BMEN, 18002AH, bit9)

Mosaic enable (R0BMEN, 180022H, bit4)
Mosaic size (MZSZx, 180022H)
  • Horizontal mosaic size (MZSZH, 180022H, bits 11-8)
  • Vertical mosaic size (MZSZV, 180022H, bits 15-12)

Rotation databank specification (RDBSxx, 18000EH)

Parameter read enable (RxxxSTRE, 1800B2H)

Rotation parameter table address (RPTA, 1800BCH, bit12 to 1800BEH, bit1)

Rotation parameter mode (RPMD, 1800B0H, bit1-0)

Coefficient line color enable (RxKLCE, 1800B4H)

Coefficient data mode (RxKMD, 1800B4H)

Coefficient data size (RxKDBS, 18004BH)

Coefficient table enabled (RxKTE, 1800B4H)

Coefficient table address offset (RxKTAOS, 1800B6H)

● Cell format (RBG0)

Character size (R0CHSZ, 18002AH, bit8)

Pattern name data size (R0PNB, 180038H, bit15)
1 word (pattern name data size)
Character number auxiliary mode (R0CNSM, 180038H, bit14)
  • 0: The character number in the pattern name data is 10 bits long,
    Inversion function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Invert function cannot be specified

Special priority (R0SPR, 180038H, bit9)
  • (For pattern name auxiliary data)

Special color operation (R0SCC, 180038H, bit8)
  • (For pattern name auxiliary data)

Auxiliary palette number (R0SPLT, 180038H, bit7-5)
  • (For pattern name auxiliary data)

Auxiliary character number (R0SCN, 180038H, bit4 to 0)
  • (For pattern name auxiliary data)

Rotation parameter mode (RPMD, 1800B0H, bit1-0)

● Bitmap format (RBG0)

Bitmap size (R0BMSZ, 18002AH, bit10)

Special priority (R0BMPR, 18002EH, bit5)

Special color calculation (N0BMCC, 18002EH, bit4)

Auxiliary palette number (N0BMP, 18002EH, bit2 ~ 0)

Rotation parameter mode (RPMD, 1800B0H, bit1-0)

● For rotation parameter A (RBG0)

Plain size (RAPLSZ, 18003AH, bit9-8)

Screen over processing (RAOVR, 18003AH, bit11-10)

Screen over pattern name register (RAOPN, 1800B8H, bit15 to 0)

Map offset (RAMP, 18003EH, bit2-0)

Map (RAMPx, 180050H to 18005EH)

● For rotation parameter B (RBG0)

Plain size (RBPLSZ, 18003AH, bit13-12)

Screen over processing (RBOVR, 18003AH, bit15-14)

Screen over pattern name register (RBOPN, 1800BAH, bit15 to 0)

Map offset (RBMP, 18003EH, bit6-4)

Map (RBMPx, 180060H to 18006EH)


● Rotating scroll screen (RBG1)

Transparent display enabled (R1TPON, 18020H, bit8)

Screen display enabled (R1ON, 18020H, bit5)

Number of character colors (R1CHCN, 180028H, bit6-4)

Display in cell formatReference: Cell format RBG1

Mosaic enable (R1BMEN, 180022H, bit0)
Mosaic size (MZSZx, 180022H)
  • Horizontal mosaic size (MZSZH, 180022H, bits 11-8)
  • Vertical mosaic size (MZSZV, 180022H, bits 15-12)

● Cell format (RBG1)

Character size (for NBG0) (N0CHSZ, 180028H, bit0)

Pattern name data size (NBG0) (N0PNB, 180030H, bit15)
1 word (pattern name data size)
Character number auxiliary mode (NBG0) (N0CNSM, 180030H, bit14)
  • 0: The character number in the pattern name data is 10 bits long,
    Inversion function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Invert function cannot be specified

Special priority (NBG0) (R1SPR, 180030H, bit9)
  • (For pattern name auxiliary data)

Special color operation (NBG0) (R1SCC, 180030H, bit8)
  • (For pattern name auxiliary data)

Auxiliary pallet number (NBG0) (R1SPLT, 180030H, bit7-5)
  • (For pattern name auxiliary data)

Auxiliary character number (NBG0) (R1SCN, 180030H, bit4 to 0)
  • (For pattern name auxiliary data)

Use rotation parameter BSee: For rotation parameter B

● For rotation parameter B (RBG1)

Plain size (RBPLSZ, 18003AH, bit13-12)

Screen over processing (RBOVR, 18003AH, bit15-14)

Screen over pattern name register (RBOPN, 1800BAH, bit15 to 0)

Map offset (RBMP, 18003EH, bit6-4)

Map (RBMPx, 180060H to 18006EH)


● Line color screen (LNCL)

Line color screen color mode (LCCLMD, 1800A8H, bit15)


● Back screen (BACK)

Back screen color mode (BKCLMD, 1800ACH, bit15)

Back screen table address (BKTA, 1800ACH, bit12 to 1800AEH, bit0)

● Window

Normal rectangular window

Normal line window

Sprite window

● Normal rectangular window

Window position (horizontal coordinates) (WxxX, 1800C0H to 1800CCH)

Window position (vertical coordinates) (WxxY, 1800C2H to 1800CEH)


● Normal line window

Line window enabled (WxLWE, 1800D8H to 1800DCH)

Line window table address (WxLWTA, 1800D8H to 1800DEH)


● Sprite window

Sprite window enable (SPWINEN, 1800E0H, bit4)


● Window control

Window logic (xxLOG, 1800D0H to 1800D6H)

Window enable (for W0) (xxW0E, 1800D0H to 1800D6H)

Window enable (for W1) (xxW1E, 1800D0H to 1800D6H)

Window enable (for SW) (xxSWE, 1800D0H to 1800D6H)

Window area (for W0) (xxW0A, 1800D0H to 1800D6H)

Window area (for W1) (xxW1A, 1800D0H to 1800D6H)

Window area (for SW) (xxSWA, 1800D0H to 1800D6H)


● Sprite

Sprite color calculation condition (SPCCCS, 1800E0H, bit13-12)

Sprite color calculation condition number (SPCCN, 1800E0H, bit10-8)

Sprite color mode (SPCLMD, 1800E0H, bit5)

Sprite window enable (SPWINEN, 1800E0H, bit4)

Sprite type (SPTYPE, 1800E0H, bit3 ~ 0)

Priority number (for sprites) (SxPRIN, 1800F0H to 1800F6H)

Color calculation ratio (for sprites) (SxCCRT, 180100H to 180106H)


● Dot color data

Color RAM address offset (xxCAOS, 1800E4H to 180E6H)

Special function code select (xxSFCS, 180024H)

Special function code (SFCDxx, 180026H)


● Priority

Line color insertion enabled (xxLCEN, 1800E8H)

Special priority mode (xxSPRM, 1800EAH)

Priority number (for scroll screen) (xxPRIN, 1800F8H to 1800FCH)


● Color calculation

Blur operation enabled (BOKEN, 1800ECH, bit15)

Blurred screen number (BOKN, 1800ECH, bit14-12)

Extended color arithmetic enable (EXCCEN, 1800ECH, bit10)

Color calculation ratio mode (CCRTMD, 1800ECH, bit9)

Color calculation mode (CCMD, 1800ECH, bit8)

Color calculation enabled (xxCCEN, 1800ECH)

Special color calculation mode (xxSCCM, 1800EEH)

Color calculation ratio (for scroll screen) (xxCCRT, 180108H to 18010EH)


● Color offset

Color offset enable (xxCOEN, 180110H)

Color offset select (xxCOSL, 180112H)

Color offset value (COxxx, 180114H to 18011EH)


● Shadow function

Shadow enable (xxSDEN, 1800E2H)

Transparent Shadowverse (TPSDSL, 1800E2H, bit8)


BackBack
HARDWARE ManualVDP2 User's ManualChapter 15 How to use VDP2
Copyright SEGA ENTERPRISES, LTD., 1997