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

■15.3 Bit configuration diagram

Each bit of a register has a relationship with other bits. The bit configuration diagram for each scroll screen and priority function is shown below.


●TV screen mode

TV screen display (DISP, 180000H, bit15)

Border color mode (BDCLMD, 180000H, bit8)

Interlace mode (LSMD, 180000H, bit7~6)

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

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


●External signal enable

External latch enable (EXLTEN, 180002H, bit9)

External synchronization enable (EXSYEN, 180002H, bit8)

Image display area selection (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)

Scan field flag (ODD, 180004H, bit1)

TV system flag (PAL, 180004H, bit)

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

V counter value (VCT, 180008H, bit9~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 enable (N0TPON, 180020H, bit8)

Screen display enable (N0ON, 180020H, 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, bit11~8)
  • Vertical mosaic size (MZSZV, 180022H, bit15~12)

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

Coordinate increment (N0ZMx, 180078H to 18007EH)

Reduction enable (N0ZMQT, N0ZMHF, 180098H, bit1~0)

Line scroll interval (N0LSS, 18009AH, bit5~4)

Line zoom enable (N0LZMX, 18009AH, bit3)

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

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

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

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

Vertical cell scroll table address (VCSTA, 18009CH, bit2 to 18009EH, 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,
    Reverse function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Reverse function cannot be specified

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

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

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

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

Plane 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 pallet number (N0BMP, 18002CH, bit2~0)

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

●Normal scroll screen (NBG1)

Transparent display enable (N1TPON, 180020H, bit9)

Screen display enable (N1ON, 180020H, bit1)

Number of character colors (N1CHCN, 180028H, bit13~12)

Bitmap enable (N1BMEN, 180028H, bit9)

Mosaic enable (N1BMEN, 180022H, bit1)
Mosaic size (MZSZx, 180022H)
  • Horizontal mosaic size (MZSZH, 180022H, bit11~8)
  • Vertical mosaic size (MZSZV, 180022H, bit15~12)

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

Coordinate increment (N1ZMx, 180088H to 18008EH)

Reduction enable (N1ZMQT, N1ZMHF, 180098H, bit9~8)

Line scroll interval (N1LSS, 18009AH, bit13~12)

Line zoom enable (N1LZMX, 18009AH, bit11)

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

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

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

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

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

●Cell format (NBG1)

Character size (N1CHSZ, 180028H, bit8)

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

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

Special color calculation (N1SCC, 180032H, bit8)
  • (For pattern name auxiliary data)

Auxiliary pallet number (N1SPLT, 180032H, bit7~5)
  • (For pattern name auxiliary data)

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

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

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

Map (N1MPx, 180044-180046H)

●Bitmap format (NBG1)

Bitmap size (N1BMSZ, 180028H, bit11~10)

Special priority (N1BMPR, 18002CH, bit3)

Special color calculation (N1BMCC, 18002CH, bit12)

Auxiliary pallet number (N1BMP, 18002CH, bit10~8)

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

●Normal scroll screen (NBG2)

Transparent display enable (N2TPON, 180020H, bit10)

Screen display enable (N2ON, 180020H, 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, bit11~8)
  • Vertical mosaic size (MZSZV, 180022H, bit15~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,
    Reverse function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Reverse 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 pallet number (N2SPLT, 180034H, bit7~5)
  • (For pattern name auxiliary data)

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

Plane size (N2PLSZ, 18003AH, bit5~4)

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

Map (N2MPx, 180048H~18004AH)


●Normal scroll screen (NBG3)

Transparent display enable (N3TPON, 180020H, bit11)

Screen display enable (N3ON, 180020H, 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, bit11~8)
  • Vertical mosaic size (MZSZV, 180022H, bit15~12)

Screen scroll value (N3SCx, 180094H to 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,
    Reverse function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Reverse function cannot be specified

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

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

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

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

Plane size (N3PLSZ, 18003AH, bit7~6)

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

Map (N3MPx, 18004CH~18004EH)


●Rotating scroll screen (RBG0)

Transparent display enable (R0TPON, 180020H, bit12)

Screen display enable (R0ON, 180020H, bit4)

Character color number (R0CHCN, 18002AH, bit14~12)

Bitmap enable (R0BMEN, 18002AH, bit9)

Mosaic enable (R0BMEN, 180022H, bit4)
Mosaic size (MZSZx, 180022H)
  • Horizontal mosaic size (MZSZH, 180022H, bit11~8)
  • Vertical mosaic size (MZSZV, 180022H, bit15~12)

Rotation data bank 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 enable (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,
    Reverse function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Reverse function cannot be specified

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

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

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

Auxiliary character number (R0SCN, 180038H, bit4~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 pallet number (N0BMP, 18002EH, bit2~0)

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

●For rotation parameter A (RBG0)

Plane size (RAPLSZ, 18003AH, bit9~8)

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

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

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

Map (RAMPx, 180050H to 18005EH)

●For rotation parameter B (RBG0)

Plane size (RBPLSZ, 18003AH, bit13~12)

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

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

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

Map (RBMPx, 180060H to 18006EH)


●Rotating scroll screen (RBG1)

Transparent display enable (R1TPON, 180020H, bit8)

Screen display enable (R1ON, 180020H, bit5)

Character color number (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, bit11~8)
  • Vertical mosaic size (MZSZV, 180022H, bit15~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,
    Reverse function can be specified for each character
  • 1: The character number in the pattern name data is 12 bits long,
    Reverse 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~0)
  • (For pattern name auxiliary data)

Use rotation parameter BReference: 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~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 coordinate) (WxxX, 1800C0H to 1800CCH)

Window position (vertical coordinate) (WxxY, 1800C2H ~ 1800CEH)


●Normal line window

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

Line window table address (WxLWTA, 1800D8H ~ 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 conditions (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 sprite) (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 enable (xxLCEN, 1800E8H)

Special priority mode (xxSPRM, 1800EAH)

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


●Color calculation

Blur calculation enable (BOKEN, 1800ECH, bit15)

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

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

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

Color calculation mode (CCMD, 1800ECH, bit8)

Color calculation enable (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 shadow select (TPSDSL, 1800E2H, bit8)


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