General Notice When using this document, keep the following in mind: ntial 1. This document is confidential. By accepting this document you acknowledge that you are bound by the terms set forth in the non-disclosure and confidentiality agreement signed separately and /in the possession of SEGA. If you have not signed such a non-disclosure agreement, please contact SEGA immediately and return this document to SEGA. 2. This document may include technical inaccuracies or typographical errors. Changes are periodi- cally made to the information herein; these changes will be incorporated in new versions of the program(s) described in this document at any time. de document. SEGA may make improvements and/or changes in the product(s) and/or the 3. No one is permitted to reproduce or duplicate, in any form, the whole or part of this document without SEGA’S written permission. Request for copies of this document and for technical information about SEGA products must be made to your authorized SEGA Technical Services representative. nfi 4. No license is granted by implication or otherwise under any patents, copyrights, trademarks, or other intellectual property rights of SEGA Enterprises, Ltd., SEGA of America, Inc., or any third party. describe herein. Co 5. Software, circuitry, and other examples described herein are meant merely to indicate the character- istics and performance of SEGA’s products. SEGA assumes no responsibility for any intellectual property claims or other problems that may result from applications based on the examples 6. It is possible that this document may contain reference to, or information about, SEGA products (development hardware/software) or services that are not provided in countries other than Japan. Such references/information must not be construed to mean that SEGA intends to provide such SEGA products or services in countries other than Japan. Any reference of a SEGA licensed prod- GA uct/program in this document is not intended to state or simply that you can use only SEGA’s licensed products/programs. Any functionally equivalent hardware/software can be used instead. 7. SEGA will not be held responsible for any damage to the user that may result from accidents or any other reasons during operation of the user’s equipment, or programs according to this document. NOTE: A reader's comment/correction form is provided with this document. Please address comments to : SE SEGA of America, Inc., Developer Technical Support (att. Evelyn Merritt) 150 Shoreline Drive, Redwood City, CA 94065 SEGA may use or distribute whatever information you supply in any way it believes appropriate without incurring any obligation to you. (6/27/95- 002) TM ntial de nfi Co GA VDP2 User's Manual SE Version 1.1 Doc. #ST-58-R2-060194 © 1994 SEGA. All Rights Reserved. READER CORRECTION/COMMENT SHEET Keep us updated! nti If you should come across any incorrect or outdated information while reading through the attached document, or come up with any questions or comments, please let us know so that we can make the al required changes in subsequent revisions. Simply fill out all information below and return this form to the Developer Technical Support Manager at the address below. Please make more copies of this form if more space is needed. Thank you. General Information: Your Name Phone Document number Document name Corrections: Chpt. pg. # ST-58-R2-060194 VDP2 User's Manual Correction de Date nfi Co GA Questions/comments: SE Fax: Where to send your corrections: (415) 802-3963 Attn: Manager, Developer Technical Support Mail: SEGA OF AMERICA Attn: Manager, Developer Technical Support 275 Shoreline Dr. Ste 500 Redwood City, CA 94065 REFERENCES with the assistance of the technical literature listed below. nti In translating/creating this document, certain technical words and/or phrases were interpreted al 1. KenKyusha New Japanese-English Dictionary 1974 Edition 2. 3. 4. Nelson’s Japanese-English Character Dictionary 2nd revised version Microsoft Computer Dictionary Japanese-English Computer Terms Dictionary de Nichigai Associates 4th version nfi Co GA SE Preface Manual Notations nti This manual describes the VDP2 (Video Display Processor 2) and how to use it. The VDP2 controls the scroll screen control and the display priority control. Notations within this manual are described below. al Binary, hexadecimal Binary notation has a B attached at the end (as in 100B); however, B may be omitted when and FFH). de binary notation is obvious. Hexadecimal notation has an H attached at the end (as in 00H Units 1 Kbyte is 1024 bytes. 1 Mbit is 1024 Kbits, or 1,048,576 bits. MSB, LSB nfi The structure of byte and word shows the MSB (most significant bit) on the left and LSB (least significant bit) on the right. An undefined bit A bit not defined by the register is shown as a dash. A “0” should be written into an undefined Byte, word, bit Co bit of the register. Bits not defined by data of tables defined by VRAM are shown as shaded. As a rule, a 0 should be written, providing that the undefined bit is ignored. Bits, as in digits of 0 and 1, are the lowest unit of data. A byte consists of 8 bits. A word consists of 2 bytes, and begins from an even address. Boundary Address GA A boundary defines data from an address divisible by a selected value. For example, data for a 20H-byte boundary is defined at addresses beginning from 20H, 40H, and so on. A word is a 2-byte boundary. All addresses defined by VDP2 are relative addresses within VDP2. The first address of VDP2 begins from 5E00000H. For example, VRAM is at 000000H address of the relative address, and begins from 5E00000H address of the absolute address. The TV screen mode register is at SE 180000H address of the relative address, and is set at address 5F80000H of the absolute address. i Manual Structure The main items described in each chapter are as follows. Table 1. Chapters and Main Items ntial Chapter Name Contents Chapter 1 VDP2 Functions Chapter 2 TV Screen Chapter 3 RAM de VDP2 Functions TV Screen Mode, Normal, Hi-Res, Exclusive Monitor, Interlace Mode, External Signal,- H Counter, V-Counter, Exclusive Hi-Res Setting VRAM Size, Address Map, VRAM, Color RAM, Register, VRAM Change, VRAM Bank Partition, VRAM Access Method, Color RAM Chapter 4 Scroll Screen nfi Mode Cell, Character Color Count, Transparent Dot, Character Pattern, Pattern Name Table, Special Function Bit, Reverse Function Bit, Page, Plane, Map, Bitmap, Screen-Over Process, Mosaic Process Chapter 7 Line Screen Co Chapter 5 Normal Scroll Screen Chapter 6 Rotation Scroll Screen Chapter 8 Window Screen Scroll, Scaling, Line Scroll, Vertical Cell Scroll Coordinates Rotation Scroll Increment, Rotation Scroll Screen Display, Rotation Parameter Coefficient Table Line Color Screen, Back Screen Normal Rectangular Window, Normal Line Window, Sprite Window Chapter 9 Sprite Data Sprite Type, Sprite Color Mode, Priority, Color GA Chapter 10 Dot Color Data Chapter 11 Priority Function Chapter 12 Color Calculation Calculation Palette Format, RGB Format, Sprite Dot, Scroll Dot, Special Function Code Priority Number, Line Color Screen Insertion Color Calculation, Extended Color Calculation, Special Color Calculation, Gradation Calculation Chapter 13 Color Offset Function Color Offset SE Chapter 14 Shadow Function Chapter 15 How To Use VDP2 Normal Shadow, MSB Shadow Operation Flow Chart, How to use RAM, Bit Structure ii Table 2. Functions, their chapters and sections Function Overview TV Screen Details ~ TV Screen Configuration, Designate Display Area, Boarder Area TV Screen Mode, Normal, Hi-Res, Exclusive Monitor Chapter 1 2.1 2.2 Interlace, Non-interlace, Single-Density Interlace, 2.3 nti VDP2 Functions al TV Screen Configuration TV Screen Mode Interlace Mode Double-Density Interlace Address Map 3.1 Address Map Size 3.1 Address Map RAM VRAM Change 3.2 VRAM Change Color RAM Mode Bank Partition Access During Display Screen Display Character de Color Count Bitmap Color 3.3 3.4 3.5 4.1 4.3 VRAM Bank Partition How to Access VRAM During Display Color RAM Mode Screen Display Control Cell Normal Scroll Screen Rotation Scroll Color nfi Count Palette Format 10.1 Palette Format Dot Color Dot Color Data RGB Format Dot Color Data Color RAM Data 10.2 RGB Format Dot Color Data 3.5 Color RAM Mode Scroll Screen Screen Co Cell Format Bitmap Format Mode Cell Character Pattern Pattern Name 4.6 Table (Page) Plane Map 4.3 4.4 4.7 4.8 4.9 Cell Character Pattern Pattern Name Table (Page) Plane Map Bitmap Display Area, Screen-Over 4.10 Display Area Mosaic Process 4.11 Mosaic Process GA Screen Scroll Function 5.1 Screen Scroll Function Scale Function 5.2 Scale Function Line Scroll Function, Vertical 5.3 Line & Vertical Cell Scroll Cell Scroll Function Function SE iv Table 2. Functions, their chapters and sections (continued) Function Details Rotation Coordinates Calculation Display Control Scroll Screen Rotation Parameter Control Chapter 6.1 6.2 6.3 8 nti Rotation Scroll Coordinates Calculation al Rotation Scroll Screen Display Control Rotation Parameter Control Window Scroll Screen Coefficient Control 6.4 Coefficient Table Control Line Color Screen 7.1 Line Color Screen Line Screen 6.4 Coefficient Table Control 11.3 Line Color Screen Insertion Window Sprite Sprite Window Back Screen Normal Rectangular Window, Normal Line Window, Sprite Window, Window Effective Area 9.1 Sprite Data, Type, Color Mode Priority and Color Calculation de 7.2 8 9.1 9.2 8 9.1 Back Screen Window Sprite Data Sprite Data Priority and Color Calculation Window Sprite Data Dot Color Data Priority Function Palette Format RGB Format Color RAM Mode nfi 10.1 Palette Format Dot Color Data 10.2 RGB Format Dot Color Data 3.5 Color RAM Mode 11.1 Priority Function 9.2 Priority and Color Calculation Priority Image Process Co Special Priority Function Line Color Screen Insertion Color Color Calculation Function, Extended Color Calculation Function Special Color Calculation Function 11.2 10.3 11.3 Line Color Screen Insertion 7.1 12.1 7.1 12.3 Special Priority Function Special Function Code Line Color Screen Color Calculation Function Line Color Screen Special Color Calculation Function 10.3 Special Function Code Gradation Calculation Function 12.2 Gradation Calculation GA Function Color Calculation Window 8 Window Color Offset Function 13 Color Offset Function Shadow Normal Shadow, MSB Shadow 14 Shadow Function 9.1 Sprite Data SE v Table of Contents Preface ............................................................................................................................ i nti Manual Notation .................................................................................................. i Manual Structure ............................................................................................... iii al List of Figures................................................................................................................ xi List of Tables ............................................................................................................... xiv Chapter 1 VDP2 Functions ........................................................................................... 1 Introduction......................................................................................................... 2 1.1 System Configuration ................................................................................... 2 1.2 Address Map ................................................................................................ 3 de VRAM ..................................................................................................... 3 Color RAM .............................................................................................. 3 Register .................................................................................................. 4 1.3 Scroll Function.............................................................................................. 5 Display Screen ....................................................................................... 5 Scroll Screen .......................................................................................... 6 nfi Line Screen ............................................................................................ 7 Windows ................................................................................................. 7 1.4 Priority Function ........................................................................................... 8 Priority Function...................................................................................... 8 Color Calculation Function ..................................................................... 8 Color Offset Function .............................................................................. 8 Shadow Function .................................................................................... 9 Co Chapter 2 TV Screen .................................................................................................. 11 2.1 TV Screen Mode ........................................................................................12 Special High Resolution Graphic Mode ................................................ 13 2.2 Interlace Mode............................................................................................ 14 2.3 TV Screen Structure ................................................................................... 15 2.4 TV Screen Mode Register .......................................................................... 16 2.5 External Signals and Scan Conditions ....................................................... 19 GA External Signal Enable Register ........................................................... 19 Screen Status Register ........................................................................ 21 H Counter Register ............................................................................... 23 V Counter Register ............................................................................... 24 Chapter 3 RAM ...........................................................................................................25 Introduction.......................................................................................................26 3.1 Address Map ..............................................................................................26 VRAM Size Register .............................................................................28 SE 3.2 VRAM Bank Partitioning .............................................................................29 RAM Control Register .......................................................................... 29 3.3 Accessing VRAM During Display Interval .................................................. 31 VRAM Access During Display Interval ................................................. 31 Image Data Access ..............................................................................32 Vertical Cell Scroll Table Data Access .................................................. 35 Read/Write Access by the CPU ............................................................ 35 VRAM Cycle Pattern Selection Process ............................................... 37 vi VRAM Cycle Pattern Register .............................................................. 39 3.4 Color RAM Mode ........................................................................................ 43 RAM Control Register .......................................................................... 45 nti Chapter 4 Scroll Screen .............................................................................................. 47 4.1 Screen Display Control .............................................................................. 48 Screen Display Enable Register ........................................................... 48 al 4.2 Scroll Screen Structure .............................................................................. 50 Cell Format ....................................................................................................... 50 Bit Map Format ................................................................................................. 52 4.3 Cell ............................................................................................................. 53 Character Color Number ...................................................................... 53 Cell Data Configuration ........................................................................ 53 Transparent Dots .................................................................................. 57 de RGB Format Dot Data .......................................................................... 58 4.4 Character Patterns ..................................................................................... 59 Character Size and Cell Arrangement .................................................. 59 4.5 Character Control Register ........................................................................ 60 4.6 Pattern Name Table (Page) ........................................................................ 64 Pattern Name Table Data Configuration ............................................... 64 nfi Pattern Name Data ............................................................................... 69 Character Number ................................................................................ 74 Palette Number..................................................................................... 74 Special Function Bit .............................................................................. 74 Reverse (Flip) Function Bit ................................................................... 75 Pattern Name Control Register ............................................................ 76 Co 4.7 Planes ........................................................................................................ 79 Plane Size ............................................................................................ 79 Plane Size Register .............................................................................. 80 4.8 Maps ........................................................................................................... 82 Map Selection Register ........................................................................ 82 Map Size ............................................................................................... 84 Map Offset Register .............................................................................. 85 Normal Scroll Screen Map Register ..................................................... 87 Rotation Scroll Surface Map Register .................................................. 89 GA 4.9 Bit Maps ..................................................................................................... 93 Bit Map Size ......................................................................................... 93 Bit Map Color Number .......................................................................... 93 Bit Map Pattern ..................................................................................... 95 Bit Map Palatte Number ..................................................................... 111 Special Function Bit ............................................................................ 111 Bit Map Palatte Number Register ....................................................... 112 4.10 Display Area ........................................................................................... 114 SE Display Area ....................................................................................... 114 Screen-Over Process ......................................................................... 115 Display-Over Pattern Name ............................................................... 115 Screen-Over Pattern Name Register ................................................. 116 4.11 Mosaic Process ...................................................................................... 117 Mosaic Control Register ..................................................................... 118 vii Chapter 5 Normal Scroll Screen ............................................................................... 121 Introduction..................................................................................................... 122 5.1 Screen Scroll Function ............................................................................. 122 nti Screen Scroll Value Register .............................................................. 123 5.2 Expansion/Contraction Function .............................................................. 126 Coordinate Increment Register .......................................................... 127 Reduction Enable Register ................................................................. 129 al 5.3 Line and Vertical Cell Scroll Function ....................................................... 131 Line Scroll Function ............................................................................131 Vertical Cell Scroll Function ................................................................ 134 Line and Vertical Cell Scroll Control Register..................................... 137 Line Scroll Table Address Register ..................................................... 140 Vertical Cell Scroll Table Address Register ........................................ 141 de Chapter 6 Rotation Scroll Screen ............................................................................. 143 Introduction..................................................................................................... 144 6.1 Rotation Scroll Coordinate Operation ...................................................... 144 6.2 Rotation Scroll Screen Display Control .................................................... 148 RAM Control Register ........................................................................ 148 6.3 Rotation Parameter Control ..................................................................... 151 nfi Data Configuration of the Rotation Parameter Table .......................... 153 Rotation Parameter Table ................................................................... 155 Rotation Parameter Read Control Register ........................................ 157 Rotation Parameter Table Address Register ...................................... 158 Rotation Read Out of the Frame Buffer .............................................. 159 Rotation Parameter Change ............................................................... 160 Co Rotation Parameter Mode Register .................................................... 162 6.4 Coefficient Table Control .......................................................................... 163 Line Color Screen Data ...................................................................... 164 Bit Configuration of Coefficient Table Data ......................................... 165 Coefficient Table Lead Address .......................................................... 165 Most Significant Bit of Coefficient Data .............................................. 166 RAM Control Register ........................................................................ 167 Coefficient Table Control Register ...................................................... 168 Coefficient Table Address Offset Register .......................................... 170 GA Chapter 7 Line Screen ..............................................................................................171 Introduction..................................................................................................... 172 7.1 Line Color Screen .................................................................................... 172 Line Color Screen Table Address Register ......................................... 174 7.2 Back Screen ............................................................................................. 175 Back Screen Table Address Register ................................................. 176 SE Chapter 8 Windows ................................................................................................... 179 8.1 Window Area ............................................................................................ 180 Normal Rectangular Window .............................................................. 180 Window Position Register .................................................................. 181 Normal Line Window .......................................................................... 184 Line Window Table Address Register ................................................. 186 Sprite Window .................................................................................... 187 viii Sprite Control Register ....................................................................... 188 Window’s Active Area for the Screen.................................................. 189 8.2 Window Process .......................................................................................190 nti Window Control Register .................................................................... 193 Chapter 9 Sprite Data ...............................................................................................199 9.1 Sprite Data ...............................................................................................200 al Sprite Types ........................................................................................ 200 Sprite Color Mode............................................................................... 203 9.2 Priority and Color Calculation ................................................................... 204 Priority Number Selection ................................................................... 204 Color Calculation Enable Conditions .................................................. 205 Color Calculation Ratio Selection ....................................................... 206 Sprite Control Register ....................................................................... 207 de Priority Number Register .................................................................... 209 Color Calculation Ratio Registers ...................................................... 210 Chapter 10 Pixels ......................................................................................................213 Introduction..................................................................................................... 214 10.1 Palette Format Pixels .............................................................................214 nfi Sprite Dot Pixels ................................................................................. 214 Scroll Dot Pixels ................................................................................. 216 Color RAM Address Offset Register ................................................... 217 10.2 RGB Format Pixels ................................................................................ 218 Sprite Pixels........................................................................................ 218 Scroll Pixels ........................................................................................ 218 Co 10.3 Special Function Code ........................................................................... 220 Special Function Code Select Register .............................................. 221 Special Function Code Register ......................................................... 222 Chapter 11 Priority Function......................................................................................223 Introduction..................................................................................................... 224 11.1 Priority Function ......................................................................................224 Priority Number................................................................................... 224 Priority Number Register .................................................................... 225 GA 11.2 Special Priority Function ......................................................................... 227 Special Priority Mode Register ........................................................... 229 11.3 Insertion of Line Color Screen ............................................................... 230 Line Color Screen Enable Register .................................................... 231 Chapter 12 Color Calculations ................................................................................... 233 Introduction..................................................................................................... 234 12.1 Color Calculation Function ..................................................................... 234 SE Normal Color Calculation ................................................................... 234 Extended Color Calculation Function ................................................. 236 12.2 Gradation Calculation Function .............................................................. 238 Color Calculaton Control Register ...................................................... 240 Color Calculation Ratio Register ........................................................ 243 12.3 Special Color Calculation Function ........................................................ 245 Special Color Calculation Mode Register ........................................... 247 ix Chapter 13 Color Offset Function ............................................................................. 249 Introduction..................................................................................................... 250 13.1 Color Offset Selection ............................................................................250 nti Color Offset Enable Register .............................................................. 251 Color Offset Select Register ............................................................... 252 Color Offset Register .......................................................................... 253 al Chapter 14 Shadow Function ................................................................................... 255 Introduction..................................................................................................... 256 14.1 Shadow Process .................................................................................... 256 Normal Shadow .................................................................................. 256 MSB Shadow ......................................................................................258 Shadow Control Register ................................................................... 259 de Chapter 15 How to Use VDP2 .................................................................................. 261 15.1 Operation Flow ....................................................................................... 262 15.2 How to Use RAM .................................................................................... 264 15.3 Bit Configuration Map ............................................................................. 267 Chapter 16 Quick Reference .................................................................................... 295 nfi 16.1 Register Map .......................................................................................... 296 16.2 Register Bit List ......................................................................................315 16.3 Register Bit Functions ............................................................................328 16.4 Table List ................................................................................................389 Co GA SE x Table of Figures Chapter 1 VDP2 Functions Chapter 2 TV Screen nti Figure 1.1 System Configuration ........................................................................ 2 Figure 1.2 Address Map ..................................................................................... 3 al Figure 2.1 Display Method by Interlace Setting ............................................... 14 Figure 2.2 TV Screen Structure........................................................................ 15 Chapter 3 RAM Figure 3.1 Different Capacities of VRAM Address Map ................................... 27 Figure 3.2 VRAM Cycle Pattern Register ......................................................... 32 Figure 3.4 Example of Character Pattern Data Read Access de Figure 3.3 Access Selection Limits of Pattern Name Table Data ..................... 33 Selection ......................................................................................... 34 Figure 3.5 Access Select Limits of Vertical Cell Scroll Table Data ................... 35 Figure 3.6 CPU Read/Write Access Selection when VRAM is not Divided into Two Bank ............................................... 36 Figure 3.7 CPU Read/Write Access Selection when Chapter 4 Scroll Screen nfi VRAM is Divided into Two Banks ................................................... 37 Figure 3.8 VRAM Cycle Pattern Selection ....................................................... 39 Figure 3.9 Color Data Configuration on Color RAM ......................................... 44 Figure 3.10 Color Data of the Color RAM ........................................................ 45 Co Figure 4.1 Scroll Screen Configuration of Cell Format ..................................... 50 Figure 4.2 Scroll Screen Configuration of Cell Format and Corresponding Data Settings ......................................................... 51 Figure 4.3 Scroll Screen Configuration of Bit Map Format............................... 52 Figure 4.4 Relationship of bit map format scroll screen and data settings....... 52 Figure 4.5 Configuration of Cells by Character Color Count ............................ 54 Figure 4.6 RGB Format Dot Data ..................................................................... 58 Figure 4.7 Cell Arrangement by Character Size ............................................... 59 Figure 4.8 Data Configuration of Pattern Name Tables ................................... 65 GA Figure 4.9 Bit Configuration when Pattern Name Data is 2 Word .................... 69 Figure 4.10 Configuration when Pattern Name Data is 1 Word ....................... 71 Figure 4.11 Dot Color Data by Character Number of Colors ............................ 74 Figure 4.12 Reverse Display of Character Patterns......................................... 75 Figure 4.13 Arrangement of Pattern Name Table by Plane Size ...................... 79 Figure 4.14 Map Selection Register ................................................................. 82 Figure 4.15 Map Size ....................................................................................... 84 Figure 4.16 Plane Arrangement of Map by Reduction Settings ....................... 85 SE Figure 4.17 Bit Map Pattern Configuration ....................................................... 96 Figure 4.18 Dot Color Data by Bit Map Number of Colors ............................. 111 Figure 4.19 Mosaic Pattern ............................................................................ 117 xi Chapter 5 Normal Scroll Screen Figure 5.1 Screen Scroll Value Bit Configuration ........................................... 122 Figure 5.2 Configuration of Coordinate Increment Register........................... 126 nti Figure 5.3 Line Scroll Function ...................................................................... 131 Figure 5.4 Bit Configuration of Line Scroll Table Data ................................... 132 Figure 5.5 Line Scroll Table ............................................................................133 Figure 5.6 Vertical Cell Scroll Function .......................................................... 134 al Figure 5.7 Data Configuration on Vertical Cell Scroll Table ........................... 135 Figure 5.8 Vertical Cell Scroll Table................................................................ 136 Chapter 6 Rotation Scroll Screen Figure 6.1 Rotation Scroll Screen Display Method ........................................ 145 Figure 6.2 Rotation Parameter data Configuration ........................................ 153 Figure 6.3 Rotation Parameter Table ............................................................. 156 Chapter 7 Line Screen de Figure 6.4 How to Store to the Rotation Parameter Table VRAM .................. 157 Figure 6.5 Rotation Parameter Change ......................................................... 161 Figure 6.6 Line Color Screen Data Using Coefficient Data ............................ 164 Figure 6.7 Bit Configuration of Coefficient Table Data ................................... 165 nfi Figure 7.1 Line Screen ................................................................................... 172 Figure 7.2 Configuration of Line Color Screen Table ..................................... 173 Figure 7.3 Bit Configuration of Line Color Screen Table Data ....................... 173 Figure 7.4 Configuration of Back Screen Table .............................................. 175 Figure 7.5 Bit Configuration of Back Screen Table Data ................................ 176 Chapter 8 Windows Co Figure 8.1 Normal Rectangle Window ........................................................... 180 Figure 8.2 Normal Line Window ..................................................................... 184 Figure 8.3 Bit Configuration of Normal Line Window Table Data ................... 184 Figure 8.4 Configuration of Normal Line Window Table ................................. 185 Figure 8.5 Sprite Window ............................................................................... 187 Figure 8.6 Active Area of Windows ................................................................ 189 Figure 8.7 Window Process ........................................................................... 191 GA Chapter 9 Sprite Data Figure 9.1 Sprite Types .................................................................................. 201 Chapter 10 Dot Color Data Figure 10.1 Palette Format Sprite Dot Color Data ......................................... 215 Figure 10.2 Sprite Color RAM Address .......................................................... 215 Figure 10.3 Palette Format Scroll Dot Color Data .......................................... 216 Figure 10.4 Scroll Color RAM Address .......................................................... 216 SE Figure 10.5 RGB Format Sprite Dot Color Data ............................................. 218 Figure 10.6 RGB Format Scroll Dot Color Data ............................................. 219 Figure 10.7 Dot Color Code Corresponding to Special Function Code ......... 220 xii Chapter 11 Priority Function Figure 11.1 Priority Function .......................................................................... 224 Figure 11.2 Line Color Screen Insertion ......................................................... 230 Chapter 12 Color Operations nti Figure 12.1 Color Calculation Function ......................................................... 234 Figure 12.2 Color Calculation Ratio Mode ..................................................... 236 al Figure 12.3 Expand Color Operation Function ............................................... 237 Figure 12.4 Gradation Calculation Function ................................................... 239 Chapter 13 Color Offset Function Figure 13.1 Color Offset Data ........................................................................ 250 Chapter 14 Window Function de Figure 14.1 Shadow Function ........................................................................ 256 Figure 14.2 Sprite Data Write of a Normal Shadow ....................................... 257 Figure 14.3 Sprite Data of a Normal Shadow ................................................ 257 Figure 14.4 Sprite Shadow and Transparent Shadow ................................... 258 Figure 14.5 Sprite Data of MSB Shadow ....................................................... 259 nfi Co GA SE xiii List of Tables Chapter 1 VDP2 Functions Chapter 2 TV Screen nti Table 1.1 TV Screen Mode ................................................................................. 5 Table 1.2 Scroll Screen ..................................................................................... 5 Table 1.3 Windows ............................................................................................. 6 al Table 1.4 Scroll Screen Function ....................................................................... 6 Table 2.1 TV Screen Mode ............................................................................... 12 Table 2.2 Register for Setting the External Screen .......................................... 21 Table 2.3 H Counter Register Bit Content ........................................................ 24 Table 2.4 V Counter Register Bit Content ........................................................ 24 Chapter 3 RAM de Table 3.1 Data Defined in VRAM ..................................................................... 26 Table 3.2 Access Numbers of Required Pattern Name Table Data during 1 Cycle .................................................................................. 33 Table 3.3 Character Pattern Data (Bit Map Pattern Data) Read Access Number ...................................................................... 34 Chapter 4 Scroll Screen nfi Table 3.4 Character Pattern Data Read Access Selection Limits .................... 34 Table 3.5 Access Command .............................................................................40 Table 4.1 Character Color Count and Dot Data Size ....................................... 53 Table 4.2 Cell Data Configuration ....................................................................53 Co Table 4.3 Transparent Dot Data Values ........................................................... 58 Table 4.4 Pattern Name Table Capacity Page Boundary of One Page ............ 64 Table 4.5 Character Number Auxiliary Mode .................................................... 69 Table 4.6 Bit Configuration when Pattern Name Table is 1 Word .................... 70 Table 4.7 Reverse Function Bit ........................................................................ 75 Table 4.8 Address Value of Map Designation Register by Setting ................... 83 Table 4.9 Bit Map Size .....................................................................................93 Table 4.10 Bit Map Color Count ....................................................................... 94 GA Table 4.11 Bit Map Pattern Capacity per Surface ........................................... 95 Table 4.12 Normal Scroll Screen Display Area .............................................. 114 Table 4.13 Rotation Scroll Screen Display Area ............................................. 114 Chapter 5 Normal Scroll Screen Table 5.1 Horizontal Coordinate Increment and Reduction Setting ............... 128 Table 5.2 Display Screen Limits by Setting of Reduction Enable Bit ............. 130 Chapter 6 Rotation Scroll Screen SE Table 6.1 Rotation Scroll Screen ................................................................... 144 Table 6.2 Rotation Parameters ....................................................................... 151 Table 6.3 Lease significant bit of Coefficient Parameter Data Showing the Address Value Separate from Coefficient Parameter Data Size ..................................................... 166 Table 6.4 Image Processing using RGB0 Coefficient Data MGB Value. ........ 167 xiv Chapter 8 Windows Table 8.1 Bit Content of Window Position Register for Horizontal Coordinates. .................................................................................... 182 Table 8.2 Bit Content of Window Position Register for Vertical nti Coordinates. .................................................................................... 183 Chapter 9 Sprite Data al Table 9.1 Shared Bits .....................................................................................200 Table 9.2 Selection of Sprite Priority Number Register .................................. 204 Table 9.3 Selection of Sprite Color Calculation Ratio Register ...................... 206 Chapter 11 Priority Function Table 11.1 Priority when the Priority Numbers are Equal ............................... 225 Table 11.2 Special Priority Function by Mode ................................................ 228 Chapter 12 Color Operation Table 12.1 Color Operation Function when in High Resolution de Mode or Special Monitor Mode .................................................... 236 Table 12.2 Expanded Color Calculation Ratio................................................ 238 Table 12.3 Special Color Calculation Mode ................................................... 246 Chapter 15 Method of Using VDP2 nfi Table 15.1 Register Connected with Data Defined in VRAM ......................... 265 Co GA SE xv Chapter 1 VDP2 Functions ntial de nfi Co Introduction .......................................................... 2 1.1 System Configuration .................................. 2 1.2 Address Map ............................................... 3 GA VRAM .................................................... 3 Color RAM ............................................. 3 Register ................................................. 4 1.3 Scroll Function ............................................ 5 Display Screen ...................................... 5 Scroll Screen ......................................... 6 Line Screen .......................................... 7 Windows .......................................... 7 SE 1.4 Priority Function .......................................... 8 Priority Function .................................... 8 Color Calculation Function .................... 8 Color Offset Function ............................ 8 Shadow Function ................................... 9 ST-58-R2 1 Introduction VDP2 has a scroll and priority function. The scroll function defines the scroll screen, 1.1 System Configuration nti moves the screen up, down, right, left, and rotates the screen. The priority function prioritizes the display of multiple scroll screens, sprites, and external screens. It also processes the images in operations such as color calculation and color offset. al VDP2 is connected to 4 Mbit or 8 Mbit VRAM and contains 32K bits of color RAM. Image data is defined in the VRAM and color RAM from the CPU via the SCU. Image display controlling information is set by each register in the same way. Data defined by VRAM is read according to the setting of the register, then becomes the de image data of each scroll screen. Image data of each scroll screen and sprite image data received from VDP1, as well as the external image data received from outside, become image display data. Display priority is decided by the register setting. When display image data is in a palette format, color data defined in the color RAM according to that value is read and displayed. When display image data is in the nfi RGB format, it is shown as is. In this way, the acquired display color data is output to the display device. The VDP2 system configuration is shown in Figure 1.1. External Screen Co VDP1 VDP2 Register Circuitry (OPTION) CPU SCU Display Device Color RAM GA VRAM SE Figure 1.1 System Configuration 2 1.2 Address Map In order to define pattern name tables and character pattern data, VDP2 is connected VRAM, color RAM, and register address maps. nti to two VRAMs. VDP2 contains 32K bits of color RAM for defining color data, and together with internal registers control VRAM. Figure 1.2 shows VDP2 controlled 000000H al VRAM 0FFFFFH 100000H 17FFFFH 180000H 1BFFFFH de COLOR-RAM REGISTER Figure 1.2 Address Map VRAM nfi VRAM stores scroll screen image data and data tables needed in each function. Read access by VDP2 is always given priority over read/write access through the CPU or DMA controller. Consequently, the wait cycle enters the CPU or DMA Color RAM Co controller through the access timing. Access through the CPU or DMA controller is possible in units of byte, word, and long word. Color RAM stores color data of sprites and scroll screens. It also defines the enable bit of the color calculation function as it applies to the most significant bit when necessary. Read/write access from the CPU or DMA controller is possible, but the image may be disturbed by the access timing. Access through the CPU or DMA GA controller is possible only in word units and long word units. Access in bytes is not allowed. SE ST-58-R2 3 Register Registers set each VDP2 function. Because the values of most registers are cleared to 0 after power on or reset, the values must be set. Read/write access from the CPU or long word units. Access in bytes is not allowed. nti DMA controller is always possible, but the image may be poor due to the access timing. Access by the CPU or DMA controller is possible only in word units and al de nfi Co GA SE 4 1.3 Scroll Function The VDP2 scroll function has a scroll screen and a window. Display Screen The TV screen mode has the following characteristics. Table 1.1 TV Screen Mode TV Screen Graphic Mode Horizontal ntial Vertical Display Device Mode Resolution Resolution (Pixels) (Pixels) Normal Normal 320 224 NTSC Format Graphic A Normal 352 240 or Hi-Res Exclusive Graphic B Hi-Res Graphic A Hi-Res Graphic B Exclusive Normal Graphic A Exclusive Normal de 640 704 320 352 256 selection 480 480 PAL Format TV 31kHz Monitor Hi-Vision Monitor Monitor Graphic B Exclusive Hi-Res Graphic A Exclusive Hi-Res Graphic B nfi 640 704 480 480 31kHz Monitor Hi-Vision Monitor Normal Co The scroll screen which can be displayed has the following characteristics. Table 1.2 Scroll Screen Scroll Screen Scroll Screen Name Normal Scroll 0 Normal Scroll 1 Normal Scroll 2 Normal Scroll 3 Name NBG0 NBG1 NBG2 NBG3 Remarks Can move up/down/left/ right. Can scale Can move up/down/left/ right. Rotation Rotation Scroll 0 RBG0 Can scale/rotate Scroll Screen Rotation Scroll 1 RBG1 GA Line Screen Expandable Screen Line Color Screen Back Screen External Input Screen LNCL BACK EXBG Used only in color calculations Displayed only when other screens are not displayed Screen input externally SE ST-58-R2 5 The following windows exist: Table 1.3 Windows Window Name Normal Window Sprite Window Scroll Screen Name W0 W1 SW nti Remarks Line Window allowed Sprite Character Window al The functions of the scroll screen are listed in the table below. Table 1.4 Scroll Screen Function Function Normal Scroll Screen Rotation Scroll Screen Character Color Count Character NBG0 16 colors 256 colors 2048 colors 32,768 colors 16,770,000 colors selection NBG1 16 colors 256 colors 2048 colors 32,768 colors selection NBG2 16 colors 256 colors selection 1 Cell H x 1 Cell V; 2 Cells H x 2 Cells V de NBG3 16 colors 256 colors selection RBG0 16 colors 256 colors 2048 colors 32,768 colors RBG1 16,770,000 colors selection 16 colors 256 colors 2048 colors 32,768 colors 16,770,000 colors selection Size Pattern Name 1 Word, 2 Words selection Data Size Plane Size Plane Count 4 Bitmap Display 1 H x 1 V 1 Pages; 2 H x 1 V 1 Pages; 2 H x 2 V Pages Display Allowed 4 Display Allowed 512 H x 256 V Dots 4 Display Not Allowed 4 nfi Display Not Allowed 16 Display Allowed 16 Display Not Allowed 512 H X 256 V None Co Bitmap Size None 512 H x 512 V Dots Dots 1024 H x 256 V Dots 512 H X 512 V 1024 H x 512 V Dots selection selection Scale 1/4~256 ratio None Any Ratio Function Rotation None Yes Function Line Scroll Yes Yes No No No Function Vertical Cell Yes Yes No No No GA Scroll Function Mosaic Yes Yes (Horizontal Direction Only) Process Function Note: *There are 2048 colors when the color RAM is in mode 1, and 1024 colors when in mode 0 or 2. Normal scroll screen changes the number of screens that can be displayed through SE each setting. 6 The normal scroll screen can be displayed simultaneously with one rotation scroll screen. If two rotation scroll screens are displayed, the normal scroll screen cannot be displayed (the register that sets RBG1 is used for NBG0). When an external input input screen can be used for NBG1. nti screen is displayed, NBG1 cannot be displayed. The register setting the external Line Screen al The line color screen works for color calculation and on other screens. It can indicate whether the entire screen consists of one color, or if there is a color for each line, but it cannot display characters. The back screen is displayed when all other screens are transparent. The entire ters cannot be displayed. de screen is displayed in one color, or a color can be selected for each line, but charac- Windows A rectangular window can be selected by using the two screen coordinate value points in the upper left and lower right corners of a normal window. The sprite nfi window is a window based on sprite characters. There are three types of windows that can be used and stacked individually for each screen: the “transparent control window” designates the transparent area; the “color calculation window” designates the area in which color calculation is not performed; the “rotation parameter win- dow” changes screens by two rotation parameters. Co GA SE ST-58-R2 7 1.4 Priority Function There are four types of VDP2 priority functions: priority function, color calculation function, color offset function, and shadow function. Priority Function ntial The display priority of the sprite and scroll screen is decided by a 3-bit priority number. The sprite priority number can be set at a maximum value of 8, one of which is designated by character units. The scroll screen priority number is usually designated by surface units. When the special priority function is used, character units and dot units can change the scroll screen priority number. Color Calculation Function de By adding color data of multiple screens, the color calculation function produces an effect in which the back screen can be seen through the front screen. It is normally performed by two screen images, the top image and the second image, but up to four screens can be peformed when the expanded color calculation function is used. character units and dot units. nfi Surface units determine whether the color calculation is performed. Sprites can be selected by character units through sprite color calculation condition settings. When a scroll screen uses the special color calculation function, sprites can be selected by The color calculation ratio of the top and second images can be selected from 32 tally and displayed. Co steps. Sprites can set a maximum of 8 color calculation ratios, among which one can be selected by character units. The scroll screen is selected by surface units. When the Gradation function is used, one selected screen can be gradated horizon- Color Offset Function The color offset function is used for displaying the offset value calculation (subtrac- tion) for color data, and for fade in and fade out purposes. The color offset function GA can be specified by surface unit. Up to two color offset values can be selected for each RGB, one of which can be specified by surface units. SE 8 Shadow Function The shadow function adds shadow to the shapes of sprite characters on each screen. There are two types of sprite shadow: normal shadow by data, and MSB shadow. nti The normal shadow can only add a shadow to the scroll screen. The MSB shadow can add a shadow to scroll screens and to sprites. al de nfi Co GA SE ST-58-R2 9 (This page was blank in the original Japanese document.) ntial de nfi Co GA SE 10 Chapter 2 TV Screen ntial de nfi Co GA 2.1 2.2 2.3 2.4 TV Screen Mode .................................................. 12 Special High Resolution Graphics Mode ............. 13 Interlace Mode ..................................................... 14 TV Screen Structure ............................................ 15 TV Screen Mode Register ................................... 16 2.5 External Signals and Scan Conditions ................ 19 SE External Signal Enable Register .................... 19 Screen Status Register .................................. 21 H Counter Register ........................................ 23 V Counter Register ........................................ 24 ST-58-R2 11 2.1 TV Screen Mode VDP2 can display images in 31 kHz monitors as well as high-vision monitors, and in nti NTSC and PAL standards for TV. There are three kinds of image displaying TV screen modes: normal, high-resolution, and special monitor. Screen scan format can be selected from three types: non-interlace, single-density interlace, and double- al density interlace. A register showing TV scan conditions is also provided. Table 2.1 shows the TV screen modes that are selectable, the graphics mode, and the current resolution. Furthermore, special settings are required when indicating special high-resolution graphics A and special high-resolution graphics B. Table 2.1 TV Screen Mode TV Screen Mode Normal Graphics Mode Normal Graphic A Interlace Mode Non-interlace Interlace de Horiz X Vertical. Resolution (Pixels) 320 X 224 320 X 240 320 X 256 320 X 448 320 X 480 Restrictions During Use PAL standard only Normal Graphic B nfi Non-interlace Interlace 320 X 512 352 X 224 352 X 240 352 X 256 352 X 448 352 X 480 352 X 512 PAL standard only PAL standard only PAL standard only Hi-Res Hi-Res Graphic A Co Non-interlace Interlace Non-interlace 640 X 224 640 X 240 640 X 256 640 X 448 640 X 480 640 X 512 704 X 224 704 X 240 PAL standard only PAL standard only Hi-Res 704 X 256 PAL standard only Graphic B 704 X 448 GA Interlace 704 X 480 704 X 512 PAL standard only Non-interlace 320 X 480 31kHz monitor only Non-interlace 352 X 480 Hi-vision monitor only Non-interlace 640 X 480 31kHz monitor only Non-interlace 704 X 480 Hi-vision monitor only SE 12 Special High-Resolution Graphics Mode The graphics mode of special high-resolution graphics A or B displays one screen by joining the NBG0 and NBG1 screens. If the following setting is not performed, the display will not appear correctly. • Must be able to display only NBG0 and NBG1. ntial • The NBG0 and NBG1 character pattern tables (or, bit map pattern) and pattern name tables must use the exact same data. • Must be able to reduce both NBG0 and NBG1 horizontally up to 50%. • Set the vertical direction screen scroll values of NBG0 and NBG1 so that they are identical. • Set the NBG1 horizontal screen scroll value at the NBG0 horizontal screen scroll value plus 1. de • Set both NBG0 and NBG1 horizontal coordinate increments at 2. • Set the color RAM mode to 0. • Set the priority numbers of NBG0 and NBG1 at the same value. • Do not enter the line color screen. • Special priority of both NBG0 and NBG1 should be in mode 0. be the same. nfi • Do not use the color calculation function. • For registers other than those listed above, NBG0 and NBG1 settings should Co GA SE ST-58-R2 13 2.2 Interlace Mode VDP2 interlace mode (screen scan method) consists of non-interlace, single-density interlace, and double-density interlace modes. The non-interlace mode is 1 field per frame (1/60 sec.). The single-density interlace mode is 2 fields (1/30 sec.) per frame; the same image is displayed in even and odd fields. The double-density interlace mode is 2 fields (1/30 sec.) per 1 frame with separate images being displayed in even and odd fields. There is no space between scan lines in both the single-density and double-density interlace modes, but the actual resolution in the vertical direction of ntial the single-density interlace mode is the same as the resolution in the vertical direction of the non-interlace mode. Figure 2.1 shows display methods by interlace settings. 8X8 Do t Char act er Pat ter n de ● No n- Inter lace Mo de nfi Be cau se sca nn ing occu rs a t the same a rea i n eve ry fiel d, some area s may n ot be scan ne d, thu s Co ● Singl e Densi ty Int erl ace Mod e crea ting some g ap s. 1 frame p er 1 fiel d (1/60 se c.) Sca nn in g occu rs i n ea ch o dd an d even field , ho weve r, sin ce the same pi cture i s di sp la yed , the GA vertica l resol utio n wi ll be si milar to that in the N on- Interl ace M ode . 1 frame p er 2 fiel ds (1/30 se c.) ● Å Doub le Den sit y Inter lace Mo de SE Sca nn in g occu rs i n ea ch o dd an d even field , ho weve r, sin ce di fferent pi ctures are di spl ayed , the ve rtica l resol ution wil l b e d ou bl e tha t i n the Non -Interlace mod e. 1 frame p er 2 fiel ds (1/30 se c.) Figure 2.1 Display Method by Interlace Setting 14 2.3 TV Screen Structure In response to the TV screen mode, VDP2 outputs image signals corresponding to their respective NTSC standard or PAL standard TV, 31 kHz monitor, and high- vision monitor. The TV screen is a collection of rasters constructed by vertical dis- nti play intervals, vertical blank intervals (V blank interval), and their respective hori- zontal display intervals and horizontal blank intervals (H blank interval). The TV screen structure is shown in Figure 2.2. The location where horizontal display inter- vals and vertical display intervals overlap is the standard display area of the various al TV formats. The set display area, where VDP2 is able to display the image, is slightly smaller than the standard display area. The border area excludes the set display area from the standard display, and can output either black or the back screen. Ver tica l Traci ng Hor izo nt al Tr acin g Per iod de Ho rizo nt al Disp lay Per iod Hor izon tal Tra ci ng Per iod Peri od nfi Boar de rA re a Ve rtical Displ ay Per iod Co Set ting Displ ay Are a Ver tica l Traci ng Stan da rd Peri od Displ ay Are a GA Stand ar d Displ ayA re a= Setting Displ ay Area+ Boar de r Area Figure 2.2 TV Screen Structure SE ST-58-R2 15 2.4 TV Screen Mode Register The TV screen mode register controls the TV screen display. It is a read/write 16 bit register and is at address 180000H. After the power on or reset, the value is cleared to 0 and therefore must be set. TVMD 180000H 15 DISP 7 LSMD1 14 ~ 6 LSMD0 13 ~ 5 VRESO1 12 ~ 4 VRESO0 11 ~ 3 ~ nti 10 ~ 2 al HRESO2 9 ~ 1 HRESO1 8 BDCLMD 0 HRESO0 • TV screen display bit : Display bit (DISP), bit 15 Controls picture display to the TV screen. DISP 0 1 Process de Picture is not displayed on TV screen Picture is displayed on TV screen Because it is in the blank condition during the display interval when this bit is 0, the VRAM can be accessed from the CPU or DMA controller at any time. The colors change this bit from 0 to 1 during V blank. nfi displayed when this bit is 0 are selected by the BDCLMD bit. Please make sure to • Border color mode bit (BDCLMD), bit 8 Controls colors displayed by the border area. BDCLMD Process 0 1 Co Displays black Display back screen Selects colors of all the standard display areas when the DISP bit is 0. However, after the power on or reset, if this bit is set to 1 without setting DISP bit to 1 even once, the back screen will not be correctly displayed. When the setting allows the back screen selection by line, the color displayed in the border area will become the same color as the lowermost line in the display area. GA SE 16 • Interlace mode bit (LSMD1, LSMD0) bits 7 and 6 Designates the interlace mode. LSMD1 LSMD0 Process 0 0 1 1 0 1 0 1 nti Non-Interlace Setting not allowed Single-density interlace Double-density interlace al Single-density interlace is a mode that shows the same pictures in odd and even fields; double-density interlace is a mode that shows different pictures in odd and even fields. In either case, the spaces between scan lines are not vacant. The vertical resolution for double-density interlace is twice that of non-interlace, but the vertical resolution of the actual picture for single-density interlace is the same for non- interlace. Pictures displayed in double-density interlace are vertically half the size sure to select the noninterlaced mode (00B). de of pictures displayed in single-density interlace or non-interlace. When the horizon- tal resolution (HRESO2 to HRESO0) setting is in the exclusive monitor mode, make • Vertical resolution bit (VRESO1, VRESO0), bit 5, 4 Designates vertical resolution when a picture is displayed on the TV screen. VRESO1 0 0 1 1 VRESO0 0 1 0 1 nfi Vertical Resolution 224 Lines 240 Lines 256 Lines Not Allowed Display Monitor NTSC or PAL format TV NTSC or PAL format TV PAL format TV - Co Increments when vertical resolution is increased, then are added to the top and bottom of the screen without changing the screen’s center. When set in the special monitor mode, the horizontal resolution (HRESO2 to HRESO0) is set to 480 lines. Settings of this bit are ignored. GA SE ST-58-R2 17 • Horizontal resolution bit (HRESO2 to HRESO0), bit 2 to 0 Selects the horizontal resolution when a picture is displayed on the TV screen. HRESO2 HRESO1 HRESO0 Horizontal Graphic Mode Display 0 0 0 0 0 0 1 1 0 1 0 1 Resolution 320 Pixels 352 Pixels 640 Pixels 704 Pixels Normal Graphic A Normal nti Graphic B Hi-Res Graphic A Hi-Res Graphic Bal Monitor NTSC Format or PAL Format TV 1 0 0 320 Pixels Exclusive Normal 31kHz Monitor Graphic A 1 0 1 352 Pixels Exclusive Normal Hi-Vision Monitor Graphic B 1 1 1 1 0 1 640 Pixels 704 Pixels de Exclusive Normal Graphic A Exclusive Normal Graphic B When special high-resolution graphics A or B is selected, other registers must be set as directed. See “Special High Resolution Graphics Mode” on page 13 for more information. When switching the TV mode from exclusive monitor mode to normal 31kHz Monitor Hi-Vision Monitor nfi mode or hi-res mode, make sure to reset the VDP2. Co GA SE 18 2.5 External Signals and Scan Conditions The register controlling external signals has an external signal enable register. The ter, and V counter register. nti register displaying TV scan conditions has a screen status register, H counter regis- External Signal Enable Register al The external signal enable register controls signals from the VDP2 exterior. It is a read/write 16 bit register and is at address 180002H. After the power is turned on or reset, the value is cleared to 0 and must be set. 15 14 13 12 11 10 9 8 EXTEN ~ ~ ~ ~ ~ ~ EXLTEN EXSYEN 180002H 7 ~ 6 ~ 5 ~ • External latch enable bit (EXLTEN), bit 9 de 4 ~ 3 ~ 2 ~ 1 DASEL Selects the condition for latching the HV counter value to the HV counter register. 0 EXBGEN EXLTEN 0 1 Condition nfi Latches when reading external signal enable register Latches through external signal The latched H counter value can read with the H counter register; V counter value can read with the V counter register. When reading H and V counter values through external signals such as laser guns, the bit should be set at 1. Otherwise, it should be set at 0. Co • EXSYNC enable bit (EXSYEN), bit 8 Controls input to the internal synchronous circuit of the external sync signal. EXSYEN 0 Process Does not input external sync signal 1 Inputs external sync signal, and synchronizes TV screen display with the external GA When synchronizing with other devices and screen displays, set to 1 and input an EXSYNC signal. The normal setting is 0. • Display area select bit (DASEL), bit1 Designates the image display area. Valid only when the EXBGEN bit is 1. SE ST-58-R2 19 DASEL Process 0 Displays screen image only in the set display area 1 Displays screen in the standard display area rectly. nti When displaying the entire standard display area, images from external screen data are displayed correctly. Images not in set display areas (sprite, scroll screen, etc.) need to be made transparent using a window because they are not displayed cor- • EXBG enable bit (EXBGEN), bit 0 Controls input of external screen data. al EXBGEN Process 0 Does not input external screen data 1 Inputs external screen data bit for setting the external screen. de Because the data becomes NBG1 screen data when inputting external screen data, the external screen settings are used for NBG1 as well. Table 2.2 shows the register nfi Co GA SE 20 Table 2.2 Register for setting the external screen Address Bit Number Bit Name 180020H 9 N1TPON Transparent display enable 180028H 1800D0H 13,12 8 9 10 11 12 13 15 N1CHCN1, N1CHCN0 N1W0A N1W0E N1W1A N1W1E N1SWA N1SWE N1LOG nti Character Color Count W0 window area W0 window enable W1 window area al W1 window enable SW window area SW window enable Window logic 1800E2H 1 N1SDEN Shadow enable 1800E4H 6~4 N1CAOS2~N1CAOS0 Color RAM address offset 1800E8H 1 N1LCEN Line color screen insertion enable 1800EAH 3,2 N1SPRM1, N1SPRM0 Special priority mode 1800ECH 1 N1CCEN Color calculation enable 1800EEH 1800F8H 180118H 180110H 180112H 3,2 10~8 12~8 1 1 N1SCCM, N1SCCM0 N1PRIN2~N1PRIN0 N1CCRT4~N1CCRT0 N1COEN N1COSL de Special color calculation mode Priority number Color Calculation Ratio Color offset enable Color offset select Screen Status Register The screen status register displays TV screen information. This read exclusive 16-bit register is at address 180004H. TVSTAT 15 ~ 14 ~ nfi 13 ~ 12 ~ 11 ~ 10 ~ 9 EXLTFG 8 EXSYFG 180004H 7 ~ Co 6 ~ 5 ~ 4 ~ 3 VBLANK 2 HBLANK 1 ODD 0 PAL GA SE ST-58-R2 21 • External latch flag (EXLTFG), bit 9 Through external signals, this displays whether the HV counter value is latched to the HV counter register. Clears to 0 when the screen status register reads out. EXLTFG 0 1 HV Counter Value Status Not latched in register Latched in register • External SYNC flag (EXSYFG), bit 8 ntial Displays whether the internal routes through External SYNC flag are in sync. Clears to 0 when the screen status register reads out. EXSYFG External Sync Status 0 Not synchronized 1 Internal circuit synchronized • Vertical blank flag (VBLANK), bit 3 Displays the vertical scan status of the TV screen. VBLANK 0 1 Vertical Scan Status During vertical scan During vertical re-trace (VBLANK) de • Horizontal blank flag (HBLANK), bit 2 nfi Displays the horizontal scan status of the TV screen. HBLANK 0 1 Horizontal Scan Status During horizontal scan During horizontal re-trace (HBLANK) Co GA SE 22 • Scan Field Flag : Odd/even field flag (ODD), bit 1 Scan conditions are shown when the TV screen mode is the interlace mode. The non-interlace mode is always 1. ODD 0 1 Display During even field scan During odd field scan • TV standard flags : PAL/NTSC flag (PAL), bit 0 Displays TV standards. ntial PAL Display 0 NTSC standard 1 PAL standard H Counter Register The H counter register shows the H counter value. This read exclusive 16-bit regis- ter is at address 180008H. HCNT 15 ~ 14 ~ 13 ~ de 12 ~ 11 ~ 10 ~ 9 HCT9 8 HCT8 180008H 7 HCT7 6 HCT6 nfi 5 HCT5 • H counter bit (HCT9 to HCT0), bits 9 to 0 4 HCT4 3 HCT3 2 HCT2 1 HCT1 0 HCT0 Signals controlled through EXLTEN external signal enable register show the latched H counter values. The bit configuration of this bit changes according to the setting Co of the graphics mode, as seen in Table 2.3. For normal graphics of H counter values, the HCT0 of the least significant bit is invalid data. For special normal graphics of H counter values, the HCT9 of the most significant bit is invalid data. For the H counter value of special high-resolution graphics, the most significant bit of HCT9 becomes invalid. Because there is no bit for H0, it shows a value of 2 dot units. GA SE ST-58-R2 23 Table 2.3 H counter register bit content Graphic HCT9 HCT8 HCT7 HCT6 HCT5 HCT4 HCT3 HCT2 HCT1 HCT0 Mode Normal Hi-Res Exclusive Normal Exclusive Hi-Res H8 H9 H7 H8 Invalid H8 Invalid H9 H6 H7 H7 H8 H5 H6 H6 H7 H4 H5 H5 H6 H3 H4 H4 H5 H2 H3 H3 H4 H1 H2 H2 H3 ntial H0 H1 H1 H2 Invalid H0 H0 H1 V Counter Register The V counter register shows the V counter value. This read exclusive 16-bit register is at address 18000AH. VCNT 18000AH 15 ~ 7 VCT7 14 ~ 6 VCT6 13 ~ 5 VCT5 12 ~ 4 VCT4 ~ 3de 11 VCT3 10 ~ 2 VCT2 9 VCT9 1 VCT1 8 VCT8 0 VCT0 nfi • V counter value bit : V counter bit (VCT9~VCT0), bit 9 to 0 Signals controlled through EXLTEN external signal enable register show the latched V counter values. The bit configuration of this register changes according to the settings of the TV screen mode, as shown in Table 2.4. The V counter values for single density interlace of the normal and high resolution modes show V counter values in their various even and odd fields. The V counter values for double density values in their respective fields. Co interlace of normal and high resolution modes show the odd fields when 0 and even field when the least significant bit of VCT0 is 1. VCT1~VCT9 show the V counter Table 2.4 V counter register bit content TV Screen VCT9 VCT8 VCT7 VCT6 VCT5 VCT4 VCT3 VCT2 VCT1 VCT0 (Interlace) Mode Normal Hi-Res V8 V7 V6 V5 V4 V3 V2 V1 V0 Invalid (Non-Interlace, GA Single-Density Interlace) Normal Hi-Res V8 V7 V6 V5 V4 V3 V2 V1 V0 0: Odd fields (Double-Density 1: Even fields Interlace) Exclusive V9 V8 V7 V6 V5 V4 V3 V2 V1 V0 Monitor SE 24 Chapter 3 RAM ntial de nfi Co GA Introduction...................................................................... 26 3.1 Address Map ............................................................. 26 VRAM Size Register ............................................... 28 3.2 VRAM Bank Partitioning ............................................ 29 RAM Control Register ............................................ 29 3.3 Accessing VRAM During Display Interval ................. 31 VRAM Access During Display Interval ................... 31 Image Data Access ................................................ 32 Vertical Cell Scroll Table Data Access .................... 35 SE Read/Write Access by the CPU .............................. 35 VRAM Cycle Pattern Selection Process................. 37 VRAM Cycle Pattern Register ................................ 39 3.4 Color RAM Mode ....................................................... 43 RAM Control Register ............................................ 45 ST-58-R2 25 Introduction VDP2 is connected to special VRAM for defining pattern name tables, character VRAM-A0, VRAM-A1, VRAM-B0, and VRAM-B1. VRAM data is defined in table nti patterns, and so on. VRAM has two divisions called VRAM-A and VRAM-B, each having equal capacity. VRAM-A and VRAM-B can each be divided into two banks, called bank 0 and bank 1. Banks divided with four equal capacities are called al 3.1. Also contained is color RAM for defining the color data of scroll screens and sprites. Table 3.1 Data defined in VRAM Data that must be defined when Data that must be defined when Data defined as necessary display format is cell (format) display format is bitmap (format) Pattern name table data Character pattern data Bitmap pattern data de Line scroll table data Vertical cell scroll table data Rotation parameter table data Coefficient table data Line color screen table data Back screen table data Line window table data 3.1 Address Map nfi VDP2 can be applied to two types of VRAM: 4 Mbit and 8 Mbit. Programs created for systems using a 4 Mbit VRAM can also be used in systems using 8 Mbit VRAM, using 4 Mbit VRAM. Co but programs created for systems using an 8 Mbit VRAM cannot be used in systems GA SE 26 The address map changes according to VRAM capacity being used in the system, as shown in Figure 3.1. ● VRAM Size: 4M Bit 000000H 01FFFFH 020000H VRAM-A0 ntial VRAM-A1 03FFFFH 040000H VRAM-B0 05FFFFH 060000H 07FFFFH ● VRAM Size: 8M Bit de VRAM-B1 nfi 000000H 03FFFFH 040000H VRAM-A0 Co 07FFFFH 080000H VRAM-A1 VRAM-B0 0BFFFFH 0C0000H GA 0FFFFFH VRAM-B1 Figure 3.1 Different Capacities of VRAM Address Map SE ST-58-R2 27 VRAM Size Register The VRAM size register indicates the VRAM capacity to be used in the system. It is a read/write 16-bit register and is at the 180006H address. Bits 3 to 0 are exclusively for read only. Because the value of bit15 (VRAMSZ) is cleared to 0 after the power is turned on or reset, it must be reset. VRSIZE 180006H 15 VRAMSZ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 VER3 10 ~ 2 nti VER2 al 9 ~ 1 VER1 8 ~ 0 VER0 VRAM size bit (VRAMSZ), bit 15. Indicates the VRAM capacity used in the system. VRAMSZ 0 1 VRAM Size 4 Mbit 8 Mbit This bit must be set before data is written to VRAM. Version Number Bit (VER3 to VER0), Bits 3 to 0 de nfi Shows the VDP2 version number; the first is 0. Co GA SE 28 3.2 VRAM Bank Partitioning nti VDP2 can access VRAM-A0, VRAM-A1, VRAM-B0, and VRAM-B1 at the same time when both VRAM-A and VRAM-B are divided in half. As a result, more image data can be obtained at once, a higher number of scroll screens can be displayed simulta- al neously, and a screen with multiple colors can be displayed. However, there are limitations when selecting of VRAM read/write access through the CPU during the display. Therefore, don’t partition the VRAM into two areas when accessing (read/ write) through the CPU during the display. Normally, accessing can be efficiently done if divided into two areas. RAM Control Register de RAM control register selects VRAM bank partitions with the objective of using the rotation scroll screen VRAM as well as the color RAM mode. It is a read/write 16-bit register and is at the 18000EH address. Also, because the value is cleared to 0, it must be set after the power is turned on or reset. RAMCTL 18000EH 15 CRKTE 7 14 ~ 6 13 CRMD1 5 nfi 12 CRMD0 4 11 ~ 3 10 ~ 2 9 VRBMD 1 8 VRAMD 0 RDBSB11 RDBSB10 RDBSB01 RDBSB00 RDBSA11 RDBSA10 RDBSA01 RDBSA00 Color RAM Coefficient Table Enable Bit (CRKTE), Bit 15 Co See “6.4 Coefficient Table Control.” Color RAM Mode Bit (CRMD1, CRMD0), Bits 13 and 12 See “3.4 Color RAM Mode.” Set the Color RAM mode to mode 1 when the CRKTE bit is 1. At that time, color data can no longer be stored because the second half of the color RAM (100800H ~ 100FFFH) is used for the coefficient table data. VRAM Mode Bit (VRBMD, VRAMD), Bits 9 and 8 Controls VRAM bank partitions. GA VRAMD VRBMD 18000EH 18000EH Bit 8 Bit 9 For VRAM-A For VRAM-B SE ST-58-R2 29 VRxMD Process 0 Do not partition in 2 banks 1 Partition in 2 banks Note: Enter A or B into bit name for x. nti Rotation Data Bank Select bit: RBG0 DataBank Select Bit (RDBSA00 to RDBSB11), Bits 7 to 0 See “6.2 Rotation Scroll Screen Display Control”. al When the CRKTE bit is 1, do not designate to allow the 4 banks of VRAM to be used as RAM for the coefficient table data. de nfi Co GA SE 30 3.3 Accessing VRAM During Display Interval VRAM Access During Display Interval performed in one cycle: nti VDP2 synchronizes scroll screen data with the TV scan and displays them while reading from VRAM. VRAM access during display repeats the cycle as four or eight access operating units (1 cycle). When the TV screen mode is the Normal mode, 1 al cycle accesses eight times. Also, 1 cycle is accessed four times when in the high- resolution or special monitor mode. Below are the ten types of VRAM accesses (1) Normal scroll screen pattern name data read access. (2) Normal scroll screen character pattern data read access or bit map pattern data read access. (3) NBG0, NBG1 vertical cell scroll table data read access. (4) (5) (6) (7) (8) (9) (10) Read/Write access through the CPU. Does not access. RGB0 pattern name data read access. de RGB0 character pattern data read access or bit map pattern data read access. RGB0 coefficient table data read access. RGB1 pattern name data read access. RGB1 character pattern data read access. VRAM access. nfi The timing during the 1 cycle when the above (1) through (5) are performed must be selected for each bank of VRAM-A0, VRAM-A1, VRAM-B0, and VRAM-B1. This selection is performed by writing the values of 4 bits, called access commands, to the VRAM cycle pattern register. Access Commands correspond to the several types of Co Each VRAM access in the above items (6) through (8) occupies a full one cycle, therefore, for one bank only one type may be selected. This is accomplished by writing the value corresponding to each VRAM access type to the RAM control register rotation data bank select bit. The setting of the bank VRAM cycle pattern register, which select (6) through (8) VRAM access, will become invalid. Each VRAM access in the above items (9) and (10) occupies a full one cycle. (9) is GA fixed in VRAM-B1 and (10) in VRAM-B0. While items (9) and (10) are selected auto- matically with the display of RGB1, the setting of the VRAM-B0 and VRAM-B1 VRAM cycle pattern registers will become invalid. SE ST-58-R2 31 The VRAM cycle pattern register has registers that correspond to the following banks: VRAM-A0, VRAM-A1, VRAM-B0, VRAM-B1. When the VRAM is not di- vided into two partitions, the VRAM-A0 register is used for VRAM-A, and the VRAM-B0 register is used for VRAM-B. Registers for VRAM-A1 and VRAM-B1 are not used. Registers that correspond to the various banks are separated into eight (T0 to T7) access timings. Access is performed in order, beginning from VRAM access, showing the access command selected in the T0 bit. T0 to T7 are in effect when the TV screen is in Normal mode, but only T0 to T3 are in effect for the high-resolution or special monitor mode; T4 to T7 are ignored. Figure 3.2 shows the VRAM cycle ntial pattern register used during 1 cycle. 1 pa rtition= 4 Bit, sel ect for VRA M access T0 T1 T2 T3 T4 T5 T6 T7 de Fo r VRAM-A0 (o r VRAM-A ) For VRAM-A 1 Fo r VRAM-B0 (o r VRAM-B ) nfi For VRAM-B 1 Regi st er ena bl ed ran ge (T 0~T 3) in Hi-R es or Excl usive Mon it or Mod e. Re gi st er en abl ed ran ge (T0~ T7) in Norm al Mod e Co Figure 3.2 VRAM Cycle Pattern Register Be sure to set “do not access” for the remaining access time after selecting the VRAM access required in the display. If the VRAM access address selected in the VRAM cycle pattern register is not the address in the selected bank, access won’t be done and the correct screen will not be displayed. GA Image Data Access The required image data must be read from VRAM for normal scroll screens (NBG0 to NBG3) to be displayed. When the display format is the cell format, the required image data is pattern name data and character pattern data. When in a bit map format, the necessary image data is bit map pattern data . The VRAM access num- ber for obtaining this image data during 1 cycle is decided by the conditions. SE 32 Pattern name data read access during 1 cycle must be set to a maximum of two banks, one being either VRAM-A0 or VRAM-B0, and the other being VRAM-A1 or VRAM-B1. When the VRAM is not divided into two partitions, the VRAM-A0 need to be selected. nti register is used as VRAM-A, and the VRAM-B0 register is used as VRAM-B; there- fore, one or the other must be set. Any access timing may be selected if within the register’s effective range in all TV screen modes. The access number must be the same as the number as determined by conditions, but the related timing does not The pattern name data read access number is shown in Table 3.2. The pattern nameal data read access selection limits are shown in Figure 3.3. Table 3.2 Access numbers of required pattern name table data during 1 cycle Item Reduction setting x1 Number of VRAM 1 accesses required during 1 cycle NBG0~NBG3 x1/2 2 de x1/4 4 Only on e can be sel ect ed Only on e can be T0 T1 nfi T2 T3 T4 T5 T6 T7 For VRA M- A0 (or VRAM- A) For VRAM-A 1 For VRA M- B0 (or VRAM- B) For VRAM-B 1 Co sel ect ed Reg ist er en ab led ra ng e (T0~ T3) in Hi -Res or Excl usi ve Mo ni tor Mo de Reg ist er en ab led ra ng e (T0~ T7) in No rma l Mo de Figure 3.3 Access selection limits of pattern name table data As a rule, the character pattern data read access during 1 cycle can select any timing GA from four banks. However, the timing that can be selected through pattern name data access timing is limited. Only when the pattern name data access of NBG0 and NBG1 are selected in T0 can select various character pattern data read accesses through the timings of any of the four banks be selected with are no limits. The access number must be selected so that it is the same as the number as determined by the conditions. The related timing does not need to be selected. Character pattern data read access numbers are shown in Table 3.3. Character pattern data read access SE selection limits are shown in Table 3.4. ST-58-R2 33 Table 3.3 Character pattern data (bit map pattern data) read access number Item NBG0~NBG3 32,768 16,770,000 Character 16 256 2048 Color Count Reduction setting Number of VRAM accesses required during 1 cycle 1 1 1/2 2 1/4 4 1 2 1/2 4 1 4 1 4 1 8 ntial Table 3.4 Character pattern data read access selection limits Item TV Screen Pattern Name Table Data Access Timing Mode T0 T1 T2 T3 T4 T5 T6 T7 Timing that Normal T0~T2, T0~T3, T0~T3, T0~T3, T0~T3 T1~T3 T2, T3 can select character pattern data access Hi-Res, exclusive monitor T4~T7 T0~T2 T5~T7 T1~T3 T6~T7 T0, T2, T3 T7 de T0, T1, T3 When the reduction setting is one, all of the character pattern data read access must observe selection limits if the character pattern data read access is to be two or - - T3 - - nfi greater. If the reduction setting is 1/2 or 1/4, the required access number when the reduction setting is 1 (one time for 16 colors and two times for 256 colors) must observe selection limits through one time pattern name data read access. Figure 3.4 shows character pattern data read access selection limits when the pattern name data read access is selected in T1 and T3, with 256 colors and 1/2 reduction. T0 T1 T2 T3 CoT4 T5 T6 T7 For VRAM-A0 (o r VRAM-A ) For VRA M- A1 For VRAM-B0 (o r VRAM-B ) For VRA M- B1 GA T1 's Pat ter n Na me Dat a Read Access with re spe ct to se le ct ab le ran ge (T0~ T3, T5~T 7) T3 's Pat ter n Na me Dat a Read Access with re spe ct to se le ct ab le ran ge (T0~ T3, T7) Not e: Ch ar act er Pattern Dat a Rea d Acce ss must be sel ect ed twice in each se le ct ab le ran ge. SE Figure 3.4 Example of character pattern data read access selection 34 Vertical Cell Scroll Table Data Access When using the vertical cell scroll function in NBG0 and NBG1 {Translator’s Note: The original document reads NB1, we believe this is an error.}, vertical cell scroll table data must also be read. nti Vertical cell scroll table data read access must be performed for one surface during 1 al cycle. Vertical cell scroll table data read access for NBG0 must be selected in T0 or T1 timing. NBG1 vertical cell scroll table data read access must be selected within the timing of T0 to T2. Also, access for NBG0 and NBG1 must be by the same bank and NBG0 access must be selected first. When specifying the same vertical cell scroll table data read access against multiple banks, make sure to specify the same access timing. T0 de Figure 3.5 shows access selection limits of vertical cell scroll table data. T1 T2 T3 T4 T5 T6 T7 For VRA M- A0 (or VRAM-A) nfi For VRAM-A 1 For VRA M- B0 (or VRAM-B) For VRAM-B 1 NBG0 ver tical scr ol tabl e acce ss sel ect ab le ran ge (T0 , T1) Co NBG1 ver tical scr ol tabl e acce ss sel ect ab le ran ge (T0 ~T2 ) Not e: For NB G0 and NBG1 access timing , NBG0 access must be first sel ect ed in the sa me bank. Figure 3.5 Access select limits of vertical cell scroll table data GA Read/Write Access by the CPU When performing read/write access to the VRAM by the CPU during the screen display interval, the timing must be set to the VRAM cycle pattern register. VDP2 waits for the selected timing in the CPU read/write access when VRAM access is requested by the CPU, and approves access only in that timing. When read/write access is not requested by the CPU, nothing will be performed for VRAM, even for SE selected timings. Moreover, during read access through the CPU, the wait cycle will enter the CPU until it is able to read. The write access wait cycle will not be entered if the two word write access is at least two times. ST-58-R2 35 VRAM access by the CPU can be selected only in units of access to VRAM-A or VRAM-B, and can not be selected in bank units. nti When selecting VRAM access by the CPU for the VRAM without two partitions, you should select the CPU read/write access command in the VRAM cycle pattern register of the timing performing the access. Selecting an access command that does al not access in place of the CPU read/write access command is the same as before. In the screen display enable register, when the access command (pattern name data read, character pattern data read, or bit map pattern data read) used for a screen not set to be displayed is also set, it becomes the CPU read/write access. See “4.1 Screen Display Control” about the screen display enable register. When selecting an access command for not to access or CPU read/write with respect ten at a high speed. de to every access timing of the VRAM that is not partitioned into two areas, the CPU access will then be always allowed during display period. This allows to use one of the VRAMs as an auxiliary work RAM. In addition, by switching the VRAM used in the image display as a frame buffer, the image can be displayed while being rewrit- Figure 3.6 illustrates the VRAM cycle pattern register selection if CPU read/write nfi access is being performed in T2 and T4 when VRAM-A is not partitioned. T2 CPU Read / Wri te T3 O the r Access Comm an ds No T4 Access T5 O the r Access Comm an ds VRAM Cycle Pattern Regi st er f or VRAM-A Co Figure 3.6 CPU Read/Write Access Selection when VRAM is not Divided into Two Bank When setting the CPU read/write access for the VRAM that is partitioned into two areas, the CPU read/write access command must be set in the VRAM cycle pattern register of both bank 0 and bank 1 of the timing performing access. Further, in the registers of both bank 0 and bank 1 of the timing before the set CPU read/write access command timing, the access command that won’t access must be selected. GA However, when selecting CPU read/write access in linked timing, only the timing before the lead of the linked access timing may be selected. Figure 3.7 illustrates the selection of the VRAM cycle pattern register when perform- ing CPU read/write access linked to T4 and T5 while VRAM-B is divided into two partitions. SE 36 T3 T4 T5 T6 NoA ccess Othe r CPU Rea d/ CPU Rea d/ VRAM Cycle pa ttern Reg ist er Access Wr ite Wri te for VRAM-B0 nti Comm an ds CPU Re ad / Othe r CP U Re ad / Access VRA M Cycl e pa ttern Reg ist er NoA ccess Writ e Wr it e Comm an ds for VRAM-B1 VRAM Cycle Pattern Selection Process al Figure 3.7 CPU Read/Write Access Selection when VRAM is Divided into Two Banks Selection process to the VRAM cycle pattern register is listed below. 1. Decide the TV screen mode. de 2. Decide whether to partition the VRAM into two segments. 3. Decide the number of character colors of the scroll screen being displayed and the reduction setting. Also, decide whether to use the vertical cell scroll function. scroll function is used. nfi 4. Decide the VRAM bank that will store the required image data (patternname data, character pattern data, bit map pattern data) for all scroll screens. Decide the VRAM bank for storing vertical cell scroll table data when the vertical cell 5. Decide whether to read/write access through the CPU. 6. To observe selection limits of various access timings, select access command in Co the VRAM cycle pattern register. GA SE ST-58-R2 37 An example of VRAM cycle pattern register selection is shown in Figure 3.8. Set TV screen in normal mode. Partition both VRAM-A and VRAM-B into two areas. Set the scroll screen as follows: ntial Screen Name Character Colors Reduction Setting Vertical Cell Scroll Function NBG0 256 Colors x1/2 Do not use NBG1 NBG3 256 Colors 256 Colors x1 x1 Banks that store data per each scroll screen: Use - de Screen Name NBG0 NBG1 NBG3 Pattern Name A0 A0,A1 A1 nfi Character Pattern B0,B1 B0,B1 A1,B0 Vertical Cell Scroll Table - A0 - N1CE N0PN N1PN N0PN Co A0: VRAM-A0 A1: VRAM-A1 B0: VRAM-B0 B1: VRAM-B1 Allow CPU read/write access to VRAM-A T0 T1 T2 T3 NA T4 T5 CPU T6 CPU T7 NA For VRAM-A0 (or VRAM-A) N3PN NA N1PN NA NA CPU CPU N3CG For VRAM-A1 GA N0CG N0CG N1CG N1CG N0CG N0CG N1CG N1CG NA NA N0CG N0CG N3CG N0CG N0CG NA For VRAM-B0 (or VRAM-B) For VRAM-B1 N0PN : Pattern name data read for NBG0, N0CG : Character pattern Data Read for NBG N1PN : Pattern name data read for NBG1, N1CG : Character pattern Data Read for NBG N3PN : Pattern name data read for NBG3, N3CG : Character pattern Data Read for NBG N1CE: NBG1 vertical cell scroll table data read, CPU : CPU Read/Write NA : No access SE Figure 3.8 VRAM Cycle Pattern Selection 38 VRAM Cycle Pattern Register The VRAM cycle pattern register controls the VRAM access during the display interval. It is a 16-bit write only register with addresses from 180010H to 18001EH. 12 4 nti Because the value is cleared to 0 after the power is turned on or reset, it must be reset. CYCA0L 180010H 15 7 14 6 13 5 11 3 al 10 2 9 1 8 VCP0A03 VCP0A02 VCP0A01 VCP0A00 VCP1A03 VCP1A02 VCP1A01 VCP1A00 0 VCP2A03 VCP2A02 VCP2A01 VCP2A00 VCP3A03 VCP3A02 VCP3A01 VCP3A00 15 14 13 12 11 10 9 8 CYCA0U VCP4A03 VCP4A02 VCP4A01 VCP4A00 VCP5A03 VCP5A02 VCP5A01 VCP5A00 180012H CYCA1L 180014H 7 6 5 4 de 3 VCP6A03 VCP6A02 VCP6A01 VCP6A00 VCP7A03 VCP7A02 VCP7A01 VCP7A00 15 7 14 6 13 5 12 4 11 2 10 1 9 0 8 VCP0A13 VCP0A12 VCP0A11 VCP0A10 VCP1A13 VCP1A12 VCP1A11 VCP1A10 3 2 1 0 CYCA1U 180016H VCP2A13 VCP2A12 VCP2A11 VCP2A10 VCP3A13 VCP3A12 VCP3A11 VCP3A10 15 14 13 nfi 12 11 10 9 8 VCP4A13 VCP4A12 VCP4A11 VCP4A10 VCP5A13 VCP5A12 VCP5A11 VCP5A10 7 6 5 4 3 2 1 0 VCP6A13 VCP6A12 VCP6A11 VCP6A10 VCP7A13 VCP7A12 VCP7A11 VCP7A10 CYCB0L 180018H 15 7 15 Co14 6 14 13 VCP0B03 VCP0B02 VCP0B01 VCP0B00 VCP1B03 VCP1B02 VCP1B01 VCP1B00 5 12 4 11 3 10 2 9 1 8 0 VCP2B03 VCP2B02 VCP2B01 VCP2B00 VCP3B03 VCP3B02 VCP3B01 VCP3B00 13 12 11 10 9 8 CYCB0U VCP4B03 VCP4B02 VCP4B01 VCP4B00 VCP5B03 VCP5B02 VCP5B01 VCP5B00 18001AH 7 6 5 4 3 2 1 0 VCP6B03 VCP6B02 VCP6B01 VCP6B00 VCP7B03 VCP7B02 VCP7B01 VCP7B00 GA CYCB1L 18001CH 15 7 15 14 6 14 13 VCP0B13 VCP0B12 VCP0B11 VCP0B10 VCP1B13 VCP1B12 VCP1B11 VCP1B10 5 12 4 11 3 10 2 9 1 8 0 VCP2B13 VCP2B12 VCP2B11 VCP2B10 VCP3B13 VCP3B12 VCP3B11 VCP3B10 13 12 11 10 9 8 CYCB1U VCP4B13 VCP4B12 VCP4B11 VCP4B10 VCP5B13 VCP5B12 VCP5B11 VCP5B10 SE 18001EH 7 6 5 4 3 2 1 0 VCP6B13 VCP6B12 VCP6B11 VCP6B10 VCP7B13 VCP7B12 VCP7B11 VCP7B10 ST-58-R2 39 Table 3.5 shows access command that corresponds to the content of the VRAM access during 1 cycle. Table 3.5 Access command Access Command Value VCPnxx3 0 0 0 0 0 VCPnxx2 0 0 0 0 1 VCPnxx1 0 0 1 1 0 VCPnxx0 0 1 0 1 0 VRAM Access nti NBG0 Pattern Name Data Read al NBG1 Pattern Name Data Read NBG2 Pattern Name Data Read NBG3 Pattern Name Data Read NBG0 Character Pattern Data Read 0 1 0 1 NBG1 Character Pattern Data Read 0 1 1 0 NBG2 Character Pattern Data Read 0 1 1 1 NBG3 Character Pattern Data Read 1 0 0 0 Setting not allowed 1 1 1 1 1 1 1 0 0 0 1 1 1 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 de Setting not allowed Setting not allowed Setting not allowed NBG0 Vertical Cell Scroll Table Data Read NBG1 Vertical Cell Scroll Table Data Read CPU Read/Write No Access Note: nfi n: 0 to 7 (corresponds to access timing T0 to T7) xx: A0, A1, B0, B1 (corresponds to VRAM-A0, VRAM-A1, VRAM-B0, VRAM-B1) VRAM cycle pattern (for VRAM-A0) bit: VRAM cycle pattern bit (VCP0A00 to VCP0A03, VCP1A00 to VCP1A03, VCP2A00 to VCP2A03, VCP3A00 to VCP3A03, VCP4A00 to VCP4A03, VCP5A00 to VCP5A03, VCP6A00 to VCP6A03, VCP7A00 to VCP7A03) timing T0 to T7. Co Sets the access command of VRAM access that performs in VRAM-A0 (or VRAM-A) GA SE 40 VCP0A00~VCP0A03 180010H Bit 12~15 VRAM-A0 (or VRAM-A) Timing for T0 VCP1A00~VCP1A03 180010H Bit 8~11 VRAM-A0 (or VRAM-A) Timing for T1 VCP2A00~VCP2A03 180010H Bit 4~7 VRAM-A0 (or VRAM-A) Timing for T2 VCP3A00~VCP3A03 VCP4A00~VCP4A03 VCP5A00~VCP5A03 VCP6A00~VCP6A03 VCP7A00~VCP7A03 180010H 180012H 180012H 180012H 180012H Bit 0~3 Bit 12~15 Bit 8~11 Bit 4~7 Bit 0~3 nti VRAM-A0 (or VRAM-A) Timing for T3 VRAM-A0 (or VRAM-A) Timing for T4 VRAM-A0 (or VRAM-A) Timing for T5 VRAM-A0 (or VRAM-A) Timing for T6 al VRAM-A0 (or VRAM-A) Timing for T7 VRAM cycle pattern (for VRAM-A1) bit: VRAM cycle pattern bit (VCP0A10 to VCP0A13, VCP1A10 to VCP1A13, VCP2A10 to VCP2A13, VCP3A10 to VCP3A13, VCP4A10 to VCP4A13, VCP5A10 to VCP5A13, VCP6A10 to VCP6A13, VCP7A10 to VCP7A13) Sets the access command of the VRAM access that performs in VRAM-A1 timing T0 to T7. VCP0A10~VCP0A13 VCP1A10~VCP1A13 VCP2A10~VCP2A13 VCP3A10~VCP3A13 VCP4A10~VCP4A13 VCP5A10~VCP5A13 VCP6A10~VCP6A13 180014H 180014H 180014H 180014H 180016H 180016H 180016H de Bit 12~15 Bit 8~11 Bit 4~7 Bit 0~3 Bit 12~15 Bit 8~11 Bit 4~7 VRAM-A1 Timing for T0 VRAM-A1 Timing for T1 VRAM-A1 Timing for T2 VRAM-A1 Timing for T3 VRAM-A1 Timing for T4 VRAM-A1 Timing for T5 VRAM-A1 Timing for T6 VCP7A10~VCP7A13 180016H nfi Bit 0~3 VRAM-A1 Timing for T7 When VRAM is not partitioned in two, the value of this register is ignored. VRAM cycle pattern (for VRAM-B0) bit: VRAM cycle pattern bit (VCP0B00 to VCP0B03, VCP1B00 to VCP1B03, VCP2B00 to VCP2B03, VCP3B00 to VCP3B03, VCP4B00 to VCP4B03, timing T0 to T7. Co VCP5B00 to VCP5B03, VCP6B00 to VCP6B03, VCP7B00 to VCP7B03) Sets the access command of VRAM access that performs in VRAM-B0 (or VRAM-B) GA SE ST-58-R2 41 VCP0B00~VCP0B03 180018H Bit 12~15 VRAM-B0 (or VRAM-B) Timing for T0 VCP1B00~VCP1B03 180018H Bit 8~11 VRAM-B0 (or VRAM-B) Timing for T1 VCP2B00~VCP2B03 180018H Bit 4~7 VRAM-B0 (or VRAM-B) Timing for T2 nti VCP3B00~VCP3B03 180018H Bit 0~3 VRAM-B0 (or VRAM-B) Timing for T3 VCP4B00~VCP4B03 18001AH Bit 12~15 VRAM-B0 (or VRAM-B) Timing for T4 VCP5B00~VCP5B03 18001AH Bit 8~11 VRAM-B0 (or VRAM-B) Timing for T5 VCP6B00~VCP6B03 18001AH Bit 4~7 VRAM-B0 (or VRAM-B) Timing for T6 T7. VCP7B00~VCP7B03 18001AH Bit 0~3 al VRAM-B0 (or VRAM-B) Timing for T7 VRAM cycle pattern (for VRAM-B1) bit: VRAM cycle pattern bit (VCP0B10 to VCP0B13, VCP1B10 to VCP1B13, VCP2B10 to VCP2B13, VCP3B10 to VCP3B13, VCP4B10 to VCP4B13, VCP5B10 to VCP5B13, VCP6B10 to VCP6B13, VCP7B10 to VCP7B13). Sets the access command of VRAM access that performs in VRAM-B1 timing T0 to VCP0B10~VCP0B13 VCP1B10~VCP1B13 VCP2B10~VCP2B13 VCP3B10~VCP3B13 VCP4B10~VCP4B13 VCP5B10~VCP5B13 VCP6B10~VCP6B13 18001CH 18001CH 18001CH 18001CH 18001EH 18001EH 18001EH Bit 12~15 Bit 8~11 Bit 4~7 Bit 0~3 Bit 12~15 Bit 8~11 Bit 4~7 de VRAM-B1 Timing for T0 VRAM-B1 Timing for T1 VRAM-B1 Timing for T2 VRAM-B1 Timing for T3 VRAM-B1 Timing for T4 VRAM-B1 Timing for T5 VRAM-B1 Timing for T6 VCP7B10~VCP7B13 18001EH nfi Bit 0~3 VRAM-B1 Timing for T7 When VRAM is not partitioned into two areas, the value of this register is ignored. Co GA SE 42 3.4 Color RAM Mode in color RAM: nti With 32 Kbits (2 Kword) of color RAM, color data that is stored is used for all scroll screens and palette format sprites. The color data selects and stores either RGB-5 bit (15 bit data) or RGB-8 bit (24 bit data). In addition, when dividing it into 16K bits al (1K word) and storing various color data of the same type, the expansion color calculation function can also be used. There are three methods for storing color data (1) Mode 0: RGB in each of 5 bits for a total of 15 bits, 1024 color settings (2) Mode 1: RGB in each of 5 bits for a total of 15 bits, 2048 color settings (3) Mode 2: RGB in each of 8 bits for a total of 24 bits, 1024 color settings de Because color data must be set to RGB-8 bit when it is output, a 0 will be added to the lowest 3 bits if RGB-5 bit color data is stored in the color RAM, . When the special color calculation mode is set to mode 3, the most significant bit of color RAM data becomes the color calculation enable bit. See “12.3 Special Color Calculation Function” about the special color calculation mode. nfi Co GA SE ST-58-R2 43 Figure 3.9 shows the color data configuration of the color RAM. Dat a se t for RG B 5-b it Colo r Da ta Bit 15 CC 14 13 12 11 10 5 Bit Blue Dat a Blue Data O ut put 9 8 7 6 5 Bit G re en Dat a 5 Bit Blue Dat a 5 0 4 3 2 al 1 5 Bit Re d Data 0 nti 0 0 Gree n Da ta Out put 5 Bit Green Da ta 0 0 0 Dat a se t for RG B 8-b it Red Dat a Outpu t 5 Bit Red Data de 0 No te: The MSB CC is ena bl e bi t when spe cia l col or ca lcul at ion mode is mo de 3. 0 0 Co lor Dat a Col or Data Bit 31 CC Bit 15 30 14 29 28 27 13 12 11 10 8 Bit Gre en Dat a 26 25 9 nfi24 8 7 23 22 21 20 19 8 Bit Blue Dat a 6 5 4 3 8 Bit Red Dat a 2 18 17 1 16 0 Co Blue Dat a O ut put Gree n Data Out put Red Dat a Outpu t 8 Bit Blue Dat a 8 Bit Gree n Dat a 8 Bit Red Dat a Not e: The MSB CC is en abl e bi t wh en spe ci al co lo r cal cul ation mo de is mode 3. GA Sha ded bit ar ea s are ign or ed . Figure 3.9 Color data configuration on the color RAM SE 44 Color data written to the color RAM is illustrated in Figure 3.10. nti Bit 0 100000H 1K Word 16 bit X 1024 Colors Same Color Data 100FFFH Bit 1 100000H 16 bit X 1024 Colors 16 bit X 2048 Colors al 1K Word 2K Word 100FFFH Bit 2 100000H de 100FFFH nfi 32 bit X 1024 Colors 2K Word Figure 3.10 Color Data of the Color RAM RAM Control Register Co The RAM control register selects the bank partitions of the VRAM, the purpose of using the rotation scroll screen of VRAM, and the color RAM mode. It is a read/ write 16-bit register and is at the 18000EH address. Also, because the value is cleared to 0, it must be set after the power is turned on or reset. 15 14 13 12 11 10 9 8 GA RAMCTL 18000EH CRKTE 7 ~ 6 CRMD1 5 RDBSB11 RDBSB10 RDBSB01 RDBSB00 RDBSA11 RDBSA10 RDBSA01 RDBSA00 Color RAM Coefficient Table Enable Bit (CRKTE), Bit 15 See “6.4 Coefficient Table Control.” CRMD0 4 ~ 3 ~ 2 VRBMD 1 VRAMD 0 SE ST-58-R2 45 Color RAM mode bit (CRMD1, CRMD0), bits 13 and 12 Selects the color RAM mode. See “3.4 Color RAM mode.” Set the Color RAM mode to mode 1 when the CRKTE bit is 1. At that time, color data can no longer be stored because the second half of the color RAM (100800H ~ 100FFFH) is used for the coefficient table data. CRMD1 0 0 1 1 CRMD0 0 1 0 1 Mode 0 1 2 - Process ntial RGB each 5 bits, 1024 color settings RGB each 5 bits, 2048 color settings RGB each 8 bits, 1024 color settings Setting not allowed Saving color data to the color RAM must be done after thes bits have been set. When mode 0 is set, data written to the first half of the color RAM will be written to the second half at the same time. tion.”) de VRAM mode bit (VRBMD and VRAMD), bits 9 and 8. (See “ 3.2 VRAM Bank Parti- Rotation data bank select bit: Data bank select bit (RDBSA01, RDBSA00, RDBSA11, RDBSA10, RDBSB01, RDBSB00, RDBSB11, RDBSB10) Designates the use objective of the VRAM of the rotation scroll screen. This bit is Screen Display Control.”) nfi only in effect when the rotation scroll screen is displayed. (See “6.2 Rotation Scroll Co GA SE 46 Chapter 4 Scroll Screen nti 4.1 Screen Display Control .............................................................................. 48 Screen Display Enable Register ........................................................... 48 al 4.2 Scroll Screen Structure .............................................................................. 50 Cell Format ........................................................................................... 50 Bit Map Format ..................................................................................... 52 4.3 Cell ............................................................................................................. 53 Character Color Number ...................................................................... 53 Cell Data Configuration ........................................................................ 53 Transparent Dots .................................................................................. 57 de RGB Format Dot Data .......................................................................... 58 4.4 Character Patterns ..................................................................................... 59 Character Size and Cell Arrangement .................................................. 59 4.5 Character Control Register ........................................................................ 60 4.6 Pattern Name Table (Page) ........................................................................ 64 Pattern Name Table Data Configuration ............................................... 64 nfi Pattern Name Data ............................................................................... 69 Character Number ................................................................................ 74 Palette Number..................................................................................... 74 Special Function Bit .............................................................................. 74 Reverse (Flip) Function Bit ................................................................... 75 Pattern Name Control Register ............................................................ 76 Co 4.7 Planes ........................................................................................................ 79 Plane Size ............................................................................................ 79 Plane Size Register .............................................................................. 80 4.8 Maps ........................................................................................................... 82 Map Selection Register ........................................................................ 82 Map Size ............................................................................................... 84 Map Offset Register .............................................................................. 85 Normal Scroll Screen Map Register ..................................................... 87 Rotation Scroll Surface Map Register .................................................. 89 GA 4.9 Bit Maps ..................................................................................................... 93 Bit Map Size ......................................................................................... 93 Bit Map Color Number .......................................................................... 93 Bit Map Pattern ..................................................................................... 95 Bit Map Palatte Number ..................................................................... 111 Special Function Bit ............................................................................ 111 Bit Map Palatte Number Register ....................................................... 112 4.10 Display Area ........................................................................................... 114 SE Display Area ....................................................................................... 114 Screen-Over Process ......................................................................... 115 Display-Over Pattern Name ............................................................... 115 Screen-Over Pattern Name Register ................................................. 116 4.11 Mosaic Process ...................................................................................... 117 Mosaic Control Register ..................................................................... 118 ST-58-R2 47 4.1 Screen Display Control being displayed. nti The scroll screen selects screens not displayed by controlling VRAM access used in the display of each screen, and can also indicate whether to invalidate the dot color code (transparency code) in each screen, which are the transparent dots of the screen Screen Display Enable Register al The screen display enable register controls the screen display and transparency code. With a write-only 16-bit register, its address is 180020H. Because the value of the register is cleared to 0 after power on or reset, the value must be set. BGON 180020H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 R1ON 12 R0TPON 4 R0ON 11 de N3TPON 3 N3ON N2TPON N2ON Transparent display enable bit (N0TPON, N1TPON, N2TPON, N3TPON, R0TPON) 10 2 9 N1TPON 1 N1ON 8 N0TPON 0 N0ON N2TPON N3TPON nfi Designates whether to nullify the transparency code. For more specifics about the transparency code see Transparent Dots in section “4.3 Cell.” N0TPON N1TPON 180020H 180020H 180020H 180020H Bit 8 Bit 9 Bit 10 Bit 11 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 R0TPON xxTPON 0 1 Process 180020H Co Bit 12 For RBG0 Validates transparency code (transparency code dots become transparent) Invalidates transparency code (transparency code dots are displayed according to da values) Note: N0, N1, N2, N3, or R0 is entered into bit name for xx. GA SE 48 Screen display enable bit: On bit (N0ON, N1ON, N2ON, N3ON, R0ON, R1ON) Designates whether to display each scroll screen. N0TPON 180020H Bit 8 For NBG0 (or RBG1) N1TPON N2TPON N3TPON R0TPON xxTPON 0 1 Process 180020H 180020H 180020H 180020H Bit 9 Bit 10 Bit 11 Bit 12 ntial For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 Validates transparency code (transparency code dots become transparent) Invalidates transparency code (transparency code dots are displayed according to da values) Note: N0, N1, N2, N3, R0, or R1 is entered into bit name xx. the screen will not be performed. de When the screen access command (which has a 0 bit) is set in the VRAM cycle pat- tern register, the access command is ignored and the VRAM access for displaying When R0ON is 0, do not set R1ON at 1. When both R0ON and R1ON are 1, the normal scroll screen can no longer be dis- nfi played. At this time, VRAM-B0 is fixed in RAM used for RBG1 character pattern tables; and VRAM-B1 is fixed in RAM used for RBG1 pattern name tables. When a specific screens can no longer be displayed by register settings, the screen bit should be set to 0. For example, when both R0ON and R1ON are 1, set the N0ON, N1ON, N2ON, N3ON bits at 0. See section “6.2 Rotation Scroll Surface Display Co Control” for more about rotation scroll surfaces. GA SE ST-58-R2 49 4.2 Scroll Screen Structure The scroll screen has two screen formats, the cell format and the bit map format. Cell Format nti The cell format scroll screen is composed of picture pattern “cells” that are 8 H dots by 8 V dots; cells are arranged in 1 H X 1 V or 2 H X 2 V to form “character pat- al terns.” A “page” is an arrangement of character patterns in 32 H X 32 V or 64 H X 64 V. A “plane” is an arrangement of pages 1 H X 1 V, 2 H X 1 V, or 2 H X 2 V. A “map” is an arrangement of planes 2 H X 2 V (for normal scroll screens), or 4 H X 4 V (for rotation scroll surface). Figure 4.1 shows the cell format configuration of the scroll screen. Cel 8 H do t X Cha ra ct er Pat ter n 1 H cel l X Pag e Plane de Map 8 V dot 1 V cel l or 2 H cel l X 2 V cel l 32 H X 32 V or 64 H X 64 V ch ar act er pa ttern (64 H X 64 V ce l ) nfi 1 H pa ge X 1 V pa ge or 2 H pa ge X 1 V pa ge 2 H pl an e X 2 V pl an e (n or mal scr ol l scr ee n) or 4 H pl an e Co or 2 H pa ge X 2 V pa ge X 4 V pl an e (r ot at ion scr ol l scr ee n) Figure 4.1 Scroll screen configuration of the cell format Dot color data stored as character pattern tables in VRAM becomes cell data. Color data is composed of 4, 8, 16, or 32-bit character color. Character pattern data is cell GA data arranged in one or four pieces. Page data is character pattern name data (ad- dress of character pattern table) stored as a pattern name table. Page data arranged in one, two, or four pieces is a plane. The map selects the lead address of the pattern name table in the map register and map offset register. Figure 4.2 shows the con- figuration of a cell format of the scroll screen and corresponding data settings. SE 50 Map Register + Ma p Offse t Reg is ter Map To p Addre ss of Pla n e A PN T To p A d dre ss of Plane B PNT Plane A Plane B Plane C Pla ne D To p Address o f Pla ne C PNT To p Addre ss of Plane D PN T PNT : Patte rn N ame Ta ble ntial Pla ne Pa ttern Name Ta ble (V R AM) C P0 Pa t e rn N a me Da ta Pag e 0 Page 1 Page 0 Pag e 2 Page 3 Plane Size R egist e r Pla n e Size Plane A de CP 10 2 3 Pa tter n Na me D at a C P0 Pat te rn N a me D a ta C P1 0 23 Pa t e rn N a me Da ta CP 0 P at ter n N am e D at a C P1 02 3 Pa t e rn N a me Da ta Page 1 Page 2 CP0 Page CP31 nfi C P0 Pat te rn N a me D a ta C P1 02 3 P at ter n N am e D at a CP : Character Pattern Page 3 CP99 2 CP10 23 Patte rn N ame C ontrol Register Pattern Na me D ata Size C haract er Pa ttern Cell 0 Cell 1 Cell 2 Cell 3 Co C haract er Pat tern Ta ble (VRAM ) D ot 0 C olor D ata Dot 63 Co lo r Da ta Dot 0 Color Dat a C ell 0 C haract er C ontrol Register C ell 1 Dot 63 Co lo r Da ta GA C hara ct e r Size Cha ra cter Patte rn 0 Ce l Dot 0 Color Dat a Dot 0 Do t 7 C ell 2 Dot 63 Co lo r Da ta Dot 0 Color Dat a Dot 56 Do t 63 C ell 3 Dot 63 Co lo r Da ta C haracter C ontrol Register Ch ara cter Co lo r Co unt SE Figure 4.2 N ote: Character pattern and pla ne siz e vary depen din g on the re g is ter setting; ma p siz e varie s d epending on the scro l scre en type. T he above f ig u re is an exam ple of the ca se w hen cha ra cter p attern is 2 H cells X 2 V ce l s. Th e plane is 2 H p ages X 2 V p ages and norm al sc rol scre en (2 H planes X 2 V plane s) . Scroll screen configuration of cell format and corresponding data settings. ST-58-R2 51 Bit Map Format The scroll screen of the bit map format is composed of a bit map pattern 512 H (or 1024) dots and 256 V (or 512) dots. When a screen is displayed by the bit map for- mat, the size of the bit map must be set in the register and the set size of the bit map pattern must be stored in VRAM. Figure 4.3 shows the scroll screen configuration of the bit map format. Figure 4.4 shows the relationship of the register and the scroll screen of the bit map format. ntial Bitmap 1 Do t 512 H X 256 V dot s 512 H X 512 V dot s 102 4 H X 25 6 Vdo ts or 1024 H X 51 2 V do ts de Map Offset Re gi st er nfi Figure 4.3 Scroll screen configuration of the bit map format Map Offset Bitmap Shap e Bit ma p Co VRAM Dot 0 Col or Data Cha ra ct er Con trol Reg ist er Cha ra ct er Colo r Coun t GA Cha ra ct er Cont rol Regi st er Bitma p Size SE Figure 4.4 Relationship of bit map format scroll screen and data settings 52 4.3 Cell The cell is a picture pattern 8 H dots by 8 V dots, and is stored in VRAM. The char- Character Color Number nti acter color count (number of colors per one cell) can be selected from among 16, 256, 2048, 32,768, or 16,777,216 colors. The amount of RAM required in the size of each dot color data and in data of one cell changes according to the color count. al There are two color formats for displaying characters: the palette format and the RGB format. The palette format treats display color data as color RAM address data selected by the dot color code within cell data, and palette number within pattern name data. The RGB format treats cell data as display color data. Table 4.1 shows color formats. de the character color count and the number of bits per dot at that time in the various Table 4.1 Character color count and dot data size Color Format Character Color Count 16 colors Bit Count for 1 Dot 4 bits Palette Format RGB Format nfi 256 colors 2048 colors 32,768 colors 16,770,000 colors 8 bits 16 bits (Only use lower 11 bits) 16 bits 32 bits (Only use MSB and lower 24 bits) Note: In color RAM modes 0 and 2, 2048-color becomes 1024-color. Co Cell Data Configuration The data configuration of each cell stored in a character pattern table changes ac- cording to the bit count of one dot. The boundary when stored in VRAM is 20H and has no relationship to the bit count of one dot. Cell data configuration is shown in Table 4.2 and Figure 4.5. Table 4.2 Cell Data Configuration GA Bit Count for 1 Dot Cell Data Boundary 4 bits/dot 32 bytes/cell 20H byte 8 bits/dot 64 bytes/cell 20H byte 16 bits/dot 128 bytes/cell 20H byte 32 bits/dot 256 bytes/cell 20H byte SE ST-58-R2 53 nti (1) 4 bi ts/ dot (32 byt es/ cel l) Cha ra ct er Pat ter n Ta bl e (V RA M) bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00H +02H +1E H Dot 0- 0 Dat a Do t 0-4 Dat a Do t 7-4 Dat a Dot 0- 1 Da ta Dot 0-5 Dat a Dot 7- 5 Da ta Dot 0- 2 Da ta Dot 0- 6 Da ta Do t 7-6 Dat a al Dot 0- 3 Da ta Dot 0- 7 Da ta Dot 7- 7 Da ta Dot 0 Dot 0 1 +00 1 2 +01 3 4 +02 5 de 6 +03 7 2 3 4 5 + 0C +04 +08 +10 +14 +05 +09 + 0D +11 +15 nfi +06 +0A +0E +12 +16 +07 +0B +0F +13 +17 Cel l 6 7 Co + 1C +18 +19 + 1D +1A +1E +1B +1F Not e 1: The up pe r le ft not at ion in the cel l is dot 0- 0; to the rig ht ar e dot 0- 1, do t 0-2 , dot 0- 3, ... Not e 2: Num be rs in the cel ls ar e VRAM addr esses (Hexa de cim al ) of do t (2 do ts) da ta, wit h VRA M ad dr ess of dot 0- 0, 0- 1 dat a as the ref ere nce . GA Figure 4.5 Data configuration of cells by character color count SE 54 nti (2) 8 bi ts/ dot (64 byt es/ cel l) Cha ra ct er Pat ter n Ta bl e (V RA M) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00H +02H +3E H Dot 0- 0 Dat a Dot 0- 2 Da ta Dot 7- 6 Da ta al Dot 0- 1 Dat a Do t 0-3 Dat a Dot 7- 7 Dat a Dot 0 Dot 0 1 1 2 de 3 4 5 +00 +01 +02 +03 +04 +05 +06 +07 +08 +09 +0A +0B +0C +0D +0E +0F 6 7 2 3 4 5 nfi +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +1A +1B +1C +1D +1E +1F +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +2A +2B +2C +2D +2E +2F Cel l Co 6 7 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +3A +3B + 3C + 3D +3E +3F Not e 1: The uppe r lef t no tat ion in the ce l is dot 0- 0; to the rig ht ar e dot 0- 1, do t 0-2 , dot 0- 3, ... Not e 2: Num ber s in the cel ls ar e VRAM ad dr esse s (Hexad eci mal ) of do t da ta, with VRAM ad dr ess of dot 0- 0 dat a as the ref er en ce. GA Figure 4.5 Data configuration of cells by character color count (continued) SE ST-58-R2 55 nti (3) 16 bits/ do t (1 28 byt es/ ce l ) Cha ra ct er Pat ter n Ta bl e (V RA M) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00H +02H +7 EH Dot 0- 0 Dat a Dot 0- 1 Dat a Dot 7- 7 Dat a al Dot 0 Dot 0 1 1 2 3 4 +00 +02 +04 +06 +08 +0A +0C +0E 5 6 de 7 2 3 4 5 nfi +10 +12 +14 +16 +18 +1A + 1C +1E +20 +22 +24 +26 +28 +2A + 2C +2E +30 +32 +34 +36 +38 +3A + 3C +3E +40 +42 +44 +46 +48 +4A + 4C +4E +50 +52 +54 +56 +58 +5A + 5C +5E Cel l 6 7 Co +60 +62 +64 +66 +68 +6A + 6C +6E +70 +72 +74 +76 +78 +7A +7C +7E Not e 1: The upp er lef t no tat io n in the ce ll is dot 0- 0; to the righ t ar e do t 0-1 , dot 0- 2, dot 0- 3, ... Not e 2: Numb er s in the cel ls are VRAM add re sses (Hexa de cim al) of dot dat a, with VRAM ad dr ess of dot 0- 0 da ta as the re fer en ce. GA Figure 4.5 Data configuration of cells by character color count (continued) SE 56 (4) 32 bits/ do t (2 56 byt es/ ce l ) Cha ra ct er Pat ter n Ta bl e (V RA M) BIT 15 +00H +02H +0 4H 14 13 12 11 10 9 8 7 6 5 nti 4 Dot 0- 0 Da ta (M ost si gn if ica nt wor d) Dot 0- 0 Da ta (L ea st si gn ificant wor d) al Dot 0- 1 Da ta (M ost si gn if ica nt wor d) 3 2 1 0 +FCH Dot 7- 7 Da ta (M ost si gn if ica nt wor d) +F EH Dot 7- 7 Da ta (L ea st si gn ificant wor d) Do t 0 Do t 0 1 2 de 3 4 +00 +04 +08 +0C +10 +14 +18 +1C 5 6 7 1 2 3 4 nfi +20 +24 +28 + 2C +30 +34 +38 +3C +40 +44 +48 + 4C +50 +54 +58 +5C +60 +64 +68 + 6C +70 +74 +78 +7C +80 +84 +88 + 8C +90 +94 +98 +9C 5 +A0 +A4 +A8 +AC +B0 +B4 +B8 +BC Cel l Co 6 +C0 + C4 + C8 +CC + D0 +D4 +D8 +D C 7 +E0 +E4 +E8 + EC +F 0 +F 4 +F 8 +F C Not e 1: The uppe r lef t no tat io n in the ce l is dot 0- 0; to the rig ht ar e dot 0- 1, do t 0-2 , dot 0- 3, ... Not e 2: Numb er s in the cel ls ar e VRAM addr esses (Hexadeci mal ) of do t da ta (M SW), with VRAM ad dr ess of dot 0- 0 da ta (MSW) as the ref ere nce . GA Figure 4.5 Data configuration of cells by character color count (continued) Transparent Dots Dot color code, which are transparent dots (transparency code), changes according to the color format. When the color format is the palette format, the transparent dot applies when all bits per one dot is 0; when the RGB format, the transparent dot SE applies when the most significant bit of the dot data is 0. When in the palette format, lead color data of the palette corresponds to the trans- parency code; therefore, it normally cannot be used. If the transparency code is nullified, this color data can be used. Control is done by the screen display enable register. Table 4.3 shows the transparent dot data values. ST-58-R2 57 Table 4.3 Transparent dot data values Color Format Character Color Bit Count for 1 Dot Transparency Code Count 16 colors 4 bits/dot 0H (4 bit) Palette Format RGB Format RGB Format Dot Data 256 colors 2048 colors 32,768 colors 16,770,000 colors 8 bits/dot 16 bits/dot 16 bits/dot 32 bits/dot When the color format is the RGB format, the character color count can be selected nti 00H (8 bit) 000H (lower 11 bits) MSB (bit 15) is 0 al MSB (bit 31) is 0 from two groups: 32,768 colors and 16,770,000 colors. 16,770,000 colors are desig- nated by RGB 8-bit; but 32,768 colors designate the higher 5 bits within RGB 8-bit, and the lower 3 bits are set to 0. The transparency bit designates whether it is a transparent dot. The most significant bit is a transparent dot when 0. In the screen display enable register, when the transparency code is indicated as invalid, the transparent bit is ignored. Figure 4.6 shows the dot data of the RGB format. de Tra nsp ar en t Bit Wh en 32 76 8 Colo rs Bit 15 14 7 13 12 11 Blue Dat a 6 Wh en 16 ,770, 00 0 Col ors 5 4 10 3 9 7 8 6 nfi 7 Gree n Da ta 5 6 4 5 3 4 7 3 2 Re d Da ta 6 5 1 4 0 3 Bit Bit 32 Tr an spa re nt Bit 15 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 14 13 12 Co 11 Gre en Dat a 10 9 Blue Da ta 8 7 7 6 6 5 5 4 4 3 3 Red Dat a 2 2 1 1 0 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Not e: Shade d bi ts are ign or ed GA Figure 4.6 RGB format dot data SE 58 4.4 Character Patterns Character patterns are perfect squares composed of 1 or 4 cells; the size is specified in their respective registers. Character Size and Cell Arrangement ntial When the character pattern is composed of four cells, the data of a cell that is used in the same character pattern must be linked to and stored in a character pattern table. The relationship of cell arrangement by character size (cell number of character pattern) and character pattern table is shown in Figure 4.7. Select ed Cha ra ct er Pattern Addr ess Hea de r Addr ess Cha ra ct er Pat ter n Ta bl e Cel Data 0 de When 1 H cel l X 1 V cel l Ce ll Da ta 0 8 dot nfi Ce ll Da ta 1 Cel l Dat a 2 8 dot When 2 H cel ls X 2 V cel ls Co Cel l Dat a 3 Ce ll Da ta 0 Cel l Dat a 2 Cel l Dat a 1 Cel l Dat a 3 16 do t Cel Data 4 16 do t GA Figure 4.7 Cell Arrangement by Character Size SE ST-58-R2 59 4.5 Character Control Register The character control register selects cell and bit map formats, the number of charac- nti ter (bit map) colors, and the size of the character pattern or bit map. This register is a write only 16-bit register located in addresses 180028H to 18002AH. Because the value of the register is cleared to 0 after the power is turned on or reset, the value must be set. CHCTLA 15 ~ 14 ~ 13 12 11 10 9 N1CHCN1 N1CHCN0 N1BMSZ1 N1BMSZ0 N1BMEN al 8 N1CHSZ 180028H 7 6 5 4 3 2 1 0 ~ N0CHCN2 N0CHCN1 N0CHCN0 N0BMSZ1 N0BMSZ0 N0BMEN N0CHSZ CHCTLB 18002AH 15 ~ 7 ~ 14 6 ~ 13 5 12 R0CHCN2 R0CHCN1 R0CHCN0 4 N3CHCN N3CHSZ ~de 11 3 ~ 10 R0BMSZ 2 ~ 9 R0BMEN 1 N2CHCN Character color number bit (N0CHCN2 to N0CHCN0, N1CHCN1, N1CHCN0, N2CHCN, N3CHCN, 8 R0CHSZ 0 N2CHSZ R0CHCN2 to R0CHCN0) nfi Designates the character color count of each screen, and the bit map color count when displaying by the bit map format. N0CHCN2~N0CHCN0 N1CHCN1,N1CHCN0 N2CHCN 180028H 180028H 18002AH Bit 6~4 Bit 13,12 Bit 1 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 N3CHCN R0CHCN2~R0CHCN0 N0CHCN2 0 0 N0CHCN1 0 0 18002AH 18002AH N0CHCN0 0 1 Co 16 colors Bit 5 Bit 14~12 TV Screen Mode Normal 256 colors Hi-Res 16 colors 256 colors For NBG3 For RBG0 Exclusive Monitor 16 colors 256 colors Color Format Palette Format Palette Format 0 1 0 2048 colors 2048 colors 2048 colors Palette Format 0 1 1 32,786 colors 32,786 colors 32,786 colors RGB Format GA 1 0 0 16,770,000 Setting not Setting not RGB Format colors allowed allowed 1 0 1 Setting not allowed (Please do not set.) 1 1 0 Setting not allowed (Please do not set.) 1 1 1 Setting not allowed (Please do not set.) Note: Cannot be displayed by the exclusive monitor mode when used as RBG1. SE 60 N1CHCN1 N1CHCN0 TV Screen Mode Color Format Normal Hi-Res Exclusive Monitor 0 0 1 1 Note: 0 1 0 1 16,770,000 colors 16 colors 256 colors 2048 colors 32,786 colors 16 colors nti 256 colors 2048 colors 32,786 colors al 16 colors 256 colors 2048 colors 32,786 colors Palette Format Palette Format Palette Format RGB Format When used as EXBG, and when the set values are N1CHCN1 = 1, N1CHCN0 = 1 there are NnCHCN0 TV Screen Mode Color Format Normal Hi-Res Exclusive Monitor 0 16 colors 16 colors 16 colors Palette Format 1 256 colors 256 colors 256 colors Palette Format Note: 2 or 3 is entered in bit name for n. R0CHCN2 0 R0CHCN1 0 R0CHCN0 0 TV Screen Mode Normal 16 colors de Hi-Res 16 colors Exclusive Monitor Color Format Cannot Display Palette Format 0 0 0 1 1 1 0 1 1 0 0 1 1 0 1 0 1 0 nfi 256 colors 2048 colors 256 colors 2048 colors Cannot Display Palette Format Cannot Display Palette Format 32,786 colors 32,786 colors Cannot Display RGB Format 16,770,000 colors Setting not allowed Cannot Display RGB Format Setting not allowed (Please do not set.) Setting not allowed (Please do not set.) 1 1 Co 1 Setting not allowed (Please do not set.) Depending on the color count of NBG0 and NBG1, the scroll screen that cannot be displayed will appear. When NBG0 is set at 2048 or 32,768 colors, NBG2 can no longer be displayed. When NBG0 is set at 16,770,000 colors, NBG1 to NBG3 can no longer be displayed. When NBG1 is set at 2048 or 32,768 colors, NBG3 can no longer be displayed. GA SE ST-58-R2 61 Bit map size bit (N0BMSZ1, N0BMSZ0, N1BMSZ1, N1BMSZ0, R0BMSZ) Designates the bit map size of each screen when display is in a bit map format. N0BMSZ1,N0BMSZ0 180028H Bit 3,2 For NBG0 N1BMSZ1,N1BMSZ0 R0BMSZ NnBMSZ1 0 0 1 1 180028H 18002AH NnBMSZ0 0 1 0 1 Bit 11,10 Bit 10 Bitmap Size nti For NBG1 For RBG0 al 512 H dots X 256 V dots 512 H dots X 512 V dots 1024 H dots X 256 V dots 1024 H dots X 512 V dots Note: 0 or 1 is entered in bit name for n. ROBMSZ Bitmap Size 0 512 H dots X 256 V dots 1 512 H dots X 512 V dots Bit map enable bit (N0BMEN, N1BMEN, R0BMEN) de Designates whether to display the scroll screen in a bit map format. N0BMEN N1BMEN 180028H 180028H Bit 1 Bit 9 For NBG0 For NBG1 R0BMEN xxBMEN 0 1 18002AH Screen Display Format Cell Format Bitmap Format Note: N0, N1, or R0 is entered in bit name for xx. nfi Bit 9 For RBG0 Co GA SE 62 Character size bit (N0CHSZ, N1CHSZ, N2CHSZ, N3CHSZ, R0CHSZ) Designates the character size when the scroll screen is in a cell format. N0CHSZ 180028H Bit 0 For NBG0 (or RBG1) N1CHSZ N2CHSZ N3CHSZ ROCHSZ xxCHSZ 0 1 180028H 18002AH 18002AH 18002AH Character Pattern Size 1 H Cell X 1 V Cell 2 H Cells X 2 V Cells Bit 8 Bit 0 Bit 4 Bit 8 ntial For NBG1 For NBG2 For NBG3 For RBG0 Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. de nfi Co GA SE ST-58-R2 63 4.6 Pattern Name Table (Page) Pattern name table (or page) stores the method of arrangement when the character nti pattern is in a square the size of a 64 X 64 cell in the VRAM. It also arranges pattern name data in table form and stores it in VRAM. Pattern name data selects the lead address of the character pattern stored in VRAM and the control information for al each character pattern. Pattern name data in a pattern name table is in one-word or two-word. When in one-word, auxiliary data of the least significant 10 bits of the pattern name control register is added to make up for insufficient bits. Pattern Name Table Data Configuration The boundary stored in VRAM and VRAM capacity required in a pattern name table tables are shown in Table 4.4 and Figure 4.8. de of 64 X 64 cells (1 page) change depending on the pattern name data size (word count) and character size. The capacity and data configuration of pattern name Table 4.4 Pattern name table capacity and page boundary of one page Pattern Name Data Size 1 Word 2 Words Character Size 1 H Cell X 1 V Cell 2 H Cells X 2 V Cells 1 H Cell X 1 V Cell 2 H Cells X 2 V Cells nfi Contents of 1 Page 8192 Bytes 2048 Bytes 16,384 Bytes 4096 Bytes Boundary During VRAM Storage 2000H 800H 4000H 1000H Co GA SE 64 (1) Pat tern Nam e Dat a Size : 1 wor d Char act er Pat ter n Size : 1 H cel l X 1 V cel l Bit 15 +00 00H +00 02H 14 13 12 11 Pattern Nam e Ta bl e (V RA M) 10 9 8 7 6 5ntial4 Cha ract er Pat ter n 0- 0 Pat ter n Name Dat a Char act er Patter n 0- 1 Pat ter n Na me Dat a 3 2 1 0 +1F FEH Char act er Pattern 63- 63 Patter n Nam e Data Ch ar act er Pattern 0 1 2 de 61 62 63 Char act er Pat ter n 0 1 nfi +000 0 +0002 +000 4 +0080 +0082 +0084 +007A +007C +007E +00FA +00FC +00F E Page 62 63 Co +1F0 0 +1F0 2 +1F0 4 +1F8 0 +1F8 2 +1F8 4 +1F7 A +1F7 C +1F7 E +1F FA +1FFC +1F FE No te 1: The up per -lef t no tat ion in the page is ch ar act er pa ttern 0- 0; to the right ar e char act er pat terns 0-1 , 0-2 , 0-3 , ... No te 2: Num be rs in the pag es are VRAM adr addresses esse s (He xad (Hexadecimal) eci mal ) ofofpa ttern patternna me namedat data a of ch ar act er pa ttern s, with VRAM addr ess of cha ra ct er pat ter n 0-0 pat ter n nam e GA dat a as the ref er en ce. Figure 4.8 Data configuration of pattern name tables SE ST-58-R2 65 (2) Pat tern Nam e Dat a Size : 1 wor d Char act er Pat ter n Size : 2 H cel ls X 2 V cel ls Bit 15 +00 0H +00 2H 14 13 12 11 Pattern Nam e Ta bl e (V RA M) 10 9 8 7 6 5 4 Cha ract er Pat ter n 0- 0 Pat ter n Name Dat a Char act er Pattern 0-1 Pattern Nam e Da ta 3 2 nti 1 al 0 +7FE H Cha ra ct er Pat ter n 31- 31 Pattern Nam e Da ta Cha ract er Pat ter n 0 Cha ra ct er +000 1 +002 2 +004 de 29 +03A 30 +03C 31 +03E Pat ter n 0 1 +040 +042 +044 nfi +07A +07C +07E Pag e 30 31 +780 +7C0 +782 +7C2 Co+784 +7C4 +7BA +7FA +7BC +7FC +7BE +7FE No te 1: The up pe r- lef t no tat io n in the pag e is ch ar act er pa ttern 0- 0; to the righ t ar e cha ra ct er pat ter ns 0-1 , 0-2 , 0-3 , ... No te 2: Num be rs in the pag es are VRAM adr addresses esse s (Hexad eci (Hexadecimal) mal ) ofofpa ttern patternnaname me da ta of ch ar act er pa ttern s, with VRAM ad dr ess of char act er pat tern 0-0 pa tter n na me da ta as the re fere nce . GA Figure 4.8 Data configuration of pattern name tables (continued) SE 66 (3) Pat tern Nam e Dat a Size : 2 wor ds Char act er Pat ter n Size : 1 H cel l X 1 V cel l Bit 15 +000 0H +000 2H 14 13 12 11 10 Pattern Nam e Ta bl e (V RA M) 9 8 7 6 5 nti 4 al 3 2 1 Ch ar act er Pattern 0- 0 Patter n Nam e Data (Most sig ni fica nt word ) Cha ract er Pat ter n 0- 0 Pat ter n Name Dat a (Le ast si gni fican t word ) 0 +000 4H Char act er Pat ter n 0- 1 Pat ter n Name Dat a (Mo st si gni fican t wor d) +3F FCH +3F FEH de Char act er Patter n 63 -6 3 Pat ter n Name Dat a (Most si gni fican t wor d) Char act er Pat ter n 63 -6 3 Pat ter n Name Dat a (Le ast sig ni fican t word ) Ch ar act er Pattern 0 Cha ra ct er 1 1 2 +0000 +0004 +0008 Pat ter n 0 +0002 nfi +0006 +000A +0100 +0104 +0108 +0102 +0106 +010A 61 62 +00F4 +00F8 +00FC +00F6 +00FA +00FE 63 + 01 F 4 + 01 F 8 +01FC + 01 F 6 +01FA +01FE Co 62 63 +3E00 +3E04 +3E0 8 +3E02 +3E06 +3E0A +3F0 0 + 3F 04 +3F0 8 +3F0 2 + 3F 06 +3F0 A +3EF 4 +3EF8 +3EFC +3EF 6 +3EFA +3EFE +3FF4 +3F F8 +3FF C +3FF6 +3FFA +3F FE Pag e No te 1: The up pe r- lef t no tat io n in the pag e is ch ar act er pa ttern 0- 0; to the righ t ar e GA cha ra ct er pat ter ns 0-1 , 0-2 , 0-3 , ... No te 2: Num be rs in the pag es are VRAM adr addresses esse s (Hexad eci (Hexadecimal) mal ) of ofpa ttern patternna me name da ta of ch ar act er pa ttern s, with VRAM ad dr ess of char act er pat tern 0-0 pa tter n na me da ta as the re fere nce . Figure 4.8 Data configuration of pattern name tables (continued) SE ST-58-R2 67 (4) Pat tern Nam e Dat a Size : 2 wor ds Char act er Pat ter n Size : 2 H cel ls X 2 V cel ls Bit 15 +0 00 H +0 02 H 14 13 12 11 Pattern Nam e Ta bl e (V RA M) 10 9 8 7 6 5 4 3 2 Cha ra ct er Pat ter n 0-0 Pat tern Nam e Dat a (Mo st si gn ificant wor d) Char act er Patter n 0- 0 Pat ter n Na me Dat a (Le ast si gni fica nt wo rd ) ntial 1 0 +0 04 H Ch ar act er Pattern 0- 1 Pat ter n Na me Data (Most sig ni fica nt word ) +FFCH +FFEH de Ch ar act er Pattern 31 -3 1 Pat ter n Na me Dat a (Most si gni fican t word ) Char act er Patter n 31 -3 1 Pat ter n Name Dat a (Le ast sig ni fica nt word ) Ch ar act er Pattern 0 Char act er Pat ter n 0 1 +000 +002 +080 +082 1 +004 +006 +084 +086 +008 +00A +088 +08A 2 nfi 29 +074 +076 + 0F 4 + 0F 6 30 +078 +07A +0F8 +0FA 31 +07C +07E +0F C +0FE 30 31 + F0 0 + F0 2 +F8 0 +F8 2 + F0 4 + F0 6 + F8 4 + F8 6 Co + F0 8 +F0 A +F8 8 +F8 A +F7 4 +F7 6 +F F4 +F F6 + F7 8 +F7 A +FF8 +F FA +F 7C +F7 E +F FC +F FE Pag e No te 1: The up pe r- lef t no tat io n in the pag e is ch ar act er pa ttern 0- 0; to the righ t ar e GA cha ra ct er pat ter ns 0-1 , 0-2 , 0-3 , ... No te 2: Num be rs in the pag es are VRAM adr addresses esse s (Hexad eci (Hexadecimal) mal ) of ofpa ttern patternna me name da ta of ch ar act er pa ttern s, with VRAM ad dr ess of char act er pat tern 0-0 pa tter n na me da ta as the re fere nce . Figure 4.8 Data configuration of pattern name tables (continued) SE 68 Pattern Name Data Pattern name data is composed of the following four fields, for a total of 26 bits. • Character number • Palette number • Special function bits • Reverse function bits 15 bits 7 bits 2 bits 2 bits The character number designates the address of the character pattern (VRAM). nti The palette number designates the address of the palette (color RAM) used by the al character. The special function bits designate whether that character will use the special function. The reverse function bits designate whether to use the up-down reverse or left-right reverse functions. de The size of the pattern name data in the pattern name table can select either 1-word or 2-word. Because all required pattern name data cannot be designated when 1 word is selected, it is supplemented by auxiliary data of the least significant 10 bits of the pattern name control register. The composition of pattern name data changes depending on character size, character number color, and the character number data. nfi auxiliary mode. The character number auxiliary mode designates the number of bits per character number when the pattern name table size in the pattern name table is 1-word, and whether that character can use the reverse function. Table 4.5 shows the character number auxiliary mode. Figure 4.9 shows the configuration of 2-word pattern name data, and Figure 4.10 shows the configuration of 1 word pattern name Character Number Co Table 4.5 Character number auxiliary mode Auxiliary Mode 0 1 Process Character number that can be specified in pattern name data is 10 bits. Flip function can be specified in character units. Character number that can be specified in pattern name data is 12 bits. Flip function cannot be used. GA Special Function Bit 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Flip Function Palette Number Vertical PR CC 6 5 4 3 2 1 0 Horizontal Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Character Number . 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 SE Note: Shaded bits are ignored PR: Special Priority Bit CC: Special Color Calculation Bit Figure 4.9 Bit configuration when the pattern name data is 2 word ST-58-R2 69 Table 4.6 shows the bit configuration when the pattern name data is 1 word. Table 4.6 Bit configuration when pattern name data is 1 word. Character Size 1X1 1X1 1X1 1X1 2X2 2X2 Character Color Count 16 16 other than 16 other than 16 16 16 Auxiliary Mode 0 1 0 1 0 1 Character Number 15*1 15*2 15*1 15*2 15*3 15*4 Palette Number 7 7 3 3 7 7 nti Special Function 2 2 2 2 2 2 al Flip Function 2 - 2 - 2 - 2X2 other than 16 0 15*3 3 2 2 2X2 other than 16 1 15*4 3 2 - 2 Words 15 7 2 2 Note: *1 *2 *3 *4 Designates bits 9 to 0 in pattern name data. Designates bits 11 to 0 in pattern name data. Designates bits 11 to 2 in pattern name data. Designates bits 13 to 2 in pattern name data. de nfi Co GA SE 70 (1) Ch ar act er Size : 1 H cel l X 1 V cel l Char act er Col or Coun t: 16 co lor s Char act er Num be r Suppl eme nt Mo de : Mod e 0 Pattern Nam e Data in Pattern Nam e Ta bl e Bit 15 3 14 13 12 11 Palet te Num be r 2 1 Vert ica l 0 10 9 9 Hori zon tal 8 8 7 7 Fli p Fun ct ion Supp le me nt al Dat a in Pat ter n Na me Con trol Reg ist er nti 6 6 al 5 5 4 Cha ra ct er Num ber 4 3 3 2 2 1 1 0 0 Bit 9 8 7 6 5 4 3 2 1 0 Spe ci al Pale tte No. Cha ra ct er Numb er PR: Sp ecia l Pr io ri ty Bit Funct io n CC: Speci al Color Calc ula tion Bit PR CC 6 5 4 14 13 12 11 10 (2) Ch ar act er Size : 1 H cel l X 1 V cel l Char act er Col or Coun t: 16 co lor s de Char act er Num be r Suppl eme nt Mo de : Mod e 1 Pattern Nam e Data in Pattern Nam e Ta bl e Bit 15 Palet te Num be r 3 Bit 9 14 13 12 11 8 2 7 1 nfi 6 0 11 5 10 10 4 9 9 3 8 8 2 7 Cha ra ct er Num ber 7 Not e: Bot h ve rt ica l an d hor izont al flip fun ct ion bi ts are se t to 0. Supp le me nt al Dat a in Pat ter n Na me Con trol Reg ist er 1 6 0 6 5 5 4 4 3 3 2 2 1 1 0 0 Speci al Co Fun ct ion PR CC Pale tte No. 6 5 4 14 Ch ar act er Num be r Not e: Sha de d bit s ar e ig no re d (3) Ch ar act er Size : 1 H cel l X 1 V cel l Char act er Col or Coun t:16 13 Char act er Num be r Suppl eme nt Mo de : Mod e 0 12 PR: Speci al Pri ori ty Bit CC: Sp ecia l Colo r Calcu latio n Bit Pattern Nam e Data in Pattern Nam e Ta bl e Fl ip Funct io n GA Bit 9 Bit 15 14 13 12 11 Palet te Num be r 8 6 5 Ver tical 7 6 4 Not e: Sha de d bit is ign or ed 5 10 4 9 9 Hor izon tal 3 8 8 2 7 7 Sup pl em ent al Da ta in Pat tern Nam e Cont ro l Regi st er 1 6 Cha ra ct er Num ber 0 6 5 5 4 4 3 3 2 2 1 1 0 0 Speci al Pal ette No . Ch ar act er Num be r Fun ct ion PR: Spec ial Prio rit y Bi t SE PR CC 14 Not e: Sha de d bits ar e ign or ed 13 12 Figure 4.10 Configuration when pattern name data is one word 11 10 C C: Speci al Color Calc ula tion Bi t ST-58-R2 71 (4 ) Cha ra ct er Size : 1 H ce l X 1 V ce l Cha ra ct er Colo r Coun t : Exce pt 16 col or s Cha ra ct er Num ber Supp le me nt Mo de : Mod e 1 Pattern Nam e Da ta in Pat tern Name Tab le Bit 15 14 13 12 Pal et te Numb er 6 5 4 11 11 Not e: Bot h ver tica l and hor izo nt al flip fun ct ion bi ts are se t to 0. Shad ed bi t is ig no re d 10 10 9 9 8 8 7 7 6 6 5 Cha ra ct er Numb er 5 4 4 3 3 nti 2 al 2 1 1 0 0 Suppl eme nt al Dat a in Pat t er n Na me Con trol Reg ist er Bit 9 8 7 6 5 4 3 2 1 0 Speci al Pal et te No. Cha ra ct er Num ber PR: Sp ecia l Pr io ri ty Bit Fun ct ion PR CC 14 13 No te: Shad ed bi ts ar e igno re d (5 ) Cha ra ct er Size : 2 H ce l s X 2 V ce l s Cha ra ct er Colo r Coun t : 16 Col or s Cha ra ct er Num ber Supp le me nt Mo de : Mod e 0 12 de CC: Spec ial Colo r Calc ul atio n Bit Pattern Nam e Da ta in Pat tern Name Tab le Bit 15 14 13 12 Pal et te Numb er 3 2 1 0 Vert ica l 11 10 9 11 nfi 8 10 Ho ri zo nt al Supp le me nt al Dat a in Pat ter n Na me Con trol Reg ist er Flip Fun ct ion 7 9 6 5 Cha ra ct er Numb er 8 7 4 6 3 5 2 4 1 3 0 2 Speci al Fun ct ion Bit 9 PR 8 CC 7 6 Co 5 Pal et te No. 6 5 4 4 Cha ra ct er Colo r Coun t : 16 Col or s 3 2 Cha ra ct er Num ber 14 13 (6 ) Cha ra ct er Size : 2 H ce l s X 2 V ce l s Cha ract er Nu mb er Supp lem en t Mod e: Mo de 1 1 0 12 1 0 PR : Speci al Pri orit y Bi t CC: Sp ecia l C ol or Calcu lat ion Bi t Pattern Nam e Da ta in Pat tern Name Tab le GA Bit 15 Bit 9 Pal et te Numb er 3 14 2 8 13 7 1 12 6 0 11 13 12 5 10 4 9 11 10 3 8 Sup pl em ent al Da ta in Pat t er n Name Con tro l Reg ist er 2 7 9 6 Char act er Nu mber 8 Not e: Bot h ve rt ica l an d hor izon tal f li p fun ct ion bi ts ar e set t o 0. 1 0 5 7 4 6 3 5 2 4 1 3 0 2 Spe cia l Pal et te No. Cha ra ct er Num ber PR : Speci al Pri orit y Bi t SE Funct ion PR CC 6 5 4 14 1 0 CC: Sp ecia l C ol or Calcu lat ion Bi t No te: Shad ed bi ts ar e igno re d Figure 4.10 Configuration when pattern name data is one word (continued) 72 (7 ) Cha ra ct er Size : 2 H ce l s X 2 V ce l s Cha ract er Co lor Cou nt : Exce pt 16 col or s Cha ract er Nu mb er Supp lem en t Mod e: Mo de 0 Pattern Nam e Da ta in Pattern Nam e Tabl e Bit 15 14 Palet te Num be r 6 13 5 12 4 11 10 11 10 9 9 8 7 6 nti Flip Funct ion 8 5 7al 4 Cha ra ct er Nu mb er 6 3 5 2 4 1 3 0 2 Ver tical Hor izo nt al Note: Shad ed bi t is ig no re d Suppl eme nt al Dat a in Pat ter n Na me Con trol Reg ist er Bit 9 Speci al Fun ct ion PR CC 8 7 6 5 Pal et t e No. 4 3 Cha ra ct er Nu mb er 14 13 12 1 Not e: Sha ded bit s ar e ig no re d (8 ) Cha ra ct er Size : 2 H ce l s X 2 V ce l s 2 de 1 0 PR: Sp ecia l Pr io ri ty Bit 0 CC: Spec ial Colo r Calc ula tio n Bit Cha ract er Co lor Cou nt : Exce pt 16 col or s Cha ract er Nu mb er Supp lem en t Mod e: Mo de 1 Pattern Nam e Da ta in Pattern Nam e Tabl e Bit 15 14 6 13 Palet t e Numb er 5 12 4 nfi 11 10 9 8 7 6 5 4 Cha ra ct er Nu mb er 3 2 1 0 Co 13 12 11 10 9 8 7 6 5 4 3 2 Not e: Bot h ve rt ica l an d hor izon tal f li p fun ct ion bi ts ar e se t t o 0. Sha de d bit is ign or ed Suppl eme nt al Dat a in Pat ter n Na me Con trol Reg ist er Bit 9 8 7 6 5 4 3 2 1 0 Speci al Pal et t e No. Char act er Num be r PR: Sp ecia l Pr io ri ty Bit Fun ct ion PR CC 14 1 0 CC: Spec ial Colo r Calc ula tio n Bit Not e: Shade d bi ts are ign or ed GA Figure 4.10 Configuration when pattern name data is one word (continued) SE ST-58-R2 73 Character Number The character number is 15-bit data, and designates the address of the character pattern being displayed in that position. The boundary of the character pattern from this character number is always 20H. Moreover, when the VRAM size is 4M bits, the most significant bit of the character number (bit 14) is not used. Palette Number The palette number is 7-bit data, and designates the address of the color palette used in the character pattern being displayed in that position. This data can be used only ntial when the color format is the palette format, not the RGB format. The palette number is added to the dot color code of the character pattern. Because there is a total of 11 bits of dot color data, the bits that are used change depending on the character color number. Figure 4.11 shows the configuration of 11-bit dot color data. Cha ra ct er Colo r Co un t : 16 Col or s 6 5 Pal ette Nu mbe r 4 3 2 1 0 de Dot Col or Cod e 3 2 1 0 Pal ette No . nfi Cha ra ct er Colo r Coun t : 25 6 Colo rs 6 5 4 7 6 Dot Col or Code 5 4 Cha ra ct er Colo r Coun t : 20 48 Col or s 3 2 1 0 10 9 Co8 Do t Colo r Co de 7 6 5 4 Figure 4.11 Dot color data by character color number 3 2 1 0 Special Function Bit GA The special function bit is 2-bit data, and designates whether to use the special function for the character pattern being displayed at that position. The special function bit has a special priority bit that controls the priority number, and a special color calculation bit that controls color operation. See “11.2 Special Priority Func- tion” for more about the special priority bit, and “12.3 Special Color Calculation Function” for more about the special color calculation bit. SE 74 Reverse (Flip) Function Bit The reverse function bit is 2-bit data, and designates whether to use the reverse function for the character pattern being displayed at that position. The reverse shown in Figure 4.12. nti function bit has a top-bottom reverse bit that reverses the top and bottom of a char- acter pattern, and a left-right reverse bit that reverses left and right. The reverse function bit is shown in Table 4.7, and a reverse display of a character pattern in Table 4.7 Reverse Function Bit al Vertical Flip Bit Horizontal Flip Bit Process 0 0 Cannot flip vertically or horizontally 0 1 Horizontal flipping only 1 0 Vertical flipping only 1 1 Ver tical Flip Bit =0 de Can flip both vertically and horizontally Hori z. Flip Hor izon tal Flip Bit =0 Ve rt. Flip nfi Hori z. and Ver t. Fli p Ver tical Flip Bit =0 Hor izo nt al Flip Bit =1 Co Ver tica l Fl ip Bit =1 Hor izon tal Flip Bit =0 Vert ica l Fli p Bit =1 Hori zon tal Fl ip Bit =1 Figure 4.12 Reverse display of character patterns GA SE ST-58-R2 75 Pattern Name Control Register The pattern name control register assigns pattern name data size, character number supplement mode, and pattern name supplement data. This register is a write only 16-bit register located in addresses 180030H to 180038H. Because the value of the register is cleared to 0 after the power is turned on or reset, the value must be set. PNCN0 180030H 15 N0PNB 7 14 N0CNSM 6 13 ~ 5 12 ~ 4 11 ~ 3 nti 10 ~ 2 al 9 N0SPR 1 8 N0SCC 0 N0SPLT6 N0SPLT5 N0SPLT4 N0SCN4 N0SCN3 N0SCN2 N0SCN1 N0SCN0 15 14 13 12 11 10 9 8 PNCN1 N1PNB N1CNSM ~ ~ ~ ~ N1SPR N1SCC 180032H PNCN2 180034H 7 N2PNB 7 6 N1SPLT6 N1SPLT5 N1SPLT4 15 14 N2CNSM 6 5 13 ~ 5 4 N1SCN4 12 ~ 4 de 3 N1SCN3 11 ~ 3 2 N1SCN2 10 ~ 2 1 N1SCN1 9 N2SPR 1 0 N1SCN0 8 N2SCC 0 PNCN3 180036H N2SPLT6 N2SPLT5 N2SPLT4 15 N3PNB 7 14 N3CNSM 6 13 ~ 5 N3SPLT6 N3SPLT5 N3SPLT4 nfi N2SCN4 12 ~ 4 N3SCN4 N2SCN3 11 ~ 3 N3SCN3 N2SCN2 10 ~ 2 N3SCN2 N2SCN1 9 N3SPR 1 N3SCN1 N2SCN0 8 N3SCC 0 N3SCN0 PNCR 180038H 15 R0PNB 7 14 R0CNSM 6 13 ~ 5 R0SPLT6 R0SPLT5 R0SPLT4Co 12 ~ 4 R0SCN4 11 ~ 3 R0SCN3 R0SCN2 Pattern name data size bit (N0PNB, N1PNB, N2PNB, N3PNB, R0PNB) 10 ~ 2 9 R0SPR 1 R0SCN1 8 R0SCC 0 R0SCN0 Designates the pattern name data size when displaying in the cell format. GA N0PNB 180030H Bit 15 For NBG0 (or RBG 1) N1PNB 180032H Bit 15 For NBG1 N2PNB 180034H Bit 15 For NBG2 N3PNB 180036H Bit 15 For NBG3 R0PNB 180038H Bit 15 For RBG0 SE 76 xxPNB Pattern Name Data Size 0 2 Words nti 1 1 Word Note: N0, N1, N3, or R0 is entered in bit name for xx. Character number supplement bit (N0CNSM, N1CNSM, N2CNSM, N3CNSM, R0CNSM) al Designates the character number supplement mode when the pattern name data size in the pattern name table is 1-word. N0CNSM N1CNSM N2CNSM N3CNSM 180030H 180032H 180034H 180036H Bit 14 Bit 14 Bit 14 Bit 14 For NBG0 (or RBG 1) For NBG1 For NBG2 For NBG3 R0CNSM xxCNSM 0 1 180038H Character Number Auxiliary Mode 0 1 de Bit 14 Process For RBG0 Character number in pattern name data is 10 bits. Flip function can be selected in character units. Character number in pattern name data is 12 bits. Flip function cannot be used. (N0SPR, N1SPR, N2SPR, N3SPR, R0SPR) nfi Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. Special priority bit (for pattern name supplement data): Supplementary special priority bit Designates the pattern name supplement data as the special priority bit when the pattern name data size is 1-word. N0SPR N1SPR N2SPR N3SPR R0SPR Co 180030H 180032H 180034H 180036H 180038H Bit 9 Bit 9 Bit 9 Bit 9 Bit 9 See “11.2 Special Color Priority Function” for how this bit is used. For NBG0 (or RBG 1) For NBG1 For NBG2 For NBG3 For RBG0 GA SE ST-58-R2 77 Special color calculation bit (for pattern name supplement data): Supplementary special color calculation bit (N0SCC, N1SCC, N2SCC, N3SCC, R0SCC) The special color calculation bit is designated as pattern name supplement data when the pattern name data size is 1-word. N0SCC N1SCC N2SCC N3SCC R0SCC 180030H 180032H 180034H 180036H 180038H Bit 8 Bit 8 Bit 8 Bit 8 Bit 8 ntiFor NBG0 (or RBG 1) For NBG1 al For NBG2 For NBG3 For RBG0 See “12.2 Special Color Calculation Function” to learn how this bit is used. Supplementary palette number bit (N0SPLT6 to N0SPLT4, N1SPLT6 to N1SPLT4, N2SPLT6 to N2SPLT4, N3SPLT6 to N3SPLT4, R0SPLT6 to R0SPLT4) N0SPLT6~N0SPLT4 de Designates the palette number bit as pattern name supplement data when the pat- tern name data size is 1-word. Three bits are added to the palette number bit of the pattern name data for the supplementary palette number bit. N1SPLT6~N1SPLT4 N2SPLT6~N2SPLT4 180030H 180032H 180034H Bit 7~5 Bit 7~5 Bit 7~5 For NBG0 (or RBG 1) For NBG1 For NBG2 N3SPLT6~N3SPLT4 R0SPLT6~R0SPLT4 180036H 180038H nfi Bit 7~5 Bit 7~5 For NBG3 For RBG0 Supplementary character number bit (N0SCN4 to N0SCN0, N1SCN4 to N1SCN0, N2SCN4 to N2SCN0, N3SCN4 to N3SCN0, R0SCN4 to R0SCN0) Designates the character number bit as the pattern name supplement data when the pattern name data size is 1-word. Five bits are added to the palette number bit of 180036H Co the pattern name data for the supplementary palette number bit. N0SCN4~N0SCN0 N1SCN4~N1SCN0 N2SCN4~N2SCN0 N3SCN4~N3SCN0 R0SCN4~R0SCN0 180030H 180032H 180034H 180038H Bit 4~0 Bit 4~0 Bit 4~0 Bit 4~0 Bit 4~0 For NBG0 (or RBG 1) For NBG1 For NBG2 For NBG3 For RBG0 GA SE 78 4.7 Planes Plane arranges the pattern name table (page) in sizes of 1 x 1, 2 x 1, or 2 x 2. Size is designated in its respective register. Plane Size ntial When the plane consists of more than one pattern name table (page), the pattern name table used by one plane should be linked to VRAM and stored. Figure 4.13 shows the relationship of the pattern name table arranged by plane size (number of plane page) and pattern name table. Select ed Pattern Nam e Tab le Heade r Addr ess Pat ter n Na me Tab le Pag e 0 de Whe n 1 H page X 1 V pa ge Page 0 64 Cel ls Pag e 1 nfi 64 Cel ls Whe n 2 H pa ge s X 1 V pa ge Co Pag e 2 Pag e 0 Pag e 1 64 Ce lls 12 8 Cel ls Pag e 3 Wh en 2 H pag es X 2 V page s Pag e 0 Pag e 1 Pag e 4 GA Pag e 2 12 8 Cel ls Pag e 3 12 8 Cel ls SE Figure 4.13 Arrangement of pattern name table by plane size ST-58-R2 79 Plane Size Register The plane size register controls the plane size and setting of the screen-over process of the rotation scroll surface. This register is a write only 16-bit register located at 7 nti address 18003AH. Because the value of the register is cleared to 0 after the power is turned on or reset, the value must be set. PLSZ 18003AH 15 14 13 12 11 10 9 RBOVR1 RBOVR0 RBPLSZ1 RBPLSZ0 RAOVR1 RAOVR0 RAPLSZ1 RAPLSZ0 6 5 4 3 2 1 8 0 al N3PLSZ1 N3PLSZ0 N2PLSZ1 N2PLSZ0 N1PLSZ1 N1PLSZ0 N0PLSZ1 N0PLSZ0 Plane size bit (N0PLSZ1, N0PLSZ0, N1PLSZ1, N1PLSZ0, N2PLSZ1, N2PLSZ0, N3PLSZ1, N3PLSZ0, RAPLSZ1, RAPLSZ0, RBPLSZ1, RBPLSZ0) Designates the plane size (number of pages) of each scroll screen. N0PLSZ1, N0PLSZ0 N1PLSZ1, N1PLSZ0 N2PLSZ1, N2PLSZ0 N3PLSZ1, N3PLSZ0 RAPLSZ1, RAPLSZ0 18003AH 18003AH 18003AH 18003AH 18003AH Bit 1,0 Bit 3,2 Bit 5,4 Bit 7,6 Bit 9,8 de For NBG0 For NBG1 For NBG2 For NBG3 For Rotation Parameter A RBPLSZ1, RBPLSZ0 xxPLSZ1 0 0 1 1 1 18003AH xxPLSZ0 0 1 0 nfi Bit 13,12 Plane Size 1 H Page X 1 V Page 2 H Pages X 1 V Page For Rotation Parameter B Invalid (Do not set.) 2 H Pages X 2 V Pages Co Note: N0, N1, N2, N3, RA, or RB is entered in bit name for xx. When the reduction display is set up to a factor of 1/4 in NBG0 and NBG1, do not set the plane size of that screen to 2 H pages x 2 V pages. GA SE 80 Screen-over process bit: Over bit (RAOVR1, RAOVR0, RBOVR1, RBOVR0) Designates control (screen-over process) when the display coordinate value exceeds the display area in the rotation scroll surface. RAOVR1, RAOVR0 RBOVR1, RBOVR0 RxOVR1 0 0 RxOVR0 0 1 18003AH 18003AH Bit 11,10 Bit 15,14 Screen Over Process ntial For Rotation Parameter A For Rotation Parameter B Outside the display area, the image set in the display area is repeated Outside the display area, the character pattern specified by screen ove pattern name register is repeated. (Only when the rotation scroll surface is in cell format.) 1 0 Outside the display area, the scroll screen is transparent, 1 1 Set the display area as 0≤X≤512, 0≤Y≤512 regardless of plane size or bitmap size and make that area transparent. Note: A or B is entered in bit name for x. de When the rotation scroll surface is in bit map, the character pattern designated by the screen-over pattern name register must not be set to repeat process. With the rotation scroll surface in bit map, and when the length of the bit map is 256 dots, if the display area is set to 0 ≤ X < 512 and 0 ≤ Y < 512 and all the outer area is set to be nfi transparent, two of the same images will be displayed for each 256 V dots. Co GA SE ST-58-R2 81 4.8 Maps Maps are square patterns consisting of 2 x 2 or 4 x 4 planes. A map of a Normal scroll screen consists of a 2 x 2 plane, and a map of a rotation scroll surface consists of a 4 x 4 plane. The method of arranging the plane is made by selecting the pattern name table lead address in various plane registers. Map Selection Register Maps are organized into four planes (normal scroll screen) or 16 planes (rotation ntial scroll surface). Each screen has for each plane number a 6-bit map register to select the pattern name table lead address for various planes. It also has a map offset register of three bits added to the highest map register. The total 9-bit map selection ship of the map register and map offset register. de register changes the bit used and the register displaying the address value, depend- ing on the pattern name data size and character size. Figure 4.14 shows the relation- Map Offse t Reg ist er Map Reg ist er A 8 7 6 5 5 nfi 4 4 3 2 Ma p Re gi st er B 3 2 1 1 0 0 Map Offse t Regi st er 8 7 6 Co 5 4 Ma p Re gi st er 3 2 1 0 GA Figure 4.14 Map selection register Table 4.8 shows the address values of register and bits that are used for the map selection register by the pattern name data size and character size. SE 82 Table 4.8 Address value of map designated register by setting Plane Size Pattern Name Character Size Bits and Addresses Data Size nti 1 Word 1 H Cell X 1 V Cell (Value of bit 6~0) X 2000H 1 H page X 2 H Cells X 2 V Cells (Value of bit 8~0) X 800H 1 V page 2 Words 1 H Cell X 1 V Cell (Value of bit 5~0) X 4000H 2 H Cells X 2 V Cells (Value of bit 7~0) X 1000H al 1 Word 1 H Cell X 1 V Cell (Value of bit 6~1) X 4000H 2 H pages X 2 H Cells X 2 V Cells (Value of bit 8~1) X 1000H 1 V page 2 Words 1 H Cell X 1 V Cell (Value of bit 5~1) X 8000H 2 H Cells X 2 V Cells (Value of bit 7~1) X 2000H 1 Word 1 H Cell X 1 V Cell (Value of bit 6~2) X 8000H 2 H pages X 2 V Cells X 2 V Cells (Value of bit 8~2) X 2000H 2 V pages 2 Words 1 H Cell X 1 V Cell (Value of bit 5~2) X 10000H 2 H Cells X 2 V Cells (Value of bit 7~2) X 4000H used. de Note: When the VRAM capacity is set at 4M bits, the most significant bit among the bits used is not nfi Co GA SE ST-58-R2 83 Map Size Map size (number of planes in the map) will change depending on if the screen is a plane arrangements of different map sizes. nti normal scroll screen or rotation scroll surface. The normal scroll screen has a map 2 H planes X 2 V planes in each screen. The rotation scroll surface has a map 4 H planes X 4 V planes in both of rotation parameters A and B. Figure 4.15 shows the Normal Scroll Screen al Plane Plane A B Plane C Plane D Rotation Scroll Screen de Plane A Plane Plane B Plane nfi Plane C Plane Plane D Plane E Plane I Plane Co F Plane J Plane G Plane K Plane H Plane L Plane M N O P GA Figure 4.15 Map size SE 84 When NBG0 and NBG1 enable bits (N0ZMQT and N1ZMQT) are set to allow reduc- tion up to a factor of 1/4, the map size of NBG0 and NBG1 become normal. A set screen plane size, that can be reduced up to 1/4 should not be 2 H pages X 2 V When se tting NBG0, ca n nti pages. Figure 4.16 shows the map size by the reduction setting. be red uce d up to 1/4. Plan e A For NB G0 Plan e B Fo r NBG0 Whe n se tting NBG1, ca n al be red uce d up to 1/4. Plane A For NBG1 Plane B For NBG1 Plane C Pla ne D Plan e C Plane D For NBG0 For NBG0 For NB G1 For NBG1 Plan e A For NB G2 Plane C For NBG2 Plan e B Fo r NBG2 Pla ne D For NBG2 de Plane A For NBG3 Plan e C For NB G3 Plane B For NBG3 Plane D For NBG3 nfi Figure 4.16 Plane arrangement of map by reduction settings Map Offset Register Co The map offset register designates the map offset value. This is a write-only 16-bit register, with addresses located at 18003CH to 18003EH. Because the value of the register is cleared to 0 after the power is turned on or reset, the value must be set. 15 14 13 12 11 10 9 8 GA MPOFN ~ N3MP8 N3MP7 N3MP6 ~ N2MP8 N2MP7 N2MP6 18003CH 7 6 5 4 3 2 1 0 ~ N1MP8 N1MP7 N1MP6 ~ N0MP8 N0MP7 N0MP6 15 14 13 12 11 10 9 8 MPOFR ~ ~ ~ ~ ~ ~ ~ ~ 18003EH 7 6 5 4 3 2 1 0 ~ RBMP8 RBMP7 RBMP6 ~ RAMP8 RAMP7 RAMP6 SE ST-58-R2 85 Map offset bit (N0MP8 to N0MP6, N1MP8 to N1MP6, N2MP8 to N2MP6, N3MP8 to N3MP6, RAMP8 to RAMP6, RBMP8 to RBMP6) When the scroll screen display format is the cell format, the map offset value of 3 bits RAMP8~RAMP6 18003CH nti is added to the highest 6 bits of the map register. This designates the bit map pattern boundary when in the bit map format. N0MP8~N0MP6 N1MP8~N1MP6 N2MP8~N2MP6 N3MP8~N3MP6 18003CH 18003CH 18003CH 18003EH Bit 2~0 Bit 6~4 Bit 10~8 Bit 14~12 Bit 2~0 For NBG0 al For NBG1 For NBG2 For NBG3 For Rotation Parameter A RBMP8~RBMP6 18003EH Bit 6~4 For Rotation Parameter B Boundary address of the bit map pattern is shown below: (boundary address value of the bit map pattern) = (map offset register value 3 bit) x 20000H. de nfi Co GA SE 86 Normal Scroll Screen Map Register Normal scroll screen map register designates the lead address of the pattern name table of each plane when the normal scroll screen is displayed in the cell format. MPABN0 ~ nti This register is a write-only 16-bit register, with addresses located at 180040H to 18004EH. Because the value of the register is cleared to 0 after the power is turned on or reset, the value must be set. 15 14 ~ 13 N0MPB5 12 N0MPB4 11 al N0MPB3 10 N0MPB2 9 N0MPB1 8 N0MPB0 180040H 7 6 5 4 3 2 1 0 ~ ~ N0MPA5 N0MPA4 N0MPA3 N0MPA2 N0MPA1 N0MPA0 15 14 13 12 11 10 9 8 MPCDN0 180042H MPABN1 ~ 7 ~ 15 ~ ~ 6 ~ 14 ~ N0MPD5 5 N0MPC5 13 N1MPB5 de N0MPD4 4 N0MPC4 12 N1MPB4 N0MPD3 3 N0MPC3 11 N1MPB3 N0MPD2 2 N0MPC2 10 N1MPB2 N0MPD1 1 N0MPC1 9 N1MPB1 N0MPD0 0 N0MPC0 8 N1MPB0 180044H MPCDN1 180046H 7 ~ 15 ~ 7 6 ~ 14 ~ 6 nfi 5 N1MPA5 13 N1MPD5 5 4 N1MPA4 12 N1MPD4 4 3 N1MPA3 11 N1MPD3 3 2 N1MPA2 10 N1MPD2 2 1 N1MPA1 9 N1MPD1 1 0 N1MPA0 8 N1MPD0 0 MPABN2 180048H ~ 15 ~ 7 ~ Co ~ 14 ~ 6 ~ N1MPC5 13 N2MPB5 5 N2MPA5 N1MPC4 12 N2MPB4 4 N2MPA4 N1MPC3 11 N2MPB3 3 N2MPA3 N1MPC2 10 N2MPB2 2 N2MPA2 N1MPC1 9 N2MPB1 1 N2MPA1 N1MPC0 8 N2MPB0 0 N2MPA0 15 14 13 12 11 10 9 8 MPCDN2 ~ ~ N2MPD5 N2MPD4 N2MPD3 N2MPD2 N2MPD1 N2MPD0 GA 18004AH 7 6 5 4 3 2 1 0 ~ ~ N2MPC5 N2MPC4 N2MPC3 N2MPC2 N2MPC1 N2MPC0 15 14 13 12 11 10 9 8 MPABN3 ~ ~ N3MPB5 N3MPB4 N3MPB3 N3MPB2 N3MPB1 N3MPB0 18004CH 7 6 5 4 3 2 1 0 ~ ~ N3MPA5 N3MPA4 N3MPA3 N3MPA2 N3MPA1 N3MPA0 15 14 13 12 11 10 9 8 SE MPCDN3 18004EH ~ 7 ~ ~ 6 ~ N3MPD5 5 N3MPC5 N3MPD4 4 N3MPC4 N3MPD3 3 N3MPC3 N3MPD2 2 N3MPC2 N3MPD1 1 N3MPC1 N3MPD0 0 N3MPC0 ST-58-R2 87 Map bit (for normal scroll): (N0MPA5 to N0MPA0, N0MPB5 to N0MPB0, N0MPC5 to N0MPC0, N0MPD5 to N0MPD0, N1MPA5 to N1MPA0, N1MPB5 to N1MPB0, N1MPC5 to N1MPC0, N1MPD5 to N1MPD0, N2MPA5 to N2MPA0, N2MPB5 to N2MPB0, N2MPC5 to nti N2MPC0, N2MPD5 to N2MPD0, N3MPA5 to N3MPA0, N3MPB5 to N3MPB0, N3MPC5 to N3MPC0, N3MPD5 to N3MPD0) The lead address for the pattern name table is designated for each plane, when the Normal scroll screen is displayed by the cell format. N0MPA5~N0MPA0 N0MPB5~N0MPB0 N0MPC5~N0MPC0 N0MPD5~N0MPD0 N1MPA5~N1MPA0 N1MPB5~N1MPB0 N1MPC5~N1MPC0 180040H 180040H 180042H 180042H 180044H 180044H 180046H Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 al For NBG0 Plane A For NBG0 Plane B For NBG0 Plane C For NBG0 Plane D For NBG1 Plane A For NBG1 Plane B For NBG1 Plane C N1MPD5~N1MPD0 N2MPA5~N2MPA0 N2MPB5~N2MPB0 N2MPC5~N2MPC0 N2MPD5~N2MPD0 N3MPA5~N3MPA0 N3MPB5~N3MPB0 N3MPC5~N3MPC0 180046H 180048H 180048H 18004AH 18004AH 18004CH 18004CH 18004EH Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 de For NBG1 Plane D For NBG2 Plane A For NBG2 Plane B For NBG2 Plane C For NBG2 Plane D For NBG3 Plane A For NBG3 Plane B For NBG3 Plane C N3MPD5~N3MPD0 18004EH nfiBit 13~8 For NBG3 Plane D Co GA SE 88 Rotation Scroll Surface Map Register The Rotation Scroll Surface Map Register designates the lead address of the pattern name table arranged in each plane by rotation parameters A and B. When a write- MPABRA ~ nti only 16-bit register, with addresses located at 180050H to 18006EH. Because the value of the register is cleared to 0 after the power is turned on or reset, the value must be set. 15 14 ~ 13 RAMPB5 12 RAMPB4 11 RAMPB3 al 10 RAMPB2 9 RAMPB1 8 RAMPB0 180050H 7 6 5 4 3 2 1 0 ~ ~ RAMPA5 RAMPA4 RAMPA3 RAMPA2 RAMPA1 RAMPA0 15 14 13 12 11 10 9 8 MPCDRA 180052H MPEFRA ~ 7 ~ 15 ~ ~ 6 ~ 14 ~ RAMPD5 5 RAMPC5 13 RAMPF5 4 de RAMPD4 RAMPC4 12 RAMPF4 RAMPD3 3 RAMPC3 11 RAMPF3 RAMPD2 2 RAMPC2 10 RAMPF2 RAMPD1 1 RAMPC1 9 RAMPF1 RAMPD0 0 RAMPC0 8 RAMPF0 180054H MPGHRA 180056H 7 ~ 15 ~ 7 6 ~ 14 ~ 6 5 nfi RAMPE5 13 5 RAMPE4 12 4 4 11 3 3 RAMPE3 10 2 RAMPE2 9 1 2 8 RAMPH5 RAMPH4 RAMPH3 RAMPH2 RAMPH1 RAMPH0 0 1 RAMPE1 0 RAMPE0 MPIJRA 180058H ~ 15 ~ 7 ~ Co ~ 14 ~ 6 ~ RAMPG5 RAMPG4 RAMPG3 RAMPG2 RAMPG1 RAMPG0 13 RAMPJ5 5 RAMPI5 12 RAMPJ4 4 RAMPI4 11 RAMPJ3 3 RAMPI3 10 RAMPJ2 2 RAMPI2 9 RAMPJ1 1 RAMPI1 8 RAMPJ0 0 RAMPI0 15 14 13 12 11 10 9 8 MPKLRA ~ ~ RAMPL5 RAMPL4 RAMPL3 RAMPL2 RAMPL1 RAMPL0 GA 18005AH 7 6 5 4 3 2 1 0 ~ ~ RAMPK5 RAMPK4 RAMPK3 RAMPK2 RAMPK1 RAMPK0 15 14 13 12 11 10 9 8 MPMNRA ~ ~ RAMPN5 RAMPN4 RAMPN3 RAMPN2 RAMPN1 RAMPN0 18005CH 7 6 5 4 3 2 1 0 ~ ~ RAMPM5 RAMPM4 RAMPM3 RAMPM2 RAMPM1 RAMPM0 15 14 13 12 11 10 9 8 SE MPOPRA 18005EH ~ 7 ~ ~ 6 ~ RAMPP5 RAMPP4 RAMPP3 RAMPP2 RAMPP1 RAMPP0 5 4 3 2 1 0 RAMPO5 RAMPO4 RAMPO3 RAMPO2 RAMPO1 RAMPO0 ST-58-R2 89 15 14 13 12 11 10 9 8 MPABRB ~ ~ RBMPB5 RBMPB4 RBMPB3 RBMPB2 RBMPB1 RBMPB0 180060H MPCDRB 180062H 7 ~ 15 ~ 7 ~ 6 ~ 14 ~ 6 ~ 5 RBMPA5 13 RBMPD5 5 RBMPC5 4 RBMPA4 12 RBMPD4 4 RBMPC4 3 RBMPA3 11 RBMPD3 3 RBMPC3 2 nti RBMPA2 10 RBMPD2 2 RBMPC2 al 1 RBMPA1 9 RBMPD1 1 RBMPC1 0 RBMPA0 8 RBMPD0 0 RBMPC0 15 14 13 12 11 10 9 8 MPEFRB ~ ~ RBMPF5 RBMPF4 RBMPF3 RBMPF2 RBMPF1 RBMPF0 180064H 7 6 5 4 3 2 1 0 MPGHRB 180066H ~ 15 ~ 7 ~ ~ 14 ~ 6 ~ RBMPE5 13 5 RBMPE4 12 4 11 3 de RBMPE3 10 2 RBMPE2 9 1 RBMPE1 8 RBMPH5 RBMPH4 RBMPH3 RBMPH2 RBMPH1 RBMPH0 0 RBMPG5 RBMPG4 RBMPG3 RBMPG2 RBMPG1 RBMPG0 RBMPE0 MPIJRB 180068H 15 ~ 7 ~ 15 14 ~ 6 ~ 14 13 RBMPJ5 5 RBMPI5 13 nfi 12 RBMPJ4 4 RBMPI4 12 11 RBMPJ3 3 RBMPI3 11 10 RBMPJ2 2 RBMPI2 10 9 RBMPJ1 1 RBMPI1 9 8 RBMPJ0 0 RBMPI0 8 MPKLRB 18006AH MPMNRB 18006CH ~ 7 ~ 15 ~ 7 ~ 6 ~ 14 ~ 6 Co RBMPL5 5 RBMPK5 13 5 RBMPL4 RBMPK4 12 4 4 11 3 RBMPL3 3 RBMPK3 10 2 RBMPL2 2 RBMPK2 9 RBMPL1 RBMPK1 8 1 RBMPN5 RBMPN4 RBMPN3 RBMPN2 RBMPN1 RBMPN0 1 0 RBMPL0 0 RBMPK0 ~ ~ RBMPM5 RBMPM4 RBMPM3 RBMPM2 RBMPM1 RBMPM0 MPOPRB 18006EH GA 15 ~ 7 ~ 14 ~ 6 ~ 13 12 11 10 9 8 RBMPP5 RBMPP4 RBMPP3 RBMPP2 RBMPP1 RBMPP0 5 4 3 2 1 0 RBMPO5 RBMPO4 RBMPO3 RBMPO2 RBMPO1 RBMPO0 SE 90 Map bit (for rotation scroll): Map bit (RAMPA5 to RAMPA0, RAMPB5 to RAMPB0, RAMPC5 to RAMPC0, RAMPD5 to RAMPD0, RAMPE5 to RAMPE0, RAMPF5 to RAMPF0, RAMPG5 to RAMPG0, RAMPH5 to RAMPH0, nti RAMPI5 to RAMPI0, RAMPJ5 to RAMPJ0, RAMPK5 to RAMPK0, RAMPL5 to RAMPL0, RAMPM5 to RAMPM0, RAMPN5 to RAMPN0, RAMPO5 to RAMPO0, RAMPP5 to RAMPP0, RBMPA5 to RBMPA0, RBMPB5 to RBMPB0, RBMPC5 to RBMPC0, RBMPD5 to RBMPD0, RBMPE5 to RBMPE0, RBMPF5 to RBMPF0, RBMPG5 to RBMPG0, RBMPH5 to RBMPH0, RAMPI5 to RBMPI0, RBMPJ5 to RBMPJ0, RBMPK5 to RBMPK0, RBMPL5 to RBMPL0, RBMPM5 to RBMPM0, RBMPN5 to RBMPN0, RBMPO5 to RBMPO0, RBMPP5 to RBMPP0) al When a rotation scroll surface is displayed in the cell format, it designates the lead address of the pattern name table being arranged in each plane . de nfi Co GA SE ST-58-R2 91 RAMPA5~RAMPA0 180050H Bit 5~0 Rotation Parameter A for Screen Plane A RAMPB5~RAMPB0 180050H Bit 13~8 Rotation Parameter A for Screen Plane B RAMPC5~RAMPC0 180052H Bit 5~0 Rotation Parameter A for Screen Plane C RAMPD5~RAMPD0 RAMPE5~RAMPE0 RAMPF5~RAMPF0 RAMPG5~RAMPG0 RAMPH5~RAMPH0 RAMPI5~RAMPI0 RAMPJ5~RAMPJ0 RAMPK5~RAMPK0 180052H 180054H 180054H 180056H 180056H 180058H 180058H 18005AH Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 nti Rotation Parameter A for Screen Plane D Rotation Parameter A for Screen Plane E Rotation Parameter A for Screen Plane F Rotation Parameter A for Screen Plane G al Rotation Parameter A for Screen Plane H Rotation Parameter A for Screen Plane I Rotation Parameter A for Screen Plane J Rotation Parameter A for Screen Plane K RAMPL5~RAMPL0 18005AH Bit 13~8 Rotation Parameter A for Screen Plane L RAMPM5~RAMPM0 18005CH Bit 5~0 Rotation Parameter A for Screen Plane M RAMPN5~RAMPN0 18005CH Bit 13~8 Rotation Parameter A for Screen Plane N RAMPO5~RAMPO0 18005EH Bit 5~0 Rotation Parameter A for Screen Plane O RAMPP5~RAMPP0 RBMPA5~RBMPA0 RBMPB5~RBMPB0 RBMPC5~RBMPC0 RBMPD5~RBMPD0 RBMPE5~RBMPE0 RBMPF5~RBMPF0 18005EH 180060H 180060H 180062H 180062H 180064H 180064H Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 de Rotation Parameter A for Screen Plane P Rotation Parameter B for Screen Plane A Rotation Parameter B for Screen Plane B Rotation Parameter B for Screen Plane C Rotation Parameter B for Screen Plane D Rotation Parameter B for Screen Plane E Rotation Parameter B for Screen Plane F RBMPG5~RBMPG0 RBMPH5~RBMPH0 RBMPI5~RBMPI0 RBMPJ5~RBMPJ0 RBMPK5~RBMPK0 RBMPL5~RBMPL0 RBMPM5~RBMPM0 180066H 180066H 180068H 180068H 18006AH 18006AH 18006CH nfi Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Rotation Parameter B for Screen Plane G Rotation Parameter B for Screen Plane H Rotation Parameter B for Screen Plane I Rotation Parameter B for Screen Plane J Rotation Parameter B for Screen Plane K Rotation Parameter B for Screen Plane L Rotation Parameter B for Screen Plane M RBMPN5~RBMPN0 RBMPO5~RBMPO0 RBMPP5~RBMPP0 Co 18006CH 18006EH 18006EH Bit 13~8 Bit 5~0 Bit 13~8 Rotation Parameter B for Screen Plane N Rotation Parameter B for Screen Plane O Rotation Parameter B for Screen Plane P GA SE 92 4.9 Bit Maps When displaying the bit map format, select from sizes, 512 H dots x 256 V dots, 512 bit map pattern data is stored in the VRAM. nti H dots x 512 V dots, 1024 H dots x 256 V dots, or 1024 H dots X 512 V dots. All dot Bit Map Size al Different types of bit map sizes can be selected by the normal scroll screen and rotation scroll surface. When a high-resolution graphics mode that is greater than 512 H pixels is selected in a Normal scroll screen, if a 512 H dot bit map size is se- lected, the same picture is repeated in the horizontal direction. Furthermore, when the vertical resolution selects the exclusive monitor mode or double-density interlace Table 4.9 Bit map size de mode with more than 256 pixels when a 256 V dot bit map size is selected, the same picture is repeated in the vertical direction. Table 4.9 shows bit map sizes. Screen Bitmap Size Selections 512 H dots X 256 V dots Normal Scroll Screen Rotation Scroll Screen nfi 512 H dots X 512 V dots 1024 H dots X 256 V dots 1024 H dots X 512 V dots 512 H dots X 256 V dots 512 H dots X 512 V dots Bit Map Color Number Co The color format for displaying the bit map format screen combines the bit map palette number and dot color code within bit map pattern data. It has a palette format, which designates the color RAM address, and RGB format that directly designates display RGB data. Table 4.10 shows, in various color formats the bit map surface per color number and the bit number per dot of the bit map pattern data. Furthermore, the bit map color count is set to the character color count bit of the character control register. GA SE ST-58-R2 93 Table 4.10 Bit map color count Color Format Bitmap Color Count Bitmap Pattern Data Bit Count For 1 Dot 16 colors 4 bits Palette RGB Note: 256 colors 2048 colors 32,768 colors 16,770,000 colors 8 bits nti 16 bits (only use lower 11 bits) 16 bits 32 bits (only use MSB and lower 24 bits) 2028 colors become 1024 colors when the color RAM mode is 0 or 2. al de nfi Co GA SE 94 Bit Map Pattern The required VRAM capacity in a 1-bit map pattern surface depends upon the bit nti map size and bit map color count (bit map pattern data size). Changes in the data configuration of each bit map pattern stored in VRAM are identical. The bit map size and bit map color count can be set to exceed the VRAM capacity, but the same al picture would be repeated in the vertically. Table 4.11 shows bit map pattern capaci- ties and Figure 4.17 shows the bit map pattern configuration. The boundary that stores bit map patterns in the VRAM is 20000H, and is indepen- dent of the bit map size and the bit map color count. The designation is performed in the map offset register. 32 bits/dot de Table 4.11 Bit map pattern capacity per 1 surface Bitmap Size 512 H dots X 256 V dots Bitmap Pattern Data Size 4 bits/dot 8 bits/dot 16 bits/dot Bitmap Color Count 16 colors 256 colors 2048 colors, 32,768 colors 16,770,000 colors Size per Surface 64K bytes 128K bytes 256K bytes 512K bytes (512K bits) (1M bits) (2M bits) (4M bits) 512 H dots X 512 V dots 1024 H dots X 256 V dots 4 bits/dot 8 bits/dot 16 bits/dot 32 bits/dot 4 bits/dot 8 bits/dot 16 bits/dot nfi 16 colors 256 colors 2048 colors, 32,768 colors 16,770,000 colors 16 colors 256 colors 2048 colors, 32,768 colors 128K bytes 256K bytes 512K bytes 1024K bytes 128K bytes 256K bytes 512K bytes (1M bits) (2M bits) (4M bits) (8M bits) (1M bits) (2M bits) (4M bits) Co 32 bits/dot 16,770,000 colors 1024K bytes (8M bits) 1024 H dots X 4 bits/dot 16 colors 256K bytes (2M bits) 512 V dots 8 bits/dot 256 colors 512K bytes (4M bits) 16 bits/dot 2048 colors, 32,768 colors 1024K bytes (8M bits) GA SE ST-58-R2 95 (1) Bit ma p Size : 512 H dot s X 25 6 V dot s Bit ma p Colo r Coun t : 4 bits/ dot (1 6 co lor s) Bit 15 +0 00 0H +0 00 2H 14 Dot 0- 0 Dot 0- 4 13 12 11 10 Bit ma p Pat ter n (VRAM) 9 Dot 0- 1 Dot 0- 5 8 7 6 5 Dot 0- 2 Dot 0- 6 4 3 2 nti Dot 0- 3 Dot 0- 7 1 al 0 +FFFEH Dot 25 5- 50 8 Dot 25 5- 50 9 Dot 25 5- 51 0 Dot 25 5- 511 Dot 0 Dot 0 + 00 00 1 2 +0001 3 50 8 de +00FE 50 9 51 0 +00F F 511 1 +0100 +0101 nfi +01FE +01FF Bitmap 25 4 25 5 +F E0 0 +F F0 0 Co +FE 01 +F F0 1 +FE FE +FFF E Note 1: The upp er lef t not ation in the cel l is do t 0-0 ; to the righ t are do t 0-1 , dot 0- 2, do t 0-3 , ... Note 2: Nu mber s in the ce l s are VRAM ad dr esse s (h exa de cim al) of dot (2 dot s) dat a, with VRAM add re ss of do t 0-0 , 0-1 da ta as the +FE FE +FF FF refer en ce. GA Figure 4.17 Bit map pattern configuration SE 96 (2 ) Bitmap Size : 512 H do ts X 25 6 V do ts Bitmap Col or Coun t : 8 bit s/ do t (25 6 co lor s) Bit 15 +00 00 0H +00 00 2H 14 13 12 11 Dot 0- 0 Do t 0-2 10 Bitmap Pattern (VRAM) 9 8 7 6 nti 5 al 4 3 Do t 0-1 Do t 0-3 2 1 0 +1F FFEH Do t 255 -5 10 Do t 255 -5 11 Dot 0 Do t 0 1 2 3 +000 00 +0 000 1 +000 02 +0 000 3 de 508 509 510 511 +0 01F C +00 1F D +001 FE +0 01F F 1 nfi +002 00 +0 020 1 +002 02 +0 020 3 +0 03F C +00 3F D +003 FE +0 03F F Bitmap Co 25 4 +1F C0 0 +1F C01 +1F C0 2 +1F C03 25 5 +1 FE0 0 +1F E01 +1 FE0 2 +1F E03 +1F DF C +1 FD FD +1F DF E +1F DF F +1F FFC +1F FF D +1 FF FE +1F FFF Note 1: The upp er lef t no tation in the cel l is do t 0-0 ; to the righ t are do t 0-1 , dot 0- 2, do t 0-3 , ... Note 2: Nu mb er s in the ce l s are VRAM add re sses (h exadeci mal ) of do t dat a, with VRAM add re ss of do t 0-0 da ta as the re fer ence. GA Figure 4.17 Bit map pattern configuration (continued) SE ST-58-R2 97 (3) Bit ma p Size : 512 H dot s X 25 6 V dot s Bit ma p Colo r Coun t : 16 bi ts/ dot (204 8 col or s, 327 68 col ors) Bit 15 +00 00 0H +00 00 2H 14 13 12 11 10 Bitmap Pat ter n (VRAM) 9 8 Dot 0-1 7 Dot 0- 0 6 5 4 3 2 ntial 1 0 +3F FFEH Do t 255 -5 11 Dot 0 1 2 3 de 50 8 50 9 51 0 511 Do t 0 1 +00 000 +000 02 +00 004 +000 06 +00 400 +004 02 +00 404 +004 06 nfi +0 03F 8 +0 03F A +003 FC +0 03F E +0 07F 8 +0 07F A +007 FC +0 07F E Bitmap Co 25 4 +3F 80 0 +3 F8 02 +3F 80 4 +3 F8 06 25 5 +3 FC 00 +3F C0 2 +3 FC 04 +3F C0 6 +3F BF8 +3F BFA +3 FBF C +3F BF E +3F FF8 +3F FFA +3 FF FC +3F FFE Not e 1: The upp er lef t no tat io n in the ce ll is dot 0- 0; to the righ t ar e do t 0-1 , dot 0- 2, dot 0- 3, ... Not e 2: Numb er s in the cel ls are VRAM add re sses (hexad eci mal ) of do t dat a, with VRAM ad dr ess of dot 0- 0 da ta as the re fer en ce. GA Figure 4.17 Bit map pattern configuration (continued) SE 98 (4) Bit ma p Size : 512 H dot s X 25 6 V dot s Bit ma p Colo r Coun t : 32 bi ts/ do t (16 ,77 0, 000 col ors) Bit 15 +0 00 00 H +0 00 02 H 14 13 12 11 10 Bitmap Pat ter n (V RA M) 9 8 7 6 Dot 0-0 (upp er wor d) nti Dot 0- 0 (l ow er wo rd ) al5 4 3 2 1 0 +0000 4H Dot 0-1 (upp er wor d) +7 FFFCH +7F FFEH de Do t 255 -5 11 (up pe r wo rd ) Dot 25 5- 511 (lo wer wor d) Dot 0 Dot 0 1 1 nfi 2 3 +0 000 0 +00 004 +0 000 8 +0 000 C +0 080 0 +00 804 +0 080 8 +0 080 C 508 +007 F0 509 510 511 +00 7F 4 +007 F8 +007 FC +0 0F F0 +00 FF 4 +0 0F F8 +0 0F FC 254 255 Co +7 F0 00 +7F 004 +7 F8 00 +7F 804 +7 F0 08 +7 F0 0C +7 F8 08 +7 F8 0C +7F 7F 0 +7F 7F 4 +7 F7 F8 +7 F7 FC +7 FF F0 +7F FF 4 +7 FF F8 +7 FF FC Bitma p No te 1: The up per left not ation in the cel l is do t 0-0 ; to the ri gh t are dot 0-1, dot 0- 2, do t 0-3 , ... GA No te 2: Num be rs in the ce lls ar e VRA M ad dr esse s (h exa de cim al) of dot dat a (up pe r wo rd) , with VRAM ad dr ess of dot 0- 0 da ta (uppe r wor d) as the ref ere nce . Figure 4.17 Bit map pattern configuration (continue) SE ST-58-R2 99 (5 ) Bitmap Size : 512 H do ts X 51 2 V do ts Bitmap Col or Coun t : 4 bit s/ do t (16 col ors) Bit 15 +0 00 00H +0 00 02H 14 13 12 11 Do t 0-0 Do t 0-4 10 Bitmap Pattern (VRAM) 9 Do t 0-1 Do t 0-5 8 7 6 5 Do t 0-2 Do t 0-6 4 3 2 nti Do t 0-3 Do t 0-7 al 1 0 +1F FFEH Do t 511- 50 8 Do t 511- 50 9 Do t 511- 51 0 Do t 511- 511 Dot 0 Do t 0 +00000 1 2 +00001 3 de 50 8 50 9 51 0 511 1 +00100 +00101 nfi +000FE +001FE +000FF +001FF Bitmap 510 511 +1F E0 0 +1FF0 0 Co +1F E0 1 +1FF0 1 +1F EFE + 1F FFE + 1F EF F +1FFFF Not e 1: The upp er lef t no tat io n in the ce l is dot 0- 0; to the right ar e do t 0- 1, dot 0-2, dot 0- 3, ... Not e 2: Numb er s in the cel ls ar e VRAM add re sses (hexadeci mal ) of do t (2 dot s) dat a, with VRAM ad dr ess of dot 0- 0, 0- 1 da ta as the ref erence . GA Figure 4.17 Bit map pattern configuration (continued) SE 100 nti (6) Bitmap Size : 512 H dots X 512 V dots Bitmap Color Count : 8 bits/dot (256 colors) Bitmap Pattern (VRAM) +00000H +00002H +3FFFEH Bit 15 14 13 12 11 Dot 0-0 Dot 0-2 Dot 511-510 10 9 8 7 6 5 al 4 3 Dot 0-1 Dot 0-3 Dot 511-511 2 1 0 Dot 0 Dot 0 1 2 +00000 +00001 +00002 +00003 3 de 508 509 510 +001FC +001FD +001FE +001FF 511 1 nfi +00200 +00201 +00202 +00203 +003FC +003FD +003FE +003FF Bitmap 510 511 Co +3FC00 +3FC01 +3FC02 +3FC03 +3FE00 +3FE01 +3FE02 +3FE03 +3FDFC +3FDFD +3FDFE +3FDFF +3FFFC +3FFFD +3FFFE +3FFFF Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA Figure 4.17 Bit map pattern configuration (continued) SE ST-58-R2 101 (7) Bitmap Size : 512 H dots X 512 V dots Bitmap Color Count : 16 bits/dot (2048 colors, 32768 colors) +00000H +00002H Bit 15 14 13 12 11 Bitmap Pattern (VRAM) 10 9 8 7 Dot 0-0 Dot 0-1 6 5 4 3 2 nti 1 al 0 +7FFFEH Dot 511-511 Dot 0 Dot 0 1 2 +00000 +00002 +00004 +00006 3 de 508 509 510 +003F8 +003FA +003FC +003FE 511 1 +00400 +00402 +00404 +00406 nfi +007F8 +007FA +007FC +007FE Bitmap 510 511 Co +7F800 +7F802 +7F804 +7F806 +7FC00 +7FC02 +7FC04 +7FC06 +7FBF8 +7FBFA +7FBFC +7FBFE +7FFF8 +7FFFA +7FFFC +7FFFE Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA Figure 4.17 Bit map pattern configuration (continued) SE 102 (8) Bitmap Size : 512 H dots X 512 V dots Bitmap Color Count : 32 bits/dot (16,770,000 colors) Bit 15 +00000H +00002H 14 13 12 11 Bitmap Pattern (VRAM) 10 9 8 7 6 Dot 0-0 (upper word) Dot 0-0 (lower word) ntial 5 4 3 2 1 0 +00004H Dot 0-1 (upper word) +FFFFCH +FFFFEH de Dot 511-511 (upper word) Dot 511-511 (lower word) Dot 0 Dot 0 1 1 nfi 2 3 +00000 +00004 +00008 +0000C +00800 +00804 +00808 +0080C 508 509 510 +007F0 +007F4 +007F8 +007FC +00FF0 +00FF4 +00FF8 +00FFC 511 510 511 Co +FF000 +FF004 +FF008 +FF00C +FF800 +FF804 +FF808 +FF80C +FF7F0 +FF7F4 +FF7F8 +FF7FC +FFFF0 +FFFF4 +FFFF8 +FFFFC Bitmap Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot GA data (upper word), with VRAM address of dot 0-0 data (upper word) as the reference. Figure 4.17 Bit map pattern configuration (continued) SE ST-58-R2 103 (9) Bitmap Size : 1024 H dots X 256 V dots Bitmap Color Count : 4 bits/dot (16 colors) Bit 15 +00000H +00002H 14 Dot 0-0 Dot 0-4 13 12 11 10 Bitmap Pattern (VRAM) Dot 0-1 Dot 0-5 9 8 7 6 5 Dot 0-2 Dot 0-6 4 3 2ntial Dot 0-3 Dot 0-7 1 0 +1FFFEH Dot 255-1020 Dot 255-1021 Dot 255-1022 Dot 255-1023 Dot 0 Dot 0 +00000 1 2 +00001 3 de 1020 +001FE 1021 1022 +001FF 1023 1 +00200 +00201 nfi +003FE +003FF Bitmap 254 255 +1FC00 +1FE00 Co +1FC01 +1FE01 +1FDFE +1FFFE +1FDFF +1FFFF Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot (2 dots) data, with VRAM address of dot 0-0, 0-1 data as the reference. GA Figure 4.17 Bit map pattern configuration (continued) SE 104 (10) Bitmap Size : 1024 H dots X 256 V dots Bitmap Color Count : 8 bits/dot (256 colors) +00000H +00002H Bit 15 14 13 12 Dot 0-0 Dot 0-2 11 Bitmap Pattern (VRAM) 10 9 8 7 6 nti 5 al 4 Dot 0-1 Dot 0-3 3 2 1 0 +3FFFEH Dot 255-1022 Dot 255-1023 Dot 0 Dot 0 1 2 +00000 +00001 +00002 +00003 3 de 1020 1021 1022 +003FC +003FD +003FE +003FF 1023 1 nfi +00400 +00401 +00402 +00403 +007FC +007FD +007FE +007FF Bitmap 254 255 Co +3F800 +3F801 +3F802 +3F803 +3FC00 +3FC01 +3FC02 +3FC03 +3FBFC +3FBFD +3FBFE +3FBFF +3FFFC +3FFFD +3FFFE +3FFFF Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA Figure 4.17 Bit map pattern configuration (continued) SE ST-58-R2 105 nti (11) Bitmap Size : 1024 H dots X 256 V dots Bitmap Color Count : 16 bits/dot (2048 colors, 32768 colors) Bitmap Pattern (VRAM) al Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00000H Dot 0-0 +00002H Dot 0-1 +7FFFEH Dot 255-1023 Dot 0 Dot 0 1 2 +00000 +00002 +00004 +00006 3 1020 de 1021 1022 +007F8 +007FA +007FC +007FE 1023 1 +00800 +00802 +00804 +00806 nfi +00FF8 +00FFA +00FFC +00FFE Bitmap 254 255 Co +7F000 +7F002 +7F004 +7F006 +7F800 +7F802 +7F804 +7F806 +7F7F8 +7F7FA +7F7FC +7F7FE +7FFF8 +7FFFA +7FFFC +7FFFE Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA Figure 4.17 Bit map pattern configuration (continued) SE 106 (12) Bitmap Size : 1024 H dots X 256 V dots Bitmap Color Count : 32 bits/dot (16,770,000 colors) Bit 15 +00000H +00002H 14 13 12 11 Bitmap Pattern (VRAM) 10 9 8 7 6 Dot 0-0 (upper word) Dot 0-0 (lower word) nti 5 al 4 3 2 1 0 +00004H Dot 0-1 (upper word) +FFFFCH +FFFFEH de Dot 255-1023 (upper word) Dot 255-1023 (lower word) Dot 0 Dot 0 1 1 2 nfi 3 +00000 +00004 +00008 +0000C +01000 +01004 +01008 +0100C 1020 1021 1022 +00FF0 +00FF4 +00FF8 +00FFC +01FF0 +01FF4 +01FF8 +01FFC 1023 254 255 Co +FE000 +FE004 +FE008 +FE00C +FF000 +FF004 +FF008 +FF00C +FEFF0 +FEFF4 +FEFF8 +FEFFC +FFFF0 +FFFF4 +FFFF8 +FFFFC Bitmap Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot GA data (upper word), with VRAM address of dot 0-0 data (upper word) as the reference. Figure 4.17 Bit map pattern configuration (continued) SE ST-58-R2 107 (13) Bitmap Size : 1024 H dots X 512 V dots Bitmap Color Count : 4 bits/dot (16 colors) +00000H +00002H Bit 15 14 Dot 0-0 Dot 0-4 13 12 11 10 Bitmap Pattern (VRAM) Dot 0-1 Dot 0-5 9 8 7 6 5 Dot 0-2 Dot 0-6 4 3 2 nti Dot 0-3 Dot 0-7 1 al 0 +3FFFEH Dot 511-1020 Dot 511-1021 Dot 511-1022 Dot 511-1023 Dot 0 Dot 0 +00000 1 2 +00001 3 1020 de +001FE 1021 1022 +001FF 1023 1 +00200 +00201 nfi +003FE +003FF Bitmap 510 511 +3FC00 +3FE00 +3FC01 Co +3FE01 +3FDFE +3FFFE +3FDFF +3FFFF Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot (2 dots) data, with VRAM address of dot 0-0, 0-1 data as the reference. GA Figure 4.17 Bit map pattern configuration (continued) SE 108 nti (14) Bitmap Size : 1024 H dots X 512 V dots Bitmap Color Count : 8 bits/dot (256 colors) Bitmap Pattern (VRAM) al Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00000H Dot 0-0 Dot 0-1 +00002H Dot 0-2 Dot 0-3 +7FFFEH Dot 511-1022 Dot 511-1023 Dot 0 Dot 0 1 2 +00000 +00001 +00002 +00003 3 de 1020 1021 1022 +003FC +003FD +003FE +003FF 1023 1 nfi +00400 +00401 +00402 +00403 +007FC +007FD +007FE +007FF Bitmap 510 511 Co +7F800 +7F801 +7F802 +7F803 +7FC00 +7FC01 +7FC02 +7FC03 +7FBFC +7FBFD +7FBFE +7FBFF +7FFFC +7FFFD +7FFFE +7FFFF Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA Figure 4.17 Bit map pattern configuration (continued) SE ST-58-R2 109 nti (15) Bitmap Size : 1024 H dots X 512 V dots Bitmap Color Count : 16 bits/dot (2048 colors, 32768 colors) Bitmap Pattern (VRAM) al Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00000H Dot 0-0 +00002H Dot 0-1 +FFFFEH Dot 511-1023 Dot 0 Dot 0 1 2 +00000 +00002 +00004 +00006 3 de 1020 1021 1022 +007F8 +007FA +007FC +007FE 1023 1 +00800 +00802 +00804 +00806 nfi +00FF8 +00FFA +00FFC +00FFE Bitmap 510 511 Co +FF000 +FF002 +FF004 +FF006 +FF800 +FF802 +FF804 +FF806 +FF7F8 +FF7FA +FF7FC +FF7FE +FFFF8 +FFFFA +FFFFC +FFFFE Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA Figure 4.17 Bit map pattern configuration (continued) SE 110 Bit Map Palette Number The bit map palette number designates the lead address of the palette used in the bit map pattern. With the 3-bit data designated by the bit map palette number register, dot color data by bit map number colors. nti the bit map palette number can only be used when the color format is in the palette format. It cannot be used when in the RGB format. Because the palette number is added to the dot color code of the bit map pattern to make an 11 bit dot color code, the al bit count that is used by the color count on each surface changes. Figure 4.18 shows Bitmap Color Count : 16 colors Palette Number Dot Color Code 6 5 4 3 2 1 0 3 2 1 0 Palette No. Fixed at 0 de Bitmap Palette Number Register Setting Bitmap Color Count : 256 colors Dot Color Code 6 5 4 nfi 7 6 5 4 3 Bitmap Palette Number Register Setting Bitmap Color Count : 2048 colors Dot Color Code 2 1 0 Co 10 9 8 7 6 5 4 3 2 Figure 4.18 Dot color data by bit map color numbers 1 0 Special Function Bit The special function bit designates whether to use the special function for bit map GA patterns. The special function bit has a special priority bit that controls the priority number and the special color calculation bit that controls color calculation. For more information on the special priority bit see “11.2 Special Priority Function.” For more information on the color calculation bit see “12.2 Special Color Calculation Function.” SE ST-58-R2 111 Bit Map Palette Number Register Bit map palette number register selects the palette number when the scroll screen is displayed by the bit map format and special function bit. This register is a write- only 16-bit register located in addresses 18002CH to 18002EH. Because the value is cleared to 0 after the power is turned on or reset, make sure the value is set. BMPNA 18002CH 15 ~ 7 ~ 14 ~ 6 ~ 13 N1BMPR 5 N0BMPR 12 N1BMCC 4 N0BMCC 11 ~ 3 ~ 10nti N1BMP6 2 N0BMP6 al 9 N1BMP5 1 N0BMP5 8 N1BMP4 0 N0BMP4 15 14 13 12 11 10 9 8 BMPNB ~ ~ ~ ~ ~ ~ ~ ~ 18002EH Special priority bit (for bit map): Bit map special priority bit (N0BMPR, N1BMPR, R0BMPR) Designates the special priority bit when the scroll screen is displayed by the bit map format. 7 ~ 6 ~ 5 R0BMPR 4 R0BMCC de 3 ~ 2 R0BMP6 1 R0BMP5 0 R0BMP4 N0BMPR N1BMPR R0BMPR 18002CH 18002CH 18002EH nfiBit 5 Bit 13 Bit 5 See section “11.2 Special Priority Function” on how to use this bit. For NBG0 For NBG1 For RBG0 Special color calculation bit (for bit map): Bit map special color calculation bit (N0BMCC, N1BMCC, R0BMCC) Co Designates the special color calculation bit when the scroll screen is displayed by the bit map format. N0BMCC N1BMCC R0BMCC 18002CH 18002CH 18002EH Bit 4 Bit 12 Bit 4 For NBG0 For NBG1 For RBG0 See section “12.2 Special Color Calculation Function” on how to use this bit. GA SE 112 Palette number bit (for bit map): Bit map palette number bit (N0BMP2 to N0BMP0, N1BMP2 to N1BMP0, R0BMP2 to R0BMP0) Designates the highest three bits of the palette number when the scroll screen is displayed in the bit map format. N0BMP6~N0BMP4 N1BMP6~N1BMP4 R0BMP6~R0BMP4 18002CH 18002CH 18002EH When the bit map color count is 16 colors, a “0” is attached to the lowest four bits and used as the 7-bit palette number. Bit 2~0 Bit 10~8 Bit 2~0 ntial For NBG0 For NBG1 For RBG0 de nfi Co GA SE ST-58-R2 113 4.10 Display Area The display area of the scroll screen changes depending on the register setting. The surface. nti display area image is repeated and displayed when display coordinate values ex- ceed the display area in the Normal scroll screen. Control is executed by the register setting when display coordinate values exceed the display area in the rotation scroll Display Area al The display area changes according to the plane size when scroll screen display format is the cell format, and according to the bit map size when in the bit map format. NBG0 and NBG1 also change by setting the reduction display up to 1/4. Tables 4.12 and 4.13 show the display areas. Table 4.12 Normal scroll screen display area Display Format Reduction Setting Plane Size 1 H page X 1 V page de Bitmap Size - Display Area 0≤X<1024, 0≤Y<1024 Cell format No reduction~ 1/2 2 H pages X reduction Up to 1/4 reduction 1 V page 2 H pages X 2 V pages 1 H page X 1 V page 2 H pages X nfi- - - - 0≤X<2048, 0≤Y<1024 0≤X<2048, 0≤Y<2048 0≤X<1024, 0≤Y<2048 0≤X<2048, 0≤Y<2048 Bitmap Format - Co 1 V page - - - - 512 H dots X 256 V dots 512 H dots X 512 V dots 1024 H dots X 256 V dots 1024 H dots X 512 V dots 0≤X<512, 0≤Y<256 0≤X<512, 0≤Y<512 0≤X<1024, 0≤Y<256 0≤X<1024, 0≤Y<512 Table 4.13 Rotation Scroll Surface display area Display Format Cell format Bitmap Format GA - Plane Size 1 H page X 1 V page 2 H pages X 1 V page 2 H pages X 2 V pages Bitmap Size - - - 512 H dots X Display Area 0≤X<2048, 0≤Y<2048 0≤X<4096, 0≤Y<2048 0≤X<4096, 0≤Y<4096 0≤X<512, 0≤Y<256 256 V dots - 512 H dots X 0≤X<512, 0≤Y<512 SE 512 V dots 114 Screen-Over Process While the rotation scroll surface is displayed, and if the calculated results of display the scroll screen by rotation parameter B. nti coordinate values of an display area have been exceeded, select one of the four below and set it to the register. The setting of the screen-over process is not performed for RBG0 and RBG1, but is performed for the scroll screen by rotation parameter A and 1. 2. al The outside of the display area repeats the image set in the display area. The outside of the display area repeats the character pattern designated by the screen-over pattern name register (only when the rotation scroll surface is in the cell format). 3. The outside of the display area is transparent. 4. With no relationship to the plane size and bit map size, the display area is at transparent. de 0 ≤ X < 512 and 0 ≤ Y < 512. The outside of the display area is all made to be Display-Over Pattern Name When the designated character pattern is made to be repeated, pattern name data nfi selects the screen-over control setting in a16-bit screen-over pattern name register. The screen-over pattern name data selected in the register is handled the same as when the data size of the scroll surface pattern name table is 1-word; it uses supple- mental data in the lowest 10 bits of the pattern name control register, supplements insufficient bits, and does screen-over pattern name data of a total 26 bits. The bit the character size. Co configuration of the screen-over pattern name register is the same as when the pattern name data size is 1-word, as in “Pattern Name Table” of section 4.6; and changes depending on character size, character color number, and the character number supplement mode. The size of the repeated character pattern follows the setting of 16-bit screen over pattern name data designates for the scroll screen by rotation pa- rameter A and scroll screen by rotation parameter B, but you should be careful when designating for RBG0 and RBG1 by 10-bit supplement data designated by the pattern GA name control register. Besides, screen-over pattern name data cannot be used when the rotation scroll screen is displayed in the bit map format. SE ST-58-R2 115 Screen-Over Pattern Name Register In the screen-over process of the rotation scroll surface, the screen-over pattern name nti register selects pattern name data when the repetition of the character pattern is set. This register is a write-only 16-bit register and is in addresses 1800B8H to 1800BAH. Because the value is cleared to 0 after the power is turned on or reset, be sure to set al the value. 15 14 13 12 11 10 9 8 OVPNRA RAOPN15 RAOPN14 RAOPN13 RAOPN12 RAOPN11 RAOPN10 RAOPN9 RAOPN8 1800B8H 7 6 5 4 3 2 1 0 RAOPN7 RAOPN6 RAOPN5 RAOPN4 RAOPN3 RAOPN2 RAOPN1 RAOPN0 15 14 13 12 11 10 9 8 OVPNRB 1800BAH RBOPN15 RBOPN14 RBOPN13 RBOPN12 RBOPN11 RBOPN10 RBOPN9 7 6 5 4 3 2 de RBOPN7 RBOPN6 RBOPN5 RBOPN4 RBOPN3 RBOPN2 RBOPN1 1 Over pattern name bit (RAOPN15 to RAOPN0, RBOPN15 to RBOPN0) RBOPN8 0 RBOPN0 Designates pattern name data when the screen-over process repeating the character pattern is set. RAOPN15~RAOPN0 RBOPN15~RBOPN0 1800B8H 1800BAH nfi Bit 15~0 Bit 15~0 For Rotation Parameter A For Rotation Parameter B The bit configuration is the same as when the data size of the pattern name table is one-word; and changes depending on the settings of the character size, character Co color number, and character number supplement mode. This register action is executed for the scroll screen by rotation parameter A and B, but the character size that decides the bit configuration as well as the character number supplement mode performs in RBG0 and RBG1. Therefore, be careful when simultaneously displaying screens by rotation parameter A and B in RBG0. GA SE 116 4.11 Mosaic Process The mosaic process can be done for each screen using the scroll surface. The mosaic nti size can be set for the respective horizontal and vertical directions. The mosaic process divides each scroll screen into several areas of pre-determined size. This function displays all dots within various areas of colored dots in the upper left. The al mosaic pattern can be achieved by aligning different color areas. The size of the mosaic area can be individually selected. Size in the horizontal direction can select from 1 to 16 dots in single dot units. Size in the vertical direction can select from 1 to 16 dots in the non-interlace mode in single dot units, and 2 to 32 dots in the interlace mode in two-dot units. If the register is set to do mosaic processing when in the double-density interlace mode, the screen is made to display in the single-density interlace mode. de When using the mosaic process in NBG0 or NBG1, the vertical cell scroll function can no longer be used. Also, mosaic processing of RBG0 and RBG1 can only be done in the horizontal direction. Figure 4.19 shows the mosaic pattern. Vertical nfi Horizontal Mosaic Size The color of dots in the upper-left corner of each area is used for all dots in that area. Co Area A Area B Mosaic Size Area C Area D GA Figure 4.19 Mosaic Pattern SE ST-58-R2 117 Mosaic Control Register The mosaic control register selects whether to perform the mosaic process. It is a write-only 16-bit register and is in address 180022H. Because the value is cleared to 0 after the power is turned on or reset, be sure to set the value. MZCTL 180022H 15 MZSZV3 7 ~ 14 MZSZV2 6 ~ 13 MZSZV1 5 ~ 12 MZSZV0 4 R0MZE 11 MZSZH3 3 N3MZE 10 MZSZH2 2 N2MZE ntial 9 MZSZH1 1 N1MZE 8 MZSZH0 0 N0MZE Mosaic size bit (MZSZH3 to MZSZH0, MZSZV3 to MZSZV0) Designates the horizontal and vertical mosaic size. MZSZV3~MZSZV0 MZSZH3~MZSZH0 MZSZH3 0 0 0 MZSZH2 0 0 0 180022H 180022H MZSZH1 0 0 1 0 1 0 Bit 15~12 Bit 11~8 MZSZH0 de Horizontal Mosaic Size 1 dot 2 dots 3 dots For vertical mosaic size For horizontal mosaic size 0 0 0 0 0 1 1 0 1 1 1 1 0 0 1 0 0 1 1 0 0 1 0 1 0 1 0 1 nfi 4 dots 5 dots 6 dots 7 dots 8 dots 9 dots 10 dots Co 1 0 1 0 11 dots 1 0 1 1 12 dots 1 1 0 0 13 dots 1 1 0 1 14 dots 1 1 1 0 15 dots 1 1 1 1 16 dots GA SE 118 MZSZV3 MZSZV2 MZSZV1 MZSZV0 Vertical Mosaic Size Non-Interlace Interlace 0 0 0 0 1 dot 2 dots nti 0 0 0 1 2 dots 4 dots 0 0 1 0 3 dots 6 dots 0 0 1 1 4 dots 8 dots 0 1 0 0 5 dots 10 dots al 0 1 0 1 6 dots 12 dots 0 1 1 0 7 dots 14 dots 0 1 1 1 8 dots 16 dots 1 0 0 0 9 dots 18 dots 1 0 0 1 10 dots 20 dots 1 0 1 0 11 dots 22 dots 1 0 1 1 12 dots 24 dots 1 1 0 0 13 dots 26 dots 1 1 0 1 14 dots 28 dots 1 1 1 1 1 1 de 0 1 Note: There is no relationship with the interlace setting. Mosaic enable bit (N0MZE, N1MZE, N2MZE, N3MZE, R0MZE) Designates the screen performing mosaic process. 15 dots 16 dots 30 dots 32 dots N0MZE N1MZE N2MZE N3MZE R0MZE 180022H 180022H 180022H 180022H 180022H nfi Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 For NBG0 (or RBG1) For NBG1 For NBG2 For NBG3 For RBG0 xxMZE 0 1 CoProcess Does not execute mosaic process Processes mosaic process Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. Only horizontal mosaic processing is performed when the mosaic process is in the rotation scroll surface. If performing mosaic processing in the double-density inter- lace mode, the screen is made to be displayed by the single-density interlace mode. If performing mosaic processing in NBG0 or NBG1, the mosaic screen will not be GA able to use the vertical cell-scroll function. As a result, the mosaic process is done on the display screen for screens that don’t cell-scroll vertically. SE ST-58-R2 119 ntial (This page was blank in the original Japanese document) de nfi Co GA SE 120 Chapter 5 Normal Scroll Screen ntial de nfi Co GA Introduction.......................................................................... 122 5.1 Screen Scroll Function .................................................. 122 Screen Scroll Value Register ...................................... 123 5.2 Expansion/Contraction Function ................................... 126 Coordinate Increment Register .................................. 127 Reduction Enable Register ......................................... 129 SE 5.3 Line and Vertical Cell Scroll Function ............................ 131 Line Scroll Function .................................................... 131 Vertical Cell Scroll Function ........................................ 134 Line and Vertical Cell Scroll Control Register............. 137 Line Scroll Table Address Register............................. 140 Vertical Cell Scroll Table Address Register ................ 141 ST-58-R2 121 Introduction The normal scroll screen has four surfaces, NBG0 to NBG3; each surface can be scrolled up and down, left and right. NBG0 and NBG1 can be expanded and re- duced, line scrolled, and cell scrolled vertically. 5.1 Screen Scroll Function ntial All four surfaces of the normal scroll screen can dot scroll up, down, left, or right in surface units. The screen scroll value selects, in the screen scroll value register, the dot coordinates displayed in the upper left of the TV screen. The screen scroll value is in effect up to and including values that don’t exceed the display area set for each de screen. The display area of the screen is repeated when a value that exceeds the display area is selected. The fractional part of the screen scroll value for NBG0 and NBG1 is used only in calculating coordinates; the final display coordinate values are discarded. The horizontal (X) coordinate is selected by the horizontal screen scroll value integer part bit and horizontal screen scroll value fractional part bit. The vertical (Y) coordinate is selected by the vertical screen scroll value integer part bit Bit 31 nfi and vertical screen scroll value fractional part bit. The fractional part bit is added immediately below the integer bit. Figure 5.1 shows the bit configuration. Horizontal and Vertical Screen Scroll Value Register (NBG0, NBG1) 26 15 8 0 Bit 15 Co Integer Part Fractional Part Horizontal and Vertical Screen Scroll Value Register (NBG2, NBG3) 10 0 Integer part GA Figure 5.1 Screen scroll value bit configuration SE 122 Screen Scroll Value Register The screen scroll value register designates the screen scroll value. It is a write-only 16- or 32-bit register located at addresses 180070H to 180076H, 180080H to 180086H, and 180090H to 180096H. Because the value is cleared to 0, it must be set after power on or reset. SCXIN0 180070H 15 ~ 7 N0SCXI7 14 ~ 6 N0SCXI6 13 ~ 5 N0SCXI5 12 ~ 4 N0SCXI4 nti 11 ~ 3 al 10 N0SCXI10 N0SCXI9 2 9 1 N0SCXI3 N0SCXI2 N0SCXI1 8 N0SCXI8 0 N0SCXI0 15 14 13 12 11 10 9 8 SCXDN0 N0SCXD1 N0SCXD2 N0SCXD3 N0SCXD4 N0SCXD5 N0SCXD6 N0SCXD7 N0SCXD8 180072H SCYIN0 180074H 7 ~ 15 ~ 7 N0SCYI7 6 ~ 14 ~ 6 N0SCYI6 5 ~ 13 ~ 5 N0SCYI5 4 ~ de 12 ~ 4 3 ~ N0SCYI4 2 ~ 11 ~ 3 1 ~ 10 2 0 ~ 9 N0SCYI10 N0SCYI9 1 N0SCYI3 N0SCYI2 N0SCYI1 8 N0SCYI8 0 N0SCYI0 SCYDN0 180076H 15 N0SCYD1 N0SCYD2 N0SCYD3 N0SCYD4 N0SCYD5 N0SCYD6 N0SCYD7 N0SCYD8 7 ~ 15 14 6 ~ 14 13 5 ~ nfi 13 12 4 ~ 12 11 3 ~ 10 2 ~ 11 9 1 ~ 10 8 0 ~ 9 8 SCXIN1 180080H SCXDN1 180082H ~ 7 N1SCXI7 15 7 Co 14 6 N1SCXI6 6 ~ 13 5 ~ 5 N1SCXI5 12 4 ~ 4 N1SCXI4 11 3 ~ 3 N1SCXI10 N1SCXI9 2 1 N1SCXI3 N1SCXI2 N1SCXI1 10 9 8 N1SCXD1 N1SCXD2 N1SCXD3 N1SCXD4 N1SCXD5 N1SCXD6 N1SCXD7 N1SCXD8 2 1 0 N1SCXI8 0 N1SCXI0 ~ ~ ~ ~ ~ ~ ~ ~ GA 15 14 13 12 11 10 9 8 SCYIN1 ~ ~ ~ ~ ~ N1SCYI10 N1SCYI9 N1SCYI8 180084H 7 6 5 4 3 2 1 0 N1SCYI7 N1SCYI6 N1SCYI5 N1SCYI4 N1SCYI3 N1SCYI2 N1SCYI1 N1SCYI0 15 14 13 12 11 10 9 8 SCYDN1 N1SCYD1 N1SCYD2 N1SCYD3 N1SCYD4 N1SCYD5 N1SCYD6 N1SCYD7 N1SCYD8 180086H 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ ~ ~ ~ SE ST-58-R2 123 15 14 13 12 11 10 9 8 SCXN2 ~ ~ ~ ~ ~ N2SCX10 N2SCX9 N2SCX8 180090H 7 6 5 4 3 2 1 0 SCYN2 180092H N2SCX7 15 ~ 7 N2SCY7 N2SCX6 14 ~ 6 N2SCY6 N2SCX5 13 ~ 5 N2SCY5 N2SCX4 12 ~ 4 N2SCY4 N2SCX3 11 ~ 3 N2SCY3 nti N2SCX2 10 N2SCY10 2 N2SCY2 al N2SCX1 9 N2SCY9 1 N2SCY1 N2SCX0 8 N2SCY8 0 N2SCY0 15 14 13 12 11 10 9 8 SCXN3 ~ ~ ~ ~ ~ N3SCX10 N3SCX9 N3SCX8 180094H 7 6 5 4 3 2 1 0 N3SCX7 N3SCX6 N3SCX5 N3SCX4 N3SCX3 N3SCX2 N3SCX1 N3SCX0 SCYN3 180096H 15 ~ 7 N3SCY7 14 ~ 6 N3SCY6 13 ~ 5 N3SCY5 12 ~ 4 N3SCY4 11 ~ 3de N3SCY3 10 N3SCY10 2 N3SCY2 9 N3SCY9 1 N3SCY1 8 N3SCY8 0 N3SCY0 N2SCY0, N3SCX10 to N3SCX0, N3SCY10 to N3SCY0) nfi Screen scroll value bit: Scroll bit (N0SCXI10 to N0SCXI0, N0SCXD1 to N0SCXD8, N0SCYI10 to N0SCYI0, N0SCYD1 to N0SCYD8, N1SCXI10 to N1SCXI0, N1SCXD1 to N1SCXD8, N1SCYI10 to N1SCYI0, N1SCYD1 to N1SCYD8, N2SCX10 to N2SCX0, N2SCY10 to Designates the horizontal and vertical screen scroll values (coordinate values) of the Normal scroll screen. N0SCXI10~N0SCXI0 N0SCXD1~N0SCXD8 N0SCYI10~N0SCYI0 N0SCYD1~N0SCYD8 N1SCXI10~N1SCXI0 N1SCXD1~N1SCXD8 N1SCYI10~N1SCYI0 N1SCYD1~N1SCYD8 180070H 180072H 180074H 180076H 180080H 180082H 180084H 180086H Co Bit 10~0 Bit 15~8 Bit 10~0 Bit 15~8 Bit 10~0 Bit 15~8 Bit 10~0 Bit 15~8 For NBG0 horizontal direction (integer part) For NBG0 horizontal direction (fractional part) For NBG0 vertical direction (integer part) For NBG0 vertical direction (fractional part) For NBG1 horizontal direction (integer part) For NBG1 horizontal direction (fractional part) For NBG1 vertical direction (integer part) For NBG1 vertical direction (fractional part) N2SCX10~N2SCX0 180090H Bit 10~0 For NBG2 horizontal direction N2SCY10~N2SCY0 180092H Bit 10~0 For NBG2 vertical direction GA N3SCX10~N3SCX0 180094H Bit 10~0 For NBG3 horizontal direction N3SCY10~N3SCY0 180096H Bit 10~0 For NBG3 vertical direction SE 124 The value of the screen scroll value register is effective up to a range not exceeding the display area of each screen. When the display area is exceeded, the screen of the display area is repeatedly displayed. All screen scroll values must be identified as nti positive values. By changing the value during the horizontal retrace, the scroll value can also be changed in the middle of the image screen. al de nfi Co GA SE ST-58-R2 125 5.2 Expansion/Contraction Function NBG0 and NBG1 can expand and reduce the entire screen both horizontally and vertically. Controlling expansion and reduction is done by selecting horizontal and vertical coordinate increments required in display coordinate calculations. When reducing in horizontally, the reduction enable register must be set as certain screens cannot be displayed, depending on this setting. Display coordinates are calculated by the expressions below. ntial Note: the fractional part of the calculated results are discarded. (display coordinate value X) = (coordinate increment X) X (H counter value) + (screen scroll value X) (display coordinate value Y) = (coordinate increment Y) X (V counter value) + (screen scroll value Y) coordinate increments in the coordinate increment register. The horizontal coordi- de Screen expansion and reduction are controlled by setting the horizontal and vertical nate increment is selected by the horizontal coordinate increment integer part bit and horizontal coordinate increment fractional part bit. The vertical coordinate increment is selected by the vertical coordinate increment integer part bit and hori- zontal coordinate increment fractional part bit. nfi The fractional part bit is added immediately below the integer bit part. Figure 5.2 shows the bit configuration Bit 31 Co Hor izon tal and Ver tical Coo rdi na te Incr em ent s 18 15 Int ege r Part 8 Fr act iona l Part 0 Figure 5.2 Configuration of coordinate increment register. GA SE 126 Coordinate Increment Register The coordinate increment register designates the coordinate increment when calcu- lating the coordinates of the scroll screen. This is a write-only 32-bit register located nti at addresses 180078H to 18007EH, and 180088H to 18008EH. Because the value of the register is cleared to 0 after power on or reset, the value must be set. ZMXIN0 180078H 15 ~ 7 14 ~ 6 13 ~ 5 12 ~ 4 11 ~ 3 al 10 ~ 2 9 ~ 1 8 ~ 0 ~ ~ ~ ~ ~ N0ZMXI2 N0ZMXI1 N0ZMXI0 15 14 13 12 11 10 9 8 ZMXDN0 N0ZMXD1 N0ZMXD2 N0ZMXD3 N0ZMXD4 N0ZMXD5 N0ZMXD6 N0ZMXD7 N0ZMXD8 18007AH ZMYIN0 18007CH ~ 7 ~ 7 ~ 15 6 ~ 14 ~ 6 ~ 5 ~ 13 ~ 5 ~ 4 ~ de 12 ~ 4 ~ 3 ~ 11 ~ 3 ~ 2 ~ 1 ~ 10 ~ 2 0 ~ 9 ~ 1 8 ~ 0 N0ZMYI2 N0ZMYI1 N0ZMYI0 ZMYDN0 18007EH 15 7 ~ 14 6 ~ 13 N0ZMYD1 N0ZMYD2 N0ZMYD3 N0ZMYD4 N0ZMYD5 N0ZMYD6 N0ZMYD7 N0ZMYD8 5 ~ nfi 12 4 ~ 11 3 ~ 10 2 ~ 9 1 ~ 8 0 ~ ZMXIN1 180088H ZMXDN1 15 ~ 7 ~ 15 Co 14 ~ 6 ~ 14 13 13 ~ 5 ~ 12 12 ~ 4 ~ 11 11 ~ 3 ~ 10 10 9 ~ 2 8 9 ~ 1 8 ~ 0 N1ZMXI2 N1ZMXI1 N1ZMXI0 N1ZMXD1 N1ZMXD2 N1ZMXD3 N1ZMXD4 N1ZMXD5 N1ZMXD6 N1ZMXD7 N1ZMXD8 18008AH 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ ~ ~ ~ GA ZMYIN1 18008CH ZMYDN1 15 ~ 7 ~ 15 14 ~ 6 ~ 14 13 13 ~ 5 ~ 12 12 ~ 4 ~ 11 11 ~ 3 ~ 10 10 9 ~ 2 8 9 ~ 1 8 ~ 0 N1ZMYI2 N1ZMYI1 N1ZMYI0 N1ZMYD1 N1ZMYD2 N1ZMYD3 N1ZMYD4 N1ZMYD5 N1ZMYD6 N1ZMYD7 N1ZMYD8 18008EH 7 6 5 4 3 2 1 0 SE ~ ~ ~ ~ ~ ~ ~ ~ ST-58-R2 127 Coordinate increment bit: Zoom bit (N0ZMXI2 to N0ZMXI0, N0ZMXD1 to N0ZMXD8, N0ZMYI2 to N0ZMYI0, N0ZMYD1 to N0ZMYD8, N1ZMXI2 to N1ZMXI0, N1ZMXD1 to N1ZMXD8, N1ZMYI2 to N1ZMYI0, N1ZMYD1 to N1ZMYD8) Designates horizontal and vertical coordinate increments for calculating display coordinates when expanding and reducing all Normal scroll screens. N0ZMXI2~N0ZMXI0 N0ZMXD1~N0ZMXD8 N0ZMYI2~N0ZMYI0 N0ZMYD1~N0ZMYD8 N1ZMXI2~N1ZMXI0 N1ZMXD1~N1ZMXD8 180078H 18007AH 18007CH 18007EH 180088H 18008AH Bit 2~0 Bit 15~8 Bit 2~0 Bit 15~8 Bit 2~0 Bit 15~8 nti For NBG0 horizontal direction (integer part) al For NBG0 horizontal direction (fractional part) For NBG0 vertical direction (integer part) For NBG0 vertical direction (fractional part) For NBG1 horizontal direction (integer part) For NBG1 horizontal direction (fractional part) N1ZMYI2~N1ZMYI0 18008CH Bit 2~0 For NBG1 vertical direction (integer part) N1ZMYD1~N1ZMYD8 18008EH Bit 15~8 For NBG1 vertical direction (fractional part) The coordinate increment should be a value smaller than “1” in the expansion dis- of NBG2 and NBG3 are fixed at “1”. de play, and larger than “1” in the reduction display. The normal display is when the coordinate increment is 1. Selections are all by positive values. The coordinate parts By changing the value during the horizontal retrace, the coordinate increment value can also be changed. nfi The reduction enable register must be set when reduction display is horizontal. Depending on the setting of the reduction enable bit, do not set horizontal coordi- nate increment to a value other than the set range decided upon. Table 5.1 shows coordinate increments and reduction settings in the horizontal direction. Not allowed Co Table 5.1 Horizontal coordinate increments and reduction settings Horizontal Reduction Display Setting Up to 1/2 Up to 1/4 Horizontal Coordinate Increment Setting Range 0 ≤ (Horizontal Coordinate Increment) ≤ 1 0 ≤ (Horizontal Coordinate Increment) ≤ 2 0 ≤ (Horizontal Coordinate Increment) ≤ 4 GA SE 128 Reduction Enable Register The reduction enable register is a write-only 16 bit register that controls the horizon- tal reduction display, and is located at address 180098H. Because the value of the register is cleared to 0 after power on or reset, the value must be set. ZMCTL 180098H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ ntial 10 ~ 2 ~ 9 N1ZMQT 1 N0ZMQT 8 N1ZMHF 0 N0ZMHF Reduction enable bit: Zoom quarter/half bit (N1ZMQT, N1ZMHF, N0ZMQT, N0ZMHF) Designates the maximum reducible range of each Normal scroll screen in the hori- zontal direction. N0ZMHF N0ZMQT N1ZMHF N1ZMQT NxZMQT 0 NxZMHF 0 180098H 180098H 180098H 180098H Not allowed de Bit 0 Bit 1 Bit 8 Bit 9 Horizontal Reduction Display Restriction Items None For NBG0 For NBG0 For NBG1 For NBG1 0 1 1 1 0 1 Up to 1/2 Up to 1/4 Up to 1/4 nfi The number of character colors can be set for 16 or 256 colors only. The number of character colors can be set for 16 colors only. The number of character colors can be set for 16 colors only. bits. Co Note: 0 or 1 is entered in bit name for x. For reduction of up to 1/2, set the corresponding screen character color count (bit map pattern color count) to 16 or 256 colors. For reduction of up to 1/4, set to 16 colors. The horizontal coordinate increment should not exceed the set range of these GA SE ST-58-R2 129 Certain screens cannot display depending on the reduction setting. Limits are shown in Table 5.2. Table 5.2 Screen NBG0 Display screen limits by setting of reduction enable bit Character Color Count (Bitmap Color Count) 16 Colors 256 Colors 16 Colors Reduction Enable Setting Up to 1/2 Up to 1/4 Up to 1/2 Up to 1/2 nti Screens That Cannot Display None NBG2 NBG2 None al NBG1 Up to 1/4 NBG3 256 Colors Up to 1/2 NBG3 de nfi Co GA SE 130 5.3 Line and Vertical Cell Scroll Function Within the Normal scroll screen, there is a line scroll function and vertical cell scroll format. nti function in NBG0 and NBG1. The line scroll function selects the horizontal and vertical screen scroll value and horizontal coordinate increment in line units. The vertical cell scroll function selects the vertical screen scroll value in horizontal cell al units. Both functions can be used without relationship to the cell format and bit map Line Scroll Function The line scroll function selects the horizontal and vertical screen scroll value and horizontal coordinate increment in line units, and specifies by line scroll tables when two-line intervals or greater are selected. de stored in VRAM. Data values of line scroll tables are designated by relative values. To values stored in line scroll tables, values selected in the screen scroll value register are added, becoming display coordinates. The table data read interval can be se- lected from four types, one line, two line, four line, and eight line. Values of the vertical coordinate increment register are used for vertical coordinate calculations 5.3. nfi The horizontal coordinate increment should not set a value that the exceeds the setting of the reduction enable register. The line scroll function is shown in Figure Horizontal Co Line Scroll Table (VRAM) Horizontal Screen Scroll value for 1st line Vertical Screen Scroll value for 1st line Horiz. Coordinate increment for 1st line Horizontal Screen Scroll value Coordinate Increment Scroll Screen 1st Line 2nd Line 3rd Line 4th Line 5th Line for 2nd line Vertical Screen Scroll value GA for 2nd line Horiz. Coordinate increment for 2nd line Figure 5.3 Line scroll function SE Line scroll tables store from small addresses in order of the horizontal screen scroll value, vertical screen scroll value, and horizontal coordinate increments. Stored line scroll data is only composed of data required by the line scroll register setting. ST-58-R2 131 Each horizontal screen scroll value, vertical screen scroll value, and horizontal coor- dinate increment configuration is identical to the data configuration set in each register. Figure 5.4 shows the bit configuration of line scroll table data. Table 5.5 shows the configuration of line scroll tables. Hor izon tal , Vert ica l Scr ee n Scro ll Va lue +OH Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 Intege r Part : 11 b its 1 nti 0 al Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +2H Fr act iona l Part : 8 bit s Hor izon tal Coo rdi na te Incr em en t +0H Bit 15 Bit 15 14 13 12 11 14 13 12 11 10 9 10 9 8 8 7 7 6 6 5 5 4 4 de 3 3 2 2 1 1 0 0 Integ er Part : 3 bi ts +2H Fr act iona l Part : 8 bi ts No te: Shad ed ar ea s ar e ig no re d nfi Figure 5.4 Bit configuration of line scroll table data Co GA SE 132 When selecting horizontal and vertical screen scroll values and horizontal coordinate increment for every 1 line. Bit 15 Line Scroll Table (VRAM) 0 Line Scroll Table Address nti +00H Line 1 Horiz. Screen Scroll Value (Integer Part) +02H Line 1 Horiz. Screen Scroll Value (Fractional Part) +04H Line 1 Vertical Screen Scroll Value (Integer Part) al +06H Line 1 Vertical Screen Scroll Value (Fractional Part) +08H Line 1 Horiz. Coordinate Increment (Integer Part) +0AH Line 1 Horiz. Coordinate Increment (Fractional Part) +0CH Line 2 Horiz. Screen Scroll Value (Integer Part) +0EH Line 2 Horiz. Screen Scroll Value (Fractional Part) +10H Line 2 Vertical Screen Scroll Value (Integer Part) +12H Line 2 Vertical Screen Scroll Value (Fractional Part) Bit 15 de +14H Line 2 Horiz. Coordinate Increment (Integer Part) +16H Line 2 Horiz. Coordinate Increment (Fractional Part) When selecting vertical screen scroll value and horizontal coordinate increment for every 2 lines (no horizontal line scroll). Line Scroll Table (VRAM) 0 Line Scroll Table Address nfi +00H Line 1 Vertical Screen Scroll Value (Integer Part) +02H Line 1 Vertical Screen Scroll Value (Fractional Part) +04H Line 1, 2 Horiz. Coordinate Increment (Integer Part) +06H Line 1, 2 Horiz. Coordinate Increment (Fractional Part) +08H Line 3 Vertical Screen Scroll Value (Integer Part) Co +0AH Line 3 Vertical Screen Scroll Value (Fractional Part) +0CH Line 3, 4 Horiz. Coordinate Increment (Integer Part) +0EH Line 3, 4 Horiz. Coordinate Increment (Fractional Part) Note: Display coordinates in the vertical direction for lines not specified are obtained by adding coordinate increments in the vertical direction to the vertical screen scroll values for the lines specified. When selecting horizontal screen scroll value and horizontal GA coordinate increment for every 4 lines (no horizontal line scroll). Bit 15 Line Scroll Table (VRAM) 0 Line Scroll Table +00H Line 1~4 Horiz. Screen Scroll Value (Integer Part) Address +02H Line 1~4 Horiz. Screen Scroll Value (Fractional Part) +04H Line 1~4 Horiz. Coordinate Increment (Integer Part) +06H Line 1~4 Horiz. Coordinate Increment (Fractional Part) +08H Line 5~8 Horiz. Screen Scroll Value (Integer Part) +0AH Line 5~8 Horiz. Screen Scroll Value (Fractional Part) SE +0CH Line 5~8 Lines Horiz. Coordinate Increment (Integer Part) +0EH Line 5~8 Lines Horiz. Coordinate Increment (Fractional Part) Figure 5.5 Line scroll table ST-58-R2 133 Vertical Cell Scroll Function The vertical cell scroll function selects the vertical screen scroll value in horizontal cell units in each vertically separated area, and is selected by the vertical cell scroll table stored in VRAM. The data value of the vertical cell scroll table is designated by relative values. The value selected by the screen scroll value register is added to the screen scroll value stored in the vertical cell scroll table, becoming the display coor- dinate. Selection can be done in horizontal 8 dot units when displaying in bit map format. ntial NBG0 and NBG1 have the only vertical cell scroll functions inside the Normal scroll screen. This vertical cell scroll function and mosaic function can not be used simul- taneously; the mosaic function has priority. Figure 5.6 shows the vertical cell scroll function. Ver tical Cel Scro ll Tabl e (VRAM) 1st Cel l Ver tica l Scr een Scr ol l Val ue 2nd Cel l Ver tical de Scre en Scr ol l Val ue 3r d Cel l Ver tical Scr ee n Scr ol l Val ue nfi TV Scr een Co Vert ica l Scr ee n Scro l va lue -e na bl ed ar ea for the 1st cel l GA Figure 5.6 Vertical cell scroll function The bit configuration of the vertical screen scroll value is the same when set in all registers. Data of the vertical cell scroll table is treated as a table in the order from data in the left side cell of the TV screen. When both NBG0 and NBG1 use the vertical cell scroll function, the various vertical cell scroll table data should be alternately stored in NBG0 and NBG1, one cell at a SE time. 134 Figure 5.7 shows the bit configuration of the vertical cell scroll table data. Figure 5.8 shows the vertical cell scroll table configuration. Vertical Screen Scroll Value +0H Bit 15 +2H Bit 15 14 14 13 12 11 13 12 11 10 9 10 9 8 bit fractional part 8 8 7 7 6 6 ntial 11 bit integer part 5 5 4 4 3 3 2 2 1 1 0 0 Note: Shaded area is ignored Figure 5.7 de Data configuration on the vertical cell scroll table nfi Co GA SE ST-58-R2 135 NBG0 Vertical Cell Scroll Bit 15 Vertical Cell Scroll Table (VRAM) 0 Vertical Cell Scroll +00H NBG0 1st cell vertical screen scroll value (integer part) nti Table Address +02H NBG0 1st cell vertical screen scroll value (fractional part) +04H NBG0 2nd cell vertical screen scroll value (integer part) +06H NBG0 2nd cell vertical screen scroll value (fractional part) al +08H NBG0 3rd cell vertical screen scroll value (integer part) +0AH NBG0 3rd cell vertical screen scroll value (fractional part) +0CH NBG0 4th cell vertical screen scroll value (integer part) +0EH NBG0 4th cell vertical screen scroll value (fractional part) +10H NBG0 5th cell vertical screen scroll value (integer part) +12H NBG0 5th cell vertical screen scroll value (fractional part) NBG1 Vertical Cell Scroll Vertical Cell Scroll Table Address Bit 15 +00H +02H +04H de Vertical Cell Scroll Table (VRAM) NBG1 1st cell vertical screen scroll value (integer part) NBG1 1st cell vertical screen scroll value (fractional part) NBG1 2nd cell vertical screen scroll value (integer part) 0 +06H +08H nfi NBG1 2nd cell vertical screen scroll value (fractional part) NBG1 3rd cell vertical screen scroll value (integer part) +0AH NBG1 3rd cell vertical screen scroll value (fractional part) +0CH NBG1 4th cell vertical screen scroll value (integer part) +0EH NBG1 4th cell vertical screen scroll value (fractional part) +10H NBG1 5th cell vertical screen scroll value (integer part) Vertical Cell Scroll Co +12H NBG0 and NBG1 Vertical Cell Scroll Table Address Bit 15 NBG1 5th cell vertical screen scroll value (fractional part) Vertical Cell Scroll Table (VRAM) +00H NBG0 1st cell vertical screen scroll value (integer part) +02H NBG0 1st cell vertical screen scroll value (fractional part) 0 +04H NBG1 1st cell vertical screen scroll value (integer part) +06H NBG1 1st cell vertical screen scroll value (fractional part) GA +08H NBG0 2nd cell vertical screen scroll value (integer part) +0AH NBG0 2nd cell vertical screen scroll value (fractional part) +0CH NBG1 2nd cell vertical screen scroll value (integer part) +0EH NBG1 2nd cell vertical screen scroll value (fractional part) +10H NBG0 3rd cell vertical screen scroll value (integer part) +12H NBG0 3rd cell vertical screen scroll value (fractional part) SE Figure 5.8 Vertical cell scroll table 136 Line and Vertical Cell Scroll Control Register The line and vertical cell scroll control register is a write-only 16-bit register that controls the line scroll function and vertical cell scroll function, and is at address 18009AH. Because the value of the register is cleared to 0 after the power is turned on or reset, the value must be set. SCRCTL 18009AH 15 ~ 7 ~ 14 ~ 6 ~ 13 N1LSS1 5 N0LSS1 12 N1LSS0 4 N0LSS0 11 N1LZMX 3 N0LZMX ntial 10 N1LSCY 2 N0LSCY 9 N1LSCX 1 N0LSCX 8 N1VCSC 0 N0VCSC Line Scroll Interval Bit: Line scroll select bit (N0LSS1, N0LSS0, N1LSS1, N1LSS0) Designates the interval that reads line scroll table data from the table. The interval N0LSS1, N0LSS0 de changes depending on the interlace of the TV screen. N1LSS1, N1LSS0 NxLSS1 NxLSS0 18009AH 18009AH Interlace Setting Non-Interlace Bit 5, 4 Bit 13,12 Single-Density Interlace For NBG0 For NBG1 Double-Density Interlace 0 0 1 1 0 1 0 1 Each line Every 2 lines Every 4 lines Every 8 linesnfi Note: 0 or 1 is entered in bit name for x. Every 2 lines Every 4 lines Every 8 lines Every 16 lines Each line Every 2 lines Every 4 lines Every 8 lines read. Co When reading line scroll table data at intervals of two lines or greater, line horizontal scroll screen value not read and horizontal coordinate increments use line scroll data that has been previously read. The vertical scroll screen value is calculated from vertical coordinate increment register value and line scroll data that was previously GA SE ST-58-R2 137 Line zoom enable bit: Line zoom X enable bit (N1LZMX, N0LZMX) Designates whether expansion-reduction is done horizontally in line units. N0LZMX 18009AH Bit 3 For NBG0 N1LSCX NxLZMX 0 1 18009AH Note: 0 or 1 is entered in bit name for x. Bit 11 Process nti For NBG1 Does not scale horizontally per line units al Scales horizontally per line units When using this function, the horizontal coordinate increment must be stored in the line scroll table of VRAM. Make sure that the horizontal coordinate increment does not exceed the reduction setting. N0LSCY) de Line scroll enable bit (for the vertical screen scroll value): Line scroll Y enable bit (N1LSCY, Designates whether scroll is performed by vertical line units. N0LSCY N1LSCY 18009AH 18009AH Bit 2 Bit 10 For NBG0 For NBG1 NxLSCY 0 1 Note: 0 or 1 is entered in bit name for x. nfi Process Does not scroll vertically per line units Scrolls vertically per line units scroll table of VRAM. Co When using this function, the vertical screen scroll value must be stored in the line GA SE 138 Line scroll enable bit (for the horizontal screen scroll value): Line scroll X enable bit (N1LSCX, N0LSCX) Designates whether scroll is performed by horizontal line units. N0LSCX N1LSCX NxLSCX 0 1 18009AH 18009AH Note: 0 or 1 is entered in bit name for x. Bit 1 Bit 9 Process ntial For NBG0 For NBG1 Does not scroll horizontally per line units Scrolls horizontally per line units When using this function, be sure to store the horizontal scroll screen value in the VRAM line scroll table. N0VCSC de Vertical cell scroll enable bit (N1VCSC, N0VCSC) Designates whether to perform vertical cell scroll. N1VCSC 18009AH 18009AH Bit 0 Bit 8 For NBG0 For NBG1 NxVCSC 0 1 nfi Note: 0 or 1 is entered in bit name for x. Process Does not cell-scroll vertically Cell-scrolls vertically When using the vertical cell scroll function, make sure the access command of the tion has priority. Co vertical cell scroll table data read is designated in the VRAM cycle pattern register. In addition, vertical cell scroll data must be stored in VRAM. The vertical cell scroll function cannot be used simultaneously with the mosaic function; the mosaic func- GA SE ST-58-R2 139 Line Scroll Table Address Register The line scroll table address register is a write-only 32-bit register that selects the lead address of the line scroll table, and is at addresses 1800A0H to 1800A6H. Be- cause the value of the register is cleared to 0 after power on or reset, the value must be set. LSTA0U 1800A0H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 ntial 9 ~ 1 8 ~ 0 N0LSTA18 N0LSTA17 N0LSTA16 15 14 13 12 11 10 9 8 LSTA0L N0LSTA15 N0LSTA14 N0LSTA13 N0LSTA12 N0LSTA11 N0LSTA10 N0LSTA9 N0LSTA8 1800A2H LSTA1U 1800A4H 7 ~ 7 ~ 6 N0LSTA7 N0LSTA6 N0LSTA5 N0LSTA4 N0LSTA3 N0LSTA2 N0LSTA1 15 14 ~ 6 ~ 5 13 ~ 5 ~ 4 3 12 ~ 4 ~ 2 11 ~ 3 ~ 1 de 10 ~ 2 9 ~ 1 8 ~ 0 0 ~ N1LSTA18 N1LSTA17 N1LSTA16 LSTA1L 1800A6H 15 14 13 12 11 nfi 10 9 N1LSTA15 N1LSTA14 N1LSTA13 N1LSTA12 N1LSTA11 N1LSTA10 N1LSTA9 7 6 5 4 3 2 1 N1LSTA7 N1LSTA6 N1LSTA5 N1LSTA4 N1LSTA3 N1LSTA2 N1LSTA1 8 N1LSTA8 0 ~ N1LSTA18~N1LSTA16 N1LSTA15~N1LSTA1 Co Line scroll table address bit (N0LSTA18 to N0LSTA16, N0LSTA15 to N0LSTA1, N1LSTA18 to N1LSTA16, N1LSTA15 to N1LSTA1) Designates the lead address of the line scroll table on the VRAM. N0LSTA18~N0LSTA16 N0LSTA15~N0LSTA1 1800A0H 1800A2H 1800A4H 1800A6H Bit 2~0 Bit 15~1 Bit 2~0 Bit 15~1 For NBG0 (upper bit) For NBG0 (lower bit) For NBG1 (upper bit) For NBG1 (lower bit) The actual lead VRAM address is calculated by the expression below. When the GA VRAM has a 4 Mbit capacity, the address of the most significant bit is ignored. (line scroll table lead address) = (line scroll table address register value 18 bit) X 4H SE 140 Vertical Cell Scroll Table Address Register The vertical cell scroll table address register is a write-only 32-bit register that selects the lead address of the vertical cell scroll table, and is at addresses 18009CH to 18009EH. Because the value of the register is cleared to 0 after power on or reset, the value must be set. VCSTAU 18009CH 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ nti 11 ~ 3 ~ al 10 ~ 2 9 ~ 1 8 ~ 0 VCSTA18 VCSTA17 VCSTA16 15 14 13 12 11 10 9 8 VCSTAL VCSTA15 VCSTA14 VCSTA13 VCSTA12 VCSTA11 VCSTA10 VCSTA9 VCSTA8 18009EH 7 6 5 4 3 2 1 0 VCSTA18~VCSTA16 de VCSTA7 VCSTA6 VCSTA5 VCSTA4 VCSTA3 VCSTA2 Vertical cell scroll table address bit (VCSTA18 to VCSTA1), Designates the lead address of the vertical cell scroll table on the VRAM. 18009CH Bit 2~0 VCSTA1 ~ VCSTA15~VCSTA1 18009EH nfi Bit 15~1 The actual lead VRAM address is calculated by the expression below. When the VRAM has a 4 Mbit capacity, the address of the most significant bit is ignored. (vertical cell scroll table lead address) Co = (vertical cell scroll table address register value 18 bit) X 4H GA SE ST-58-R2 141 nti (This page is blank in the original Japanese document) al de nfi Co GA SE 142 Chapter 6 Rotation Scroll Screen ntial de nfi Co Introduction ............................................................................. 144 6.1 Rotation Scroll Coordinate Operation ............................... 144 6.2 Rotation Scroll Screen Display Control ............................ 148 RAM Control Register ................................................... 148 6.3 Rotation Parameter Control .............................................. 151 Data Configuration of the Rotation Parameter Table .... 153 Rotation Parameter Table ............................................. 155 GA Rotation Parameter Read Control Register .................. 157 Rotation Parameter Table Address Register ................. 158 Rotation Read Out of the Frame Buffer ........................ 159 Rotation Parameter Change ......................................... 160 Rotation Parameter Mode Register .............................. 162 6.4 Coefficient Table Control ................................................... 163 Line Color Screen Data ................................................. 164 Bit Configuration of Coefficient Table Data ................... 165 SE Coefficient Table Lead Address..................................... 165 Most Significant Bit of Coefficient Data ......................... 166 RAM Control Register ................................................... 167 Coefficient Table Control Register................................. 168 Coefficient Table Address Offset Register ..................... 170 ST-58-R2 143 Introduction The rotation scroll screen has two sets of parameter tables called “Rotation param- nti eter A” and “Rotation parameter B” that can be simultaneously displayed by various parameter tables. Besides being stored as rotation parameters in VRAM, the two sets of parameters can hold various correlated coefficient tables in VRAM. al There are two sets of rotation parameters, rotation parameter A and rotation param- eter B, each stored in a table. RBG0 can simultaneously display one screen selected by rotation parameter A or rotation parameter B, or two screens selected by rotation parameter A and rotation parameter B. RBG1 can display only the screen desig- nated by rotation parameter B. Table 6.1 shows the relationship between the rotation scroll screen and rotation parameters. Table 6.1 Rotation scroll screen Screen RBG0 RBG1 Allowed Single Display Not allowed (RBG0 must also be de In Relation to Rotation Parameters Screen specified by either rotation parameter A or B, or 2 screens specified by rotation parameters A and B are displayed concurrently Screen specified by rotation parameter B is displayed) nfi displayed Rotation parameter A and rotation parameter B can each have a coefficient table; there can be multiple displays by reading the coefficient data in each line or each dot. Using rotation parameter A, expansion-reduction rotation of sprite frame buffers can also be done. Co 6.1 Rotation Scroll Coordinate Calculation The display screen of the rotation scroll screen, which causes rotational conversion (including parallel moving) of the viewpoint reference center point and TV screen, is a collection of points intersecting the line of vision that passes through the TV screen from the viewpoint after conversion with the fixed scroll map. Figure 6.1 shows display method of the rotation scroll screen. GA SE 144 Z Vie wpoi nt bef ore con ver si on (Px, Py, Pz) Cent ra l po in t (Cx, Cy, Cz) nti View po in t after conve rsio n (Xp, Yp, Zp) al Point on the scr een after X Poi nt on the scr ee n bef or e co nve rsi on (Sx, Sy, Sz) de con ver si on (Xs, Ys, Zs) Poin t disp laye d on the scro ll ma p (X , Y, Z) Not e: X axi s run s ve rt ica l y thr ou gh the pag e to the back. Y nfi Figure 6.1 Rotation scroll screen display method From the rotation conversion formula, view coordinates and TV screen coordinates after conversion are expressed by the following equations. Xp Yp Zp Co = A B C D E F G H I Px - Cx Py - Cy Pz - Cz + Cz Cy Cz + Mx My Mz Xs A B C Sx - Cx Cz Mx GA Ys Zs = D E F G H I Sy - Cy Sz - Cz + Cy Cz + My Mz A, B, C, D, E, F, G, H, I: Rotational matrix parameter SE Px, Py, Pz: View coordinate before rotational conversion Sx, Sy, Sz: TV screen coordinates before rotational conversion Cx, Cy, Cz: Rotational center coordinate Mx, My, Mz: Amount of parallel movement Xp, Yp, Zp: View coordinate after rotational conversion Xs, Ys, Zs: TV screen coordinates after rotational conversion ST-58-R2 145 The line of vision that passes through the TV screen after rotational conversion, from the viewpoint after rotational conversion, is expressed by the equation below. X = k (Xs – Xp) + Xp X - Xp Xs - Xp = Y - Yp Ys - Yp = Z - Zp Zs - Zp nti Because the scroll map is fixed by the XY plane (Z = 0), display coordinates (X, Y) on the scroll map are found by the equation below. Y = k (Ys – Yp) + Yp al However, k = -Zp Zs - Zp de This “k”, called the perspective conversion coefficient, rotates only in the vertical direction of the TV screen along the X axis rotation and is fixed in the horizontal direction. Furthermore, the Y axis rotation only changes in the horizontal direction nfi of the TV screen, and is fixed in the vertical direction. Z axis rotation is always fixed. Because the screen prior to rotational conversion is normally identical to the TV screen, Sx is the horizontal coordinate value (H counter value) in the TV screen, Sy is the vertical coordinate value (V counter value) in the TV screen, and Sz is 0. The screen coordinate value when the screen rotates in the vertical axis (SZ axis) is found by the equations below. Sx Sy Sz = a b 0 c d 0 0 0 1 Co Hcnt - Csx Vcnt - Csy 0 + Csx Csy 0 + Msx Msy Msz GA a, b, c, d: TV screen rotation matrix parameter Hcnt, Vcnt: HV counter value Csx, Csy: TV screen rotation center coordinate Msx, Msy, Msz: TV screen parallel movement amount The previously mentioned expression is as shown below. Sx = Xst + DX • Hcnt + DXst • Vcnt Sy = Yst + DY • Hcnt + DYst • Vcnt SE Sz = Zst However, Xst = –a • Csx – b • Csy + Csx + Msx Yst = –c • Csx – d • Csy + Csy + Msy 146 Zst = Msz ∆X = a ∆Y = c ∆Xst = b ∆Yst = d Xst, Yst, Zst: DX, DY: DXst, DYst: TV screen start coordinate ntial TV screen horizontal coordinate increment TV screen vertical coordinate increment Below are the calculation equations of the display coordinates (X, Y) when perform- ing both TV screen 3 axis rotation and TV screen rotation from the equations above. X = kx (Xsp + dX • Hcnt) + Xp Y = ky (Ysp + dY • Hcnt) + Yp However, de Xsp = A{(Xst + ∆Xst • Vcnt) – Px} + B{(Yst + ∆Yst • Vcnt) – Py} + C(Zst – Pz) Ysp = D{(Xst + ∆Xst • Vcnt) – Px} + E{(Yst + ∆Yst • Vcnt) – Py} + F(Zst – Pz) Xp = A(Px – Cx) + B(Py – Cy) + C(Pz – Cz) + Cx + Mx dX = A • ∆X + B • ∆Y nfi Yp = D(Px – Cx) + E(Py – Cy) + F(Pz – Cz) + Cy + My dY = D • ∆X + E • ∆Y Xst, Yst, Zst: ∆Xst, ∆Yst: TV screen start coordinates TV screen vertical coordinate increments ∆X, ∆Y: A, B, C, D, E, F: Px, Py, Pz: Cx, Cy, Cz: Mx, My: kx, ky: Hcnt, Vcnt: Co TV screen horizontal coordinate increments Rotational matrix parameter View coordinates Center coordinates Amount of parallel movement Expansion reduction coefficient HV counter value VDP2 reads per line all parameters from the rotation parameter table stored on GA VRAM, calculates Xsp, Ysp, Xp, Yp, dX, dY used for the above calculation equation, and uses these results to find the display coordinates (X, Y) of each dot. Expansion reduction coefficients kx and ky usually use values read from the rotational param- eter table. By using the coefficient table, values in all lines and dots can be changed. SE ST-58-R2 147 6.2 Rotation Scroll Screen Display Control The rotation scroll screen has two surfaces, RBG0 and RBG1. When RBG1 is dis- nti played, RBG0 must also be displayed (RBG0 appears when only one surface is displayed.) The Normal scroll screens can no longer be displayed at that time. al The image data (pattern name table or bitmap pattern) being displayed in the rota- tion scroll screen cannot be with image data of the Normal scroll screen; neither can image data of RBG0 and RBG1 be used in common. Furthermore, image data of the rotation scroll screen must be stored in separate VRAM. Among image data, the RBG1 pattern name table is stored in VRAM-B1, and character pattern table is stored in VRAM-B0. with dots. de When RBG0 needs coefficient only data with lines, the coefficient table can be stored in any VRAM bank. Image data must be stored in different banks when required The register that controls the display of the rotation scroll screen has a screen display enable register and RAM control register. The screen display enable register controls the screen display and transparency code. The register content is the same as the RAM Control Register nfi Normal scroll screen. See “4.1 Screen Display Control” for details. The RAM control register selects the VRAM bank partition, the objective for using the rotation scroll screen VRAM, and the color RAM mode. It is a read-write 16 bit Co register and is at address 18000EH. Because the value of the register is cleared to 0 after power on or reset, you must set the value. RAMCTL 18000EH 15 CRKTE 7 14 ~ 6 13 CRMD1 5 12 CRMD0 4 11 ~ 3 10 ~ 2 9 VRBMD 1 8 VRAMD 0 RDBSB11 RDBSB10 RDBSB01 RDBSB00 RDBSA11 RDBSA10 RDBSA01 RDBSA00 Color RAM Coefficient Table Enable bit (CRKTE) GA See “6.4 Coefficient Table Control.” SE 148 Color RAM mode bit (CRMD1, CRMD0) See “3.4 Color RAM mode.” Set the Color RAM mode to mode 1 when the CRKTE bit is 1. At that time, color 100FFFH) is used for the coefficient table data. nti data can no longer be stored because the second half of the color RAM (100800H ~ VRAM mode bit (VRAMD, VRBMD) See “3.2 VRAM Bank Partition.” al Rotation data bank select bit: Data bank select bit (RDBSA01, RDBSA00, RDBSA11, RDBSA10, RDBSB01, RDBSB00, RDBSB11, RDBSB10) Designates the use objective of the VRAM of the rotation scroll screen. This bit is only in effect when the rotation scroll screen is displayed. RDBSA00, RDBSA01 RDBSA10, RDBSA11 RDBSB00, RDBSB01 RDBSB10, RDBSB11 RDBSx1 0 RDBSx0 0 18000EH 18000EH 18000EH 18000EH VRAM Use de Bit 1,0 Bit 3,2 Bit 5,4 Bit 7,6 Not used as RBG0 RAM For VRAM-A0 (or VRAM-A) For VRAM-A1 For VRAM-B0 (or VRAM-B) For VRAM-B1 0 1 1 1 0 1 nfi RAM for RBG0 End table RAM for RGB0 Pattern Name table RAM for RBG0 Character Pattern table (or Bitmap Pattern) Note: A0, A1, B0, or B1 is entered in bit name for x. When there are no bank partitions in VRAM, the VRAM-A0 bit is used for VRAM-A, Co and the VRAM-B0 bit is used for VRAM-B. When coefficient data is not treated as being needed in all dots, there is no need to set the coefficient table RAM (01B). When displaying by the bit map format, do not set the pattern name table RAM (10B). VRAM cycle pattern register settings of the VRAM bank selected in RAM used for the rotational scroll are ignored. Data will not be read out when there is no image data read-out address in the selected bank. Therefore, the correct screen can no longer be displayed. GA SE ST-58-R2 149 When displaying RBG1, 00B must be set in bits used for VRAM-B0 and VRAM-B1. When the coefficient data read address is not the address within the selected bank, the coefficient data can not be read properly and therefore correct screen image can RBG0 coefficient table RAM (01B) must not be set. nti not be displayed. In addition, when storing the coefficient table in the color RAM, al de nfi Co GA SE 150 6.3 Rotation Parameter Control When displaying the rotation scroll screen, be sure to store the rotation parameter on Table 6.2 Rotation Parameters nti which control is performed as a table in VRAM. The rotation scroll screen reads the rotation parameter tables stored in VRAM for each line. The screen is displayed according to that value. The rotation parameter is shown below. Rotation Parameter Definition al Xst Screen upper left corner (or left edge) X coordinate Screen Start Coordinate Yst Screen upper left corner (or left edge) Y coordinate Zst Screen upper left corner (or left edge) Z coordinate Screen Vertical Coordinate ∆Xst Screen coordinates X increment per each line ∆Yst Screen coordinates Y increment per each line Increments Screen Horizontal Coordinate ∆ X Increments Rotation Matrix Parameter ∆Y A B C D E de Screen coordinates X increment per each dot Screen coordinates Y increment per each dot These parameters are include in 3X3 rotation matrix. ABC DEF GHI Viewpoint Coordinates Center Coordinates F Px Py Pz Cx Cy Cz nfi Viewpoint X coordinate Viewpoint Y coordinate Viewpoint Z coordinate Center X coordinate Center Y coordinate Center Z coordinate Amount of Horizontal Shift Scaling Coefficients Address Increment Coefficient Table Horizontal Address Increment Co Coefficient Table Vertical Mx My kx ky Shift in X direction for screen, viewpoint, and center Shift in Y direction for screen, viewpoint, and center Scale coefficient of display screen in X direction Scale coefficient of display screen in Y direction Coefficient Table Start Address KAst Table start address when using coefficients table ∆KAst Address increment per each line when using coefficients table ∆KAx Address increment when using coefficients table per each dot Note: * denotes when reading to each line. GA SE ST-58-R2 151 Only Xst, Yst, and KAst among rotation parameters can be read by the first line of the display screen. The value of Xst, Yst, and KAst (when ∆Xst, ∆Yst, ∆ X, ∆Y, ∆KAst, and ∆KAx don’t change inside one screen) are expressed by the equation below. (Screen X coordinate) = Xst + ∆Xst x (V counter value) + ∆X x (H counter value) (Screen Y coordinate) = Yst + ∆Yst x (V counter value) + ∆Y x (H counter value) ntial (coefficient table address) = KAst + ∆KAst x (V counter value) + ∆KAx x (H counter value) Moreover, the first line can be read (in addition to Xst, Yst, and KAst) by setting the screen one) are expressed by the equation below. de rotation parameter read control register. Values on and after the second lines of Xst, Yst, and KAst (when ∆Xst, ∆Yst, ∆ X, ∆Y, ∆KAst, and ∆KAx do not change within (Screen X coordinate) = Xst + ∆X x (H counter value) nfi + ∆Xst x {(V counter value) – (V counter value when Xst is read out)} (Screen Y coordinate) = Yst + ∆Yst x {(V counter value) – (V counter value when Yst is read out)} + ∆Y x (H counter value) (coefficient table address) = KAst Co + ∆KAst x {(V counter value) – (V counter value when KAst is read out)} + ∆KAx x (H counter value) The rotation scroll screen has two sets of parameter tables, called “Rotation Param- eter A” and “Rotation Parameter B.” The display screen of RBG1 is carried out by rotation parameter B. RBG0 selects which of the two sets of parameter tables is GA used, and can change within the display screen. Through this, RBG0 can simulta- neously display two different rotation scroll screens on one screen. SE 152 In addition, the rotation parameter table moves by storing rotation parameter tables using RBG0 and RBG1, and does not always have to store two sets of rotation pa- rameter tables. Data Configuration of the Rotation Parameter Table Figure 6.2 shows various bit configurations of rotation parameters. Negative num- bers indicate by two complements. The shaded part of the bit is ignored. ntial Scre en Star t Coo rd ina tes (Xst , Yst , Zst ) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0 H Bit 15 +2 H Sig n 14 13 12 11 10 9 8 10 bi t fract ion al par t de12 bi t integ er par t 7 6 5 4 3 2 1 0 14 13 12 11 14 13 12 11 10 9 nfi Scr ee n Vert ica l Coor din at e Incre ment s (∆X st , ∆Yst ) Bit 15 +0 H Bit 15 +2 H 10 9 8 10 bi t fract ion al par t 8 7 7 6 6 5 5 4 4 3 3 2 Sign 2 1 1 0 0 2 bi t int eg er par t +0 H Co Scre en Hor izo nt al Coo rd ina te Incr em en ts (∆X, ∆Y ) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 Sign 1 0 2 bi t integ er pa rt Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +2 H 10 bi t fract ion al par t GA Not e: Sha ded are as are ign or ed . Figure 6.2 Rotation parameter data configuration SE ST-58-R2 153 Rotation Matrix Parameter (A, B, C, D, E, F) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Sign 3 bit +0H nti integer part Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +2H 10 bit fractional part Viewpoint Coordinates (Px, Py, Pz) Bit 15 14 13 12 Sign 11 10 9 8 7 6 5 4 13 bit integer part 3 2 1 al 0 Center Coordinates (Cx, Cy, Cz) Bit 15 14 13 12 Sign 11 Amount of horizontal shift (Mx, My) 10 9 8 7 6 5 de 4 13 bit integer part 3 2 1 0 Bit 15 +0H +2H Bit 15 14 14 13 12 Sign 13 11 12 11 10 9 10 9 8 8 10 bit fractional part nfi 7 7 6 5 4 13 bit integer part 6 5 4 3 3 2 2 1 1 0 0 Scaling Coefficients (kx, ky) +0H Bit 15 Bit 15 14 14 13 13 12 12 Co 11 11 10 10 9 9 8 8 7 Sign 7 6 6 5 4 3 7 bit integer part 5 4 3 2 2 1 1 0 0 +2H 16 bit fractional part GA Coefficient Table Start Address (KAst) Bit 15 +0H Bit 15 14 14 13 13 12 11 12 11 10 9 10 9 8 16 bit integer part 8 10 bit fractional part 7 7 6 6 5 5 4 4 3 3 2 2 1 1 0 0 +2H SE Note: Shaded areas are ignored. Figure 6.2 Rotation parameter data configuration (continued) 154 Coef fici en t tabl e ver tical add re ss incr em en t (∆KAst ) Bit 15 +0 H Bit 15 +2 H 14 14 13 13 12 11 12 11 10 9 10 9 Sig n 8 8 10 bi t fra ct ion al par t 7 7 6 6 nti 5 5 al 4 4 3 9 bit int eg er pa rt 3 2 2 1 1 0 0 Coe ffici en t tabl e hor izon tal add re ss incr em ent (∆KAx) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0 H +2 H Bit 15 14 13 12 11 10 9 Not e: Sha ded are as are ign or ed Sign de 8 10 bi t fra ct ion al par t 7 6 9 bi t int eg er pa rt 5 4 3 2 1 0 Figure 6.2 Rotation Parameter Table nfi Rotation parameter data configuration (continued) Co One set of rotation parameter tables at a size of 60H is stored in VRAM. Figure 6.3 shows the configuration of one set of tables. GA SE ST-58-R2 155 +00H Screen Start Coordinate Xst (Integer Part) +02H (Fractional Part) +04H Screen Start Coordinate Yst (Integer Part) +06H +08H +0AH +0CH +0EH +10H +12H Screen Start Coordinate Zst Screen Vertical Coordinate Increment ∆Xst Screen Vertical Coordinate Increment ∆Yst nti (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) al +14H Screen Horiz. Coordinate Increment ∆X (Integer Part) +16H (Fractional Part) +18H Screen Horiz. Coordinate Increment ∆Y (Integer Part) +1AH (Fractional Part) +1CH +1EH +20H +22H +24H +26H Rotation Matrix Parameter A Rotation Matrix Parameter B Rotation Matrix Parameter C de (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) +28H +2AH +2CH +2EH +30H +32H +34H Rotation Matrix Parameter D Rotation Matrix Parameter E Rotation Matrix Parameter F nfi (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) Co Viewpoint Coordinate Px +36H Viewpoint Coordinate Py (Integer Part) +38H Viewpoint Coordinate Pz (Integer Part) +3AH This data is ignored +3CH Center Point Coordinate Cx (Integer Part) +3EH Center Point Coordinate Cy (Integer Part) +40H Center Point Coordinate Cz (Integer Part) +42H This data is ignored +44H Horizontal Shift Mx (Integer Part) +46H (Fractional Part) GA +48H +4AH +4CH +4EH +50H +52H +54H Horizontal Shift My Scaling Coefficient kx Scaling Coefficient ky Coefficient Table Start Address KAst (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) +56H (Fractional Part) SE +58H Coefficient Table Vertical Address Increment ∆KAst (Integer Part) +5AH (Fractional Part) +5CH Coefficient Table Horiz. Address Increment ∆KAx (Integer Part) +5EH (Fractional Part) Figure 6.3 Rotation parameter table 156 When storing two sets of tables of rotation parameter A and rotation parameter B, store the rotation parameter A from the lead address of the rotation parameter table, rotation parameters A and B. nti then enter the 20H part of invalid data and store tables of rotation parameter B. The rotation parameter table does not always have to store two sets, but can store only the tables needed. Figure 6.4 shows the method of storing two sets of tables from Rot ation Para met er A To p Addr ess al +00H Rotat ion Par am et er A Ta bl e +5E H +60 H +7E H +80 H de The da ta in this ar ea is not used as rot ation pa ra met er nfi +DE H +EOH Rotat ion Par am et er B Ta bl e Co Figure 6.4 How to store to the rotation parameter table VRAM Rotation Parameter Read Control Register The rotation parameter read control register is a write-only 16 bit register that indi- cates whether to read Xst, Yst, and KAst in each line, and is at address 1800B2H. Because the value is cleared to 0, it must be set after power on or reset. GA RPRCTL 1800B2H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 RBKASTRE RBYSTRE 2 9 1 RAKASTRE RAYSTRE 8 RBXSTRE 0 RAXSTRE SE ST-58-R2 157 Parameter read enable bit (RAXSTRE, RBXSTRE, RAYSTRE, RBYSTRE, RAKASTRE, RBKASTRE) Designates the coefficient table start address KAst and TV screen start coordinates Xst and Yst, and whether to read from the rotation parameter table in that line. RAXSTRE RBXSTRE RAYSTRE RBYSTRE RAKASTRE RBKASTRE 1800B2H 1800B2H 1800B2H 1800B2H 1800B2H 1800B2H Bit 0 Bit 8 Bit 1 Bit 9 Bit 2 Bit 10 nti For Xst of Rotation Parameter A For Xst of Rotation Parameter B al For Yst of Rotation Parameter A For Yst of Rotation Parameter B For KAst of Rotation Parameter A For KAst of Rotation Parameter B RxSTRE Process 0 Selected parameters are not read for that line 1 Selected parameters are read for that line each 1 line, this bit must be set to 1 for each line. de Note: AX, BX, AY, BY, AKA, or BKA is entered in bit name for x. If this bit is 1, selected parameters are read when the next rotation parameters are read. At the same time, this bit is cleared to 0. Therefore, to read parameters for Rotation Parameter Table Address Register nfi The rotation parameter table address register is a write-only 16-bit register that selects the lead address of the rotation parameter table, and is at address 1800BCH to 1800BEH. Because the value is cleared to 0, it must be set after power on or reset. RPTAU 1800BCH 15 ~ 7 ~ 15 14 ~ 6 ~ 14 Co 13 13 ~ 5 ~ 12 ~ 4 ~ 12 11 ~ 3 ~ 11 10 ~ 2 RPTA18 10 9 ~ 1 RPTA17 9 8 ~ 0 RPTA16 8 RPTAL RPTA15 RPTA14 RPTA13 RPTA12 RPTA11 RPTA10 RPTA9 RPTA8 1800BEH 7 6 5 4 3 2 1 0 GA RPTA7 RPTA6 RPTA5 RPTA4 RPTA3 RPTA2 RPTA1 ~ SE 158 Rotation parameters table address bit (RPT A18 to RPTA1) Designates the lead address of rotation parameter tables. nti RPTA18~RPTA16 1800BCH Bit 2~0 RPTA15~RPTA1 1800BEH Bit 15~1 RPTA6 bit is ignored even if data is written. The bit is set at 0 for rotation parameter A, and fixed at 1 for rotation parameter B. al The actual lead address of a rotation parameter table is calculated as shown in the equation below. When the VRAM size is 4 Mbit, the most significant bit of the address is ignored. (Lead address of rotation parameter A) (Lead address of rotation parameter B) de = (rotation parameter table address register value highest 12 bit) X 100H + (rotation parameter table address register value lowest 5 bit) X 4H = (rotation parameter table address register value highest 12 bit) X 100H + (rotation parameter table address register value lowest 5 bit) X 4H + 80H Rotation Read Out of the Frame Buffer nfi For example, when 00170H or 00130H is selected, the lead address of rotation pa- rameter A is 00260H, and the lead address of rotation parameter B is 002E0H. Rotation reading of the frame buffer is executed using the TV screen start coordi- Co nates (Xst, Yst) of rotation parameter A, TV screen vertical coordinate increments (∆Xst, ∆ Yst), and TV screen horizontal coordinate increments (∆X, ∆Y). If the image selected by rotation parameter A in the rotation scroll screen is to be displayed, the entire sprite and rotation scroll screen can be made to rotate identically. If the image selected by rotation parameter B in the rotation scroll screen is to be displayed, the entire sprite and rotation scroll screen can be made to rotate separately. The frame buffer display coordinate value calculates from the TV screen starting coordinate, the display coordinate of the left end of the line calculated in each line GA from the TV screens vertical coordinate increment and horizontal coordinate. The bit will be discarded and calculated from the coordinate range of the frame buffer so that the display coordinate value of the line’s left end is calculated in 20 bits (code+integer10-bit +decimal part 9-bit), and the horizontal coordinate increment in a total of 12 bits (code+integer part 2-bit+decimal part 9-bit). Note: In order to read frame buffer rotation using rotation parameter A, VDP1 TV mode must be set to rotation 16 or rotation 8. For details, please refer to VDP1 user manual. SE ST-58-R2 159 Rotation Rotation parameters Parameter Changetable address bit (RPTA18 to RPTA1) Designates the lead address of rotation parameter tables. RBG0 indicates which of two sets of rotation parameter tables is used, and can change in part the rotation parameter on one screen display. The method of using Mode 2: Uses rotation parameter B nti the rotation parameter can be selected from the four rotation parameter modes below. RPTA6 bit is ignored even if data is written. The bit is set at 0 for rotation parameter A, and Mode 0: Mode 1: fixed at 1 for rotation parameter B. Uses rotation parameter A The actual al lead address of a rotation parameter table is calculated as shown in the Changes the image by coefficient data read from the coefficient table of rotation equation below. parameter A When the VRAM size is 4 Mbit, the most significant bit of the address Mode 3: is ignored. Changes by the rotation parameter window. (Lead address ofthe rotation parameter A) through each rotation parameter table set. Modes 0 and 1 display image obtained = (rotation parameter table address register value highest 12 bit) X 100H Modes 2 and 3 display Set Mode 2 to use=the bit of the coefficient the parameter + (rotation parameters A and B. images within (Lead address of rotation parameter B) coefficient (rotation table control + (rotation table address table parameter parameter one screen ofaddress table rotation table to register 1. The address de registerobtained through value lowest parameter register register value highest value of the value 5 bit) Xrotation most lowest 5 of coefficient data read from the coefficient table displays the image obtained by 4H 12 bit) X the A by setting RAKTE 100H + 80H bit significant bit) X 4H rotation For parameter rameter B asrameter coefficient data Rotation Rotation Mode 3 changes two A when example, an RBG0 used for when A isimage it is 0, 00260H, reading 00170H when rotation Read Out imagesofaccording but or displays is 1. andithe nfi 00130H When lead FrameBBuffer parameter of the the frametobuffer is used the bit is image the set tofread address executed in the obtained selected, the rotation using rotation lead rotation parameter A in each dot, two images can also be changed in each dot, but byaddress coefficient parameter cannot be read in each dot. the TV rotationofpa- dataB is screen start coordi- parameter rotation pa- used for 002E0H. nates window of the rotation window control register. When the window is used as the (∆Xst, transparent process selected displayed entire (Xst, Yst) ∆ Yst), window, by of rotation sprite image as an RBG0 Co rotation and TVthe screen parameter part horizontal parameter and rotation scroll obtained of the screen A in A, the screen can by rotation TV screen that is cutincrements coordinate rotation be madeA. parameter vertical coordinate off and made scroll screen is to ∆Y). If the image (∆X,transpar- be ent displays the image obtained by rotation parameter B; the remaining part isdisplayed, the increments to rotate identically. If the image selected by rotation parameter B in the rotation scroll screen is to be displayed, the entire sprite and rotation scroll screen can be made to rotate separately. The frame buffer display coordinate value calculates from the TV screen starting coordinate, the display coordinate of the left end of the line calculated in each line GA from the TV screens vertical coordinate increment and horizontal coordinate. The bit will be discarded and calculated from the coordinate range of the frame buffer so that the display coordinate value of the line’s left end is calculated in 20 bits (code+integer10-bit +decimal part 9-bit), and the horizontal coordinate increment in a total of 12 bits (code+integer part 2-bit+decimal part 9-bit). SE 160 ST-58-R2 159 An example of image display from above modes 0 to 3 is shown in Figure 6.5. When Rot at ion Param et er Mo de 0 Image ob tai ne d thr ou gh rot at ion par am et erA ntial When Rot at ion Param et er Mo de 1 Image ob tai ne d thr ou gh rot at ion par am et er B Whe n Rotat ion Par am et er Mode 2 de ro tation pa ra me ter B nfi Imag e obt ai ne d thr ou gh Image ob tai ne d throug h ro tat io n par am et er A The MSB=1 pa rt of the coe ffici en t tabl e for rot ation pa ram et er A. The MSB=0 par t of the co ef fici ent tab le for ro tat io n par am eter A. Co Rot ation Para met er Mo de 3: Switche d thr ou gh Rot ation Para me ter Wind ow an d di spl aye d. Ima ge obt ain ed thro ug h ro tat io n par ame ter B Ima ge ob tai ned thr ough rot at ion par am et er A The pa rt cut from the scr een an d mad e tra nsp ar en t in tran spa re nt pr oce ssin g wi ndo w. The pa rt di sp la yed witho ut cut tin g the scre en in tran spa re nt pr oce ssin g wi ndo w. GA Figure 6.5 Rotation parameter change SE ST-58-R2 161 Rotation Parameter Mode Register The rotation parameter mode register is a write-only 16 bit register that controls rotation parameter tables used in RBG0, and is at address 1800B0H. Because the value is cleared to 0, it must be set after power on or reset. RPMD 1800B0H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ nti 10 ~ 2 ~ al 9 ~ 1 RPMD1 8 ~ 0 RPMD0 Rotation parameters mode bit (RPMD1, RPMD0), bits 1 and 0 When displaying RGB0, designates which rotation parameter of A or B will be used. RPMD1 0 0 1 1 RPMD0 0 1 0 1 Mode 0 1 2 3 de Rotation Parameter Rotation Parameter A Rotation Parameter B A screen and B screen are switched via coefficient data read from rotation parameter A coefficient table. A screen and B screen are switched via nfirotation parameter window The value of this bit is always in effect, therefore, be careful in timing reloading. When mode 2 is selected, coefficient data cannot be read to each dot from the coeffi- cient table for rotation parameter B while coefficient data for rotation parameter A is for rotation parameter B. Co being read to each dot. Therefore, the designation is ignored even if a register is designated so that coefficient data is read to each dot from the coefficient table used In mode 3, coefficient data can be read to each dot in both coefficient tables for rotation parameter A and B. Mode 0 must be set when displaying RBG1. GA SE 162 6.4 Coefficient Table Control The rotation scroll screen stores parameters used in calculating display coordinates referred to as “coefficient table.” nti in VRAM or color RAM in a table separate from the rotation parameter table, and can express various images by reading parameters per line or per dot. This table is al The timing required for the coefficient table data, depending on how display coordi- nates are calculated, falls under the following cases: 1. Required per line 2. Required per dot offset register. de When coefficient table data is required per line, the coefficient table must be stored in VRAM. The VRAM address to read the stored coefficient table data is specified via KAst, ∆KAst, and ∆KAx in rotation parameter table and coefficient table address When coefficient table data is required per dot, the coefficient table must be stored in nfi either VRAM or color VRAM. When stored in VRAM, at least 1 bank in RAM control register “rotation data bank selection” must be selected to become coefficient table. The VRAM address to read the stored coefficient table data is specified via KAst, ∆KAst, and ∆KAx in rotation parameter table and coefficient table address offset register. Also, when storing coefficient table in color RAM, it should be stored in the latter half of color RAM (100800H to 100FFFH). The color RAM address to read the Co stored coefficient table data is specified via KAst, ∆KAst, and ∆KAx in rotation parameter table. As for the address to read coefficient table data, only the lower 10 bits in the integer part of the calculated coefficient table address become valid. To select parameters for which the data read from the coefficient table are to be used, the following 4 modes (coefficient data modes) are provided: Mode 0: Used as Scale coefficient kx and ky GA Mode 1: Used as Scale coefficient kx Mode 2: Used as Scale coefficient ky Mode 3: Used as viewpoint coordinate Xp after rotation conversion In mode 0, kx and ky read from the rotation parameter table become invalid; data read from the coefficient table is used as kx and ky. When mode 1 is selected, ky read from the rotation parameter table is used, but data read from the coefficient table is used for kx. SE ST-58-R2 163 When mode 2 is selected, kx read from the rotation parameter table is used, but data read from the coefficient table is used for ky. When mode 3 is selected, X direction viewpoint coordinate Xp, converted rotationally as data read from the rotation parameter table, becomes invalid. Data read from the coefficient table is used for Xp. Line Color Screen Data Coefficient data can be used not only as rotation parameters, but as part of line color ntial screen data. In this case, the highest 4-bit data read from the line color screen table is added to the highest of 7-bit data that is part of coefficient data. Figure 6.6 shows line color screen data using coefficient data. Re ad from Lin e Co lor Scr ee n Li ne Col or Scre en Dat a (11 bit ) de Read from Coe fficie nt Tab le Line Co lor Scr ee n Da ta (7 bit ) nfi Li ne Colo r Scr ee n Data after com po sit io n Co Figure 6.6 Line color screen data using coefficient data When specifying mode 0 for rotation parameter mode, line color screen per rotation parameter A coefficient table is used. When specifying mode 1, line color screen per rotation parameter B coefficient table is used. GA When specifying mode 2, for both rotation parameter A graphics and rotation pa- rameter B graphics, line color screen per rotation parameter A coefficient table is used. When specifying mode 3, for rotation parameter A graphics, line color screen per rotation parameter A coefficient table is used, whereas for rotation parameter B graphics, line color screen per rotation parameter B coefficient table is used. Also, when displaying RBG1, for both RBG0 and RBG1, line color screen per rotation SE parameter A coefficient table is used. 164 Bit Configuration of Coefficient Table Data Either “1-word” or “2-word” can be chosen as the data size on the coefficient table. The data configuration changes depending on this coefficient data size and coeffi- cient data mode. Figure 6.7 shows the bit configuration of coefficient table data. Coe ffici en t Dat a Mod e 0~2 Coe ffici en t Dat a Size : 2 wor ds ntial Tra nsp ar en cy Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0 H 7 bi t line col or scre en da ta Sign 7 bi t integ er par t Bit 15 +2 H Bit 15 14 13 12 Tra nsp ar en cy 14 13 12 11 10 11 Coe ffici en t Dat a Size : 1 wor d 10 9 9 8 8 de 7 6 5 16 bi t fra ct ion al par t 7 6 5 4 4 3 3 2 2 1 1 0 0 +0 H nfi Sign 4 bit int ege r pa rt 10 bi t fra ct ion al pa rt No te: The MS B are si gn -e xpa nd ed by 3 bit s an d the LS B are 0- exp an de d by 6 bi ts to be of equ al to the num ber of bi ts as in the case of 2 wo rd s. Coe ffici ent Dat a Mod e 3 Co Coe ffici ent Dat a Size : 2 wo rds Tr an spa re ncy Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0 H 7 bi t line col or scre en da ta Sign Integ er par t MSB 7 bits Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +2 H Int eg er pa rt LS B 8 bi ts 8 bi t fra ct ion al par t Coe ffici ent Dat a Size : 1 wo rd Tr an spa re ncy GA Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0 H Sign 12 bit int ege r pa rt 2 bit fract iona l pa rt Not e: The MSB ar e sig n- exp an de d by 3 bi ts and the LSB ar e 0-expa nd ed by 6 bits to be of eq ua l to the nu mbe r of bits as in the ca se of 2 wor ds. Figure 6.7 Bit configuration of coefficient table data SE ST-58-R2 165 Coefficient Table Lead Address The coefficient table lead address is obtained from the coefficient table start address (KAst integer part 16-bit) read from the coefficient table address offset register and part 9-bit) are also read from the rotation parameter table. nti rotation parameter table. The coefficient table vertical address increment (∆KAst integer part 9-bit) and coefficient table horizontal address increment (∆KA integer al The address value of the address offset, start address and address increment change according to the data size of the coefficient table. Table 6.3 shows the address value showing the least significant bit of each value. For example, when 4H is 2-word (the least significant bit of integer KAst signifies the expression of the 4H address value), it can be calculated as shown below. Table 6.3 Coefficient Data Size de (Coefficient table start address) = (KAst integer part 16 bit) X 4H Address values shown by the least significant bits of coefficient parameter data of separate coefficient data sizes Address Value Indicated by the LSB Coefficient Table Address KAst, ∆KAst, ∆KAx Integer 2 Words 1 Word Offset Register Value 40000H 20000H Most Significant Bit of Coefficient Data nfi part value 4H 2H Co The most significant bit of coefficient data is usually used as transparent bits; dots that used coefficient data in which this bit is 1 are forced to be transparent dots. However, when rotation parameter mode 2 is selected by RBG0, the most significant bit of data read from the coefficient table used for rotation parameter A is used for switching rotation parameters. When the most significant bit is 0, the designated image is displayed by rotation parameter A. When the most significant bit is 1, the designated image is displayed by rotation parameter B. Here, the most significant bit of coefficient data read from the coefficient table used for rotation parameter B is used as a transparent bit. The most significant bit of coefficient data for RBG1 is GA always used as a transparent bit. Table 6.4 shows image processing by the most significant bit values of coefficient data. SE 166 Table 6.4 Image processing using RBG0 coefficient data MSB value Rotation Rotation MSB Function MSB Value Image Process Parameter Parameter Mode 0 1 A B A B Transparent Not Used Not Used Transparent 0 1 - - 0 Displays image obtained using the coefficient data Forces the dot to be transparent using the coefficient data - - ntial Displays image obtained using the coefficient data 1 Forces the dot to be transparent using the coefficient data A Parameter 0 Displays image obtained using the 2 B Switching Transparent 1 0 1 de coefficient data Invalidates the coefficient data and displays image obtained using rotation parameter B Displays image obtained using the coefficient data Forces the dot to be transparent using the coefficient data 3 A, B RAM Control Register nfi Transparent 0 1 Displays image obtained using the coefficient data Forces the dot to be transparent using the coefficient data RAMCTL Co The RAM control register is a read/write 16-bit register that selects the VRAM bank partition, rotation scroll screen VRAM use, and color RAM mode. After power-on or reset, the value will be cleared and therefore must be set. 18000EH 15 CRKTE 7 14 ~ 6 13 CRMD1 5 12 CRMD0 4 11 ~ 3 10 ~ 2 9 VRBMD 1 8 VRAMD 0 RDBSB11 RDBSB10 RDBSB01 RBBSB00 RDBSA11 RDBSA10 RDBSA01 RBBSA00 0 GA Color RAM Coefficient Table Enable (CRKTE), bit 15. Selects whether to store the coefficient table in the color RAM. CRKTE 1 Function Coefficient table is stored in VRAM Coefficient table is stored in color RAM SE ST-58-R2 167 Color RAM Mode Bit: (CRMD1, CRMD0), bits 13 and 12 Please see color RAM mode in 3.4. When CRKTE is set to 1, please set color RAM mode to 1. Here, the latter half of the color data cannot be stored. nti color RAM (100800H-100FFFH) will be used for coefficient table data, therefore, the VRAM Mode Bit: (VRAMD, VRBMD), bits 9 and 8 Please see VRAM bank partition in 3.2. Rotation Data Bank Select Bit: (RDBSA00-11, RDBSB00-11), bits 7 through 0 al Please see rotation scroll display control in 6.2. When CRKTE is set to 1, VRAM bank 4 may not be selected to be used as coefficient table data RAM. Coefficient Table Control Register de The coefficient table control register is a write-only 16-bit register that controls the coefficient table, and is at address 1800B4H. Because the value is cleared to 0, it must be set after power on or reset. KTCTL 1800B4H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ nfi 12 RBKLCE 4 RAKLCE 11 RBKMD1 3 RAKMD1 10 RBKMD0 2 RAKMD0 9 RBKDBS 1 RAKDBS 8 RBKTE 0 RAKTE RAKLCE Co Coefficient line color enable bit (RAKLCE, RBKLCE) Designates whether to use line color screen data in coefficient data. RBKLCE 1800B4H 1800B4H Bit 4 Bit 12 For Rotation Parameter A For Rotation Parameter B This bit uses the corresponding coefficient table and is effective only when the data size is 2-word. RxKLCE Process GA 0 Line color screen data within coefficient data is not used 1 Line color screen data within coefficient data is used Note: A or B is entered in the bit name for x. SE 168 Coefficient data mode bit: Coefficient mode bit (RAKMD1, RAKMD0, RBKMD1, RBKMD0) Designates what parameters the coefficient data is used as. RAKMD1, RAKMD0 1800B4H Bit 3,2 For Rotation Parameter A RBKMD1, RBKMD0 Because this bit is always in effect, be careful in rewriting timing. RxKMD1 0 0 1 RxKMD0 0 1 0 1800B4H Mode 0 1 2 Bit 11,10 ntial For Rotation Parameter B Coefficient Data Function Use as scale coefficient kx, ky Use as scale coefficient kx Use as scale coefficient ky 1 1 3 Use as viewpoint Xp after rotation conversion Note: A or B is entered in the bit name for x. Coefficient data size bit (RAKDBS, RBKDBS) Designates the size of the coefficient data. RAKDBS RBKDBS 1800B4H 1800B4H de Bit 1 Bit 9 For Rotation Parameter A For Rotation Parameter B This bit is in effect only when the corresponding coefficient table is used. RxKDBS 0 1 nfi Note: A or B is entered in the bit name for x. Coefficient table enable bit (RAKTE, RBKTE) Coefficient Data Size 2 Words 1 Word RAKTE Co Designates whether the coefficient table is used. RBKTE RxKTE 0 1 1800B4H 1800B4H Bit 0 Bit 8 Process For Rotation Parameter A For Rotation Parameter B Do not use coefficient table Use coefficient table Note: A or B is entered in the bit name for x. GA SE ST-58-R2 169 Coefficient Table Address Offset Register Coefficient table address offset register is a write-only 16-bit register that designates the coefficient table lead address offset value, and is at address 1800B6H. Because the value is cleared to 0, it must be set after power on or reset. KTAOF 1800B6H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ nti 10 al 8 RBKTAOS2 RBKTAOS1 RBKTAOS0 2 9 1 0 RAKTAOS2 RAKTAOS1 RAKTAOS0 Coefficient table address offset bit (RAKTAOS2 to RAKTAOS0, RBKTAOS2 to RBKTAOS0) Designates the lead address offset value of the coefficient table stored in the rotation parameter table. RAKTAOS2~RAKTAOS0 RBKTAOS2~RBKTAOS0 1800B6H 1800B6H Bit 2~0 Bit 10~8 de For Rotation Parameter A For Rotation Parameter B These bits are added to the highest coefficient table start address (KAst) read from the rotation parameter table. The actual lead address of the coefficient table changes according to the size of the coefficient data, and is calculated by the expression nored. nfi below. When VRAM size is 4 Mbits, the most significant bit of the address is ig- When the coefficient data size is 2 word: (coefficient table lead address) = (coefficient table address offset register value lowest 2 bits) (coefficient table lead address) Co X 40000H + (KAst integer part 16 bit) X 4H When the coefficient data size is 1 word: = (coefficient table address offset register value 3 bits) X 20000H + (KAst integer part 16 bit) X 2H GA SE 170 Chapter 7 Line Screen ntial de nfi Co GA SE Introduction ..........................................................................172 7.1 Line Color Screen .......................................................172 Line Color Screen Table Address Register .............. 174 7.2 Back Screen ................................................................175 Back Screen Table Address Register ....................... 176 ST-58-R2 171 Introduction There are two line screen surfaces: the line color screen (LNCL) and the back screen (BACK). The line screen designates the color in each line, or the entire screen in a single color. Unlike the scroll screen, the line screen cannot display characters. The line color screen stores the data of each line in VRAM as a line color screen table. If single colored, lead data of the table is used in the entire screen. The line screen is shown in Figure 7.1. Line Screen Table (VRAM) Line Screen ntial Line Screen Data for 1st Line 1st Line Line Screen Data for 2nd Line 2nd Line 3rd Line Line Screen Data for 3rd Line de Note: In the case of single color, the 1st line data is used in the entire screen. Figure 7.1 Line Screen 7.1 Line Color Screen nfi The line color screen is used only for color calculations, and chooses whether to two lines. Co designate the entire screen in a single color, or designate the color for each line. The color RAM address of the color used is stored in VRAM as line color screen data. The line number designated by one line color screen data changes, depending on the interlace setting. The non-interlace and double-density interlace modes can desig- nate the color for each line; the single-density interlace mode can designate for each The line color screen can also be made to rotate if line color screen data is used GA within coefficient data. For more about coefficient data see section “6.4 Coefficient Table Control.” Figure 7.2 shows the configuration of the line color screen table separate of the interlace mode. Figure 7.3 shows the configuration of data on the line color screen table. SE 172 nti Non-interlace and double-density interlace mode Bit 15 Line Color Screen Table (VRAM) 0 +00H 1st Line Color RAM Address +02H 2nd Line Color RAM Address +04H +06H +08H +0AH 3rd Line Color RAM Address 4th Line Color RAM Address 5th Line Color RAM Address 6th Line Color RAM Address al Note: In the case of single color, the first line color RAM Single-density interlace mode de address is used in the entire line color screen. In th case of double-density interlace, line data of odd an even fields are stored together. Bit 15 Line Color Screen Table (VRAM) +00H +02H +04H +06H +08H nfi 1st and 2nd Line Color Ram Address 3rd and 4th Line Color Ram Address 5th and 6th Line Color Ram Address 7th and 8th Line Color Ram Address 9th and 10th Line Color Ram Address 0 Co +0AH 11th and 12th Line Color Ram Address Note: In the case of single color, the first and second line color RAM addresses are used in the entire line color screen. Figure 7.2 Configuration of line color screen table GA Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 11 bit color Ram address 2 1 0 Note: Shaded areas are ignored. Also, when color RAM is in mode 0 or mode 2, the MSB of the address is ignored. SE Figure 7.3 Bit configuration of line color screen table data ST-58-R2 173 Line Color Screen Table Address Register The line color screen table address register is a 32-bit register, and designates the lead address of the table and the color mode of the line color screen. Its addresses are 1800A8H through 1800AAH. Because the value is cleared to 0, it must be set after power on, or reset. LCTAU 1800A8H 15 LCCLMD 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ ~ nti 10 2 LCTA18 al 9 ~ 1 LCTA17 8 ~ 0 LCTA16 15 14 13 12 11 10 9 8 LCTAL LCTA15 LCTA14 LCTA13 LCTA12 LCTA11 LCTA10 LCTA9 LCTA8 1800AAH 7 6 5 4 3 2 1 0 LCCLMD LCTA7 LCTA6 LCTA5 LCTA4 de LCTA3 Line color screen mode bit: LNCL color mode bit (LCCLMD), bit 15 Designates the color mode of the line color screen. LCTA2 Line Color Screen Color LCTA1 LCTA0 0 1 nfiSingle color Select per each line Line color screen table address bit: LNCL table address bit (LCTA18 to LCTA0) Designates the lead address of the line color screen table on the VRAM. LCTA18~LCTA16 1800A8H Bit 2~0 LCTA15~LCTA0 1800AAH Co Bit 15~0 The actual lead VRAM address is calculated by the expression below. When the VRAM size is 4 Mbits, the most significant bit of the address is ignored. (Line color screen table lead address) = (Line color screen table address register value 19 bit) X 2H GA SE 174 7.2 Back Screen The back screen (BACK) is displayed only when other screens aren’t, and chooses on the back screen table. nti whether to designate a single color for the entire screen or for each line. Color data used by a line is designated by each 5-bit RGB. The non-interlace and double-den- sity interlace mode designates the color in each line, but the single-density interlace al mode can designate only in each two lines. Figure 7.4 shows the configuration of the back screen table by the interlace mode. Figure 7.5 shows the configuration of data Non-interlace and double-density interlace mode Bit 15 +00H +02H +04H +06H +08H de Back Screen Table (VRAM) 1st Line RGB Data 2nd Line RGB Data 3rd Line RGB Data 4th Line RGB Data 5th Line RGB Data 0 +0AH nfi 6th Line RGB Data Note: In the case of single color, the first line RGB data is us in the entire line color screen. In the case of double-density interlace, line data of odd and even fiel are stored together. CoSingle-density interlace mode Bit 15 +00H +02H Back Screen Table (VRAM) 1st and 2nd Line RGB Data 3rd and 4th Line RGB Data 0 +04H 5th and 6th Line RGB Data +06H 7th and 8th Line RGB Data GA +08H 9th and 10th Line RGB Data +0AH 11th and 12th Line RGB Data Note: In the case of single color, the first and second line RGB data are used in the entire line color screen. Figure 7.4 Configuration of back screen table SE ST-58-R2 175 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 5 bit Blue Data 5 bit Green Data 5 bit Red Data RGB to make 8 bits. nti Note: Shaded area is ignored. Add 0 bit 3 bits at a time to the lower bits of Figure 7.5 Bit configuration of back screen table data al Back Screen Table Address Register Back screen table address register is a write-only 32-bit registers, and selects the back screen color mode and table lead address. Its addresses are 1800ACH through 1800AEH. Because the value is cleared to 0, it must be set after power on or reset. BKTAU 1800ACH 15 BKCLMD 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ de 11 ~ 3 ~ 10 ~ 2 BKTA18 9 ~ 1 BKTA17 8 ~ 0 BKTA16 BKTAL 1800AEH 15 BKTA15 7 BKTA7 14 BKTA14 6 BKTA6 13 BKTA13 5 BKTA5 nfi 12 BKTA12 4 BKTA4 Back screen color mode bit: BACK color mode bit (BKCLMD), bit 15 11 BKTA11 3 BKTA3 10 BKTA10 2 BKTA2 9 BKTA9 1 BKTA1 8 BKTA8 0 BKTA0 BKCLMD Co Designates color mode of the back screen. 0 1 Back Screen Color Single color Select per each line Back screen table address bit: BACK color table address bit (BKTA18 to BKTA0) Designates the lead address of the back screen table on the VRAM. BKTA18~BKTA16 1800ACH Bit 2~0 GA BKTA 15~BKTA0 1800AEH Bit 15~0 SE 176 The actual lead VRAM address is calculated by the expression below. When the VRAM capacity is 4 Mbits, the most significant bit of the address is ignored. (Back screen table lead address) nti = (Back screen table address register value 19 bit) X 2H al When the back screen color mode bit is set to “single color”, color data selected by the back screen table address bit is used in the entire screen. de nfi Co GA SE ST-58-R2 177 nti (This page is blank in the original Japanese document) al de nfi Co GA SE 178 Chapter 8 Windows ntial de nfi Co GA 8.1 Window Area ......................................................... 180 Normal Rectangular Window ............................. 180 Window Position Register .................................. 181 Normal Line Window .......................................... 184 Line Window Table Address Register ................ 186 SE 8.2 Sprite Window .................................................... 187 Sprite Control Register ....................................... 188 Window Active Area in the Screen ..................... 189 Window Process ................................................... 190 Window Process Register .................................. 193 ST-58-R2 179 8.1 Window Area The scroll IC window has two Normal windows, W0 and W1, and one sprite win- OR logic. nti dow, SW. The Normal window selects start and end coordinates on the TV screen; the sprite window designates the most significant bit value of sprite data written to the frame buffer. Various windows can designate which scroll screen is to be put al into effect, and whether the inside or outside of the area will go into effect. More- over, when more than one window is used, they can be overlapped other by AND or The Normal window selects the Normal rectangular window designated through the horizontal and vertical start and end coordinates, and selects the Normal line window designated through horizontal start and end coordinates in each line. The and not on the scroll screen. de start and end coordinates set the coordinate values on the TV screen in each register, Normal Rectangular Window The normal rectangular window is obtained by selecting the start coordinates in the of the inside. nfi upper left corner in the window position register, and the end coordinates in the lower right corner of the window. The area surrounded by selected coordinates is inside, the rest of area is outside. The border line of the window is considered part If the start coordinate of either the horizontal or vertical direction is larger than the Co end coordinate, then the whole screen is considered an area outside the window. Figure 8.1 shows the Normal rectangular window. Start Point Coordinates TV Screen Start Point Coordinates Window GA Window Boundary Outside Inside End Point Coordinates SE Figure 8.1 Normal rectangular window 180 Window Position Register The window position register is a write-only 16-bit register that selects the horizon- tal and vertical start and end coordinates of the Normal window, and is located from nti addresses 1800C0H through 1800CEH. Because the value is cleared to 0, it must be set after power on or reset. WPSX0 1800C0H 15 ~ 7 14 ~ 6 13 ~ 5 12 ~ 4 11 ~ 3 al 10 ~ 2 9 W0SX9 1 8 W0SX8 0 W0SX7 W0SX6 W0SX5 W0SX4 W0SX3 W0SX2 W0SX1 W0SX0 15 14 13 12 11 10 9 8 WPSY0 ~ ~ ~ ~ ~ ~ ~ W0SY8 1800C2H WPEX0 1800C4H 7 W0SY7 15 ~ 7 6 W0SY6 14 ~ 6 5 W0SY5 13 ~ 5 de 4 W0SY4 12 ~ 4 3 W0SY3 11 ~ 3 2 W0SY2 10 ~ 2 1 W0SY1 9 W0EX9 1 0 W0SY0 8 W0EX8 0 WPEY0 1800C6H W0EX7 15 ~ 7 W0EY7 W0EX6 14 ~ 6 W0EY6 nfi W0EX5 13 ~ 5 W0EY5 W0EX4 12 ~ 4 W0EY4 W0EX3 11 ~ 3 W0EY3 W0EX2 10 ~ 2 W0EY2 W0EX1 9 ~ 1 W0EY1 W0EX0 8 W0EY8 0 W0EY0 WPSX1 1800C8H WPSY1 15 ~ 7 W1SX7 15 ~ Co 14 ~ 6 W1SX6 14 ~ 13 ~ 5 W1SX5 13 ~ 12 ~ 4 W1SX4 12 ~ 11 ~ 3 W1SX3 11 ~ 10 ~ 2 W1SX2 10 ~ 9 W1SX9 1 W1SX1 9 ~ 8 W1SX8 0 W1SX0 8 W1SY8 1800CAH 7 6 5 4 3 2 1 0 W1SY7 W1SY6 W1SY5 W1SY4 W1SY3 W1SY2 W1SY1 W1SY0 GA WPEX1 1800CCH 15 ~ 7 W1EX7 15 14 ~ 6 W1EX6 14 13 ~ 5 W1EX5 13 12 ~ 4 W1EX4 12 11 ~ 3 W1EX3 11 10 ~ 2 W1EX2 10 9 W1EX9 1 W1EX1 9 8 W1EX8 0 W1EX0 8 WPEY1 ~ ~ ~ ~ ~ ~ ~ W1EY8 SE 1800CEH 7 W1EY7 6 W1EY6 5 W1EY5 4 W1EY4 3 W1EY3 2 W1EY2 1 W1EY1 0 W1EY0 ST-58-R2 181 Window position bit (for horizontal coordinates): Window start/end X bit (W0SX9 to W0SX0, W0EX9 to W0EX0, W1SX9 to W1SX0, W1EX9 to W1EX0) Designates the horizontal start and end coordinates. Designated coordinate value is the coordinate value (H counter value) on the TV screen. W0SX9~W0SX0 W0EX9~W0EX0 W1SX9~W1SX0 W1EX9~W1EX0 1800C0H 1800C4H 1800C8H 1800CCH Bit 9~0 Bit 9~0 Bit 9~0 Bit 9~0 nti For W0 start point coordinates For W0 end point coordinates For W1 start point coordinates For W1 end point coordinates The bit configuration of the register changes according to the setting of the graphics mode. For normal graphics, the least significant bit becomes invalid data. Foral exclusive normal graphics, the most significant bit becomes invalid data; moreover, for special high-resolution graphics, the most significant bit becomes invalid data. Since it doesn’t have an HO bit, values are in 2 pixel units. Table 8.1 shows the bit H6 de content of the window position register by graphic mode setting. Table 8.1 Bit content of window position register for horizontal coordinates Graphics Mode Normal WxxX9 WxxX8 WxxX7 WxxX6 WxxX5 WxxX4 WxxX3 WxxX2 WxxX1 WxxX0 H8 H7 H5 H4 H3 H2 H1 H0 Invalid Hi-Res Exclusive Normal Exclusive Hi-Res H9 H8 Invalid H8 Invalid H9 H7 H7 H8 H6 H6 H7 nfi H5 H5 H6 Note: 0S, 0E, 1S, or 1E is entered in bit name for xx. H4 H4 H5 H3 H3 H4 H2 H2 H3 H1 H1 H2 H0 H0 H1 W0SY8~W0SY0 Co Window position bit (for vertical coordinates): Window start/end Y bit (W0SY8 to W0SY0, W0EY8 to W0EY0, W1SY8 to W1SY0, W1EY8 to W1EY0) Designates the vertical start and end coordinates. The designated coordinate value is the coordinate value (V counter value) on the TV screen. W0EY8~W0EY0 1800C2H 1800C6H Bit 8~0 Bit 8~0 For W0 start point coordinates For W0 end point coordinates W1SY8~W1SY0 1800CAH Bit 8~0 For W1 start point coordinates W1EY8~W1EY0 1800CEH Bit 8~0 For W1 end point coordinates GA The bit configuration of the register changes according to the screen mode setting. Single-density interlace of Normal and high-resolution modes designate the V counter value in the respective even-numbered and odd-numbered fields. SE 182 The lowest significant bit is invalid for the double-density interlace of Normal and high-resolution modes. Remaining bits designate the V counter value in various fields. Bit content of the window position register by setting of the screen mode is shown in Table 8.2. Table 8.2 TV Screen (Interlace) Mode Normal, Hi-Res (Non-interlace, Bit content of the window position register used for vertical coordinates al WxxY8 WxxY7 WxxY6 WxxY5 WxxY4 WxxY3 WxxY2 WxxY1 WxxY0 V8 V7 V6 V5 V4 nti V3 V2 V1 V0 Single-Density Interlace) Normal, Hi-Res V7 V6 V5 V4 V3 V2 V1 V0 Invalid (Double-Density Interlace) Exclusive Monitor V8 V7 V6 V5 de Note: 0S, 0E, 1S or 1E is entered in bit name for xx. V4 V3 V2 V1 V0 nfi Co GA SE ST-58-R2 183 Normal Line Window The Normal line window stores the horizontal start and end coordinates of each window line as a table in VRAM, and is obtained by designating the vertical start and end coordinates in the window position register. The area surrounded by se- lected coordinates is inside, the rest of the area is outside. The border line of the window is considered part of the inside. The Normal line window is illustrated in Figure 8.2. The bit configuration of data stored in the line window table of horizontal start and ntial end coordinates is shown in Figure 8.3. Coordinates in each line can be selected in the non-interlace and double-density interlace modes, and in the single-density interlace mode for each two lines. Con- figuration of the Normal line window table is shown in Figure 8.4. de If the start coordinate of either the horizontal or vertical direction is larger than the end coordinate, then the whole screen is considered an area outside the window. Horizontal Start Point Coordinates nfi TV Screen Window Inside Outside Vertical Start Point Coordinates Co Vertical End Point Coordinates Horizontal End Point Coordinates for Each Line Horizontal Start Point Coordinates for Each Line Window Boundary Figure 8.2 Normal line window GA Bit 15 +0H Bit 15 +2H 14 14 13 13 12 12 11 11 10 10 9 9 8 8 7 7 6 6 5 5 4 4 3 3 2 2 1 1 Horizontal Start Point Coordinates (10 bits) Horizontal End Point Coordinates (10 bits) 0 0 SE Note: Shaded areas are ignored Figure 8.3 Bit configuration of Normal line window table data 184 Non-interlace or double-density interlace Bit 15 +00H +02H +04H +06H Line Window Table (VRAM) 1st line horizontal start point coordinates 1st line horizontal end point coordinates 2nd line horizontal start point coordinates 2nd line horizontal end point coordinates ntial 0 +08H 3rd line horizontal start point coordinates +0AH 3rd line horizontal end point coordinates Note: In the case of double-density interlace, store line data of Single-density interlace Bit 15 +00H de both even and odd fields. Line Window Table (VRAM) 1st & 2nd line horizontal start point coordinates 0 +02H +04H +06H +08H nfi 1st & 2nd line horizontal end point coordinates 3rd & 4th line horizontal start point coordinates 3rd & 4th line horizontal end point coordinates 5th & 6th line horizontal start point coordinates +0AH 5th & 6th line horizontal end point coordinates Co Figure 8.4 Configuration of Normal line window table GA SE ST-58-R2 185 Line Window Table Address Register The line window table address register is a write-only 16-bit register that designates whether to make the Normal window the line window, as well as the lead address of that table. It is located from addresses 1800D8H through 1800DEH. Because the value is cleared to 0, it must be set after power on or reset. LWTA0U 1800D8H 15 W0LWE 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ nti 10 ~ 2 al W0LWTA18 9 ~ 1 W0LWTA17 8 ~ 0 W0LWTA16 15 14 13 12 11 10 9 8 LWTA0L W0LWTA15 W0LWTA14 W0LWTA13 W0LWTA12 W0LWTA11 W0LWTA10 W0LWTA9 W0LWTA8 1800DAH LWTA1U 1800DCH 7 7 ~ 6 W0LWTA7 W0LWTA6 W0LWTA5 W0LWTA4 W0LWTA3 W0LWTA2 W0LWTA1 15 W1LWE 14 ~ 6 ~ 13 ~ 5 ~ 5 12 ~ 4 ~ 4 de ~ 3 ~ 3 11 2 10 ~ 2 W1LWTA18 1 9 ~ 1 W1LWTA17 0 ~ 8 ~ 0 W1LWTA16 LWTA1L 1800DEH 15 W1LWTA15 7 14 W1LWTA14 6 13 W1LWTA13 5 nfi 12 W1LWTA12 4 11 W1LWTA11 3 W1LWTA7 W1LWTA6 W1LWTA5 W1LWTA4 W1LWTA3 W1LWTA2 W1LWTA1 10 W1LWTA10 2 9 W1LWTA9 1 8 W1LWTA8 0 ~ W0LWE Co Line window enable bit (W0LWE, W1LWE) Designates whether to make the Normal window a line window. W1LWE WxLWE 1800D8H 1800DCH Bit 15 Bit 15 Process For W0 For W1 0 Does not process Normal Window to Line Window 1 Processes Normal Window to Line Window GA Note: 0 or 1 is entered in bit name for x. When this bit is “1”, the line window table must be stored in VRAM. SE 186 Line window table address bit (W0LWTA18 to W0LWTA1, W1LWTA18 to W1LWTA1) Designates the lead address of the line window table in VRAM. W0LWTA18~W0LWTA16 W0LWTA15~W0LWTA1 W1LWTA18~W1LWTA16 W1LWTA15~W1LWTA1 1800D8H 1800DAH 1800DCH 1800DEH nti Bit 2~0 Bit 15~1 Bit 2~0 Bit 15~1 al For W0 For W0 For W1 For W1 The actual lead address is calculated by the expression below. The most significant bit of the address is ignored when VRAM is 4 Mbits. (Lead address of the line window table) = (Line window table address register value 18 bits) X 4H Sprite Window de The sprite window is obtained by selecting the most significant bit of data when all frame buffer data of the sprite is palette format data and sprite types are 2 through 7. The most significant single bit is inside, and the rest of the area is outside. For more about sprite types see “Sprite types” in section “9.1 Sprite Data.” Figure 8.5 shows a sprite window. 1 1 0 1 1 1 Frame Buffer MSB 0 0 0 0 nfi 0 1 1 1 1 1 TV Screen Window Co 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 Outside Inside Figure 8.5 Sprite Window GA SE ST-58-R2 187 Sprite Control Register The sprite control register controls sprites. This is a write-only 16-bit register that is at address 1800E0H. Because the value is cleared to 0, it must be set after power on or reset. SPCTL 1800E0H 15 ~ 7 ~ 14 ~ 6 ~ 13 12 SPCCCS1 SPCCCS0 5 4 11 ~ 3 10 nti SPCCN2 SPCCN1 SPCCN0 2 9 1 al 8 0 SPCLMD SPWINEN SPTYPE3 SPTYPE2 SPTYPE1 SPTYPE0 Sprite color calculation condition bit (SPCCCS1, SPCCCS0) See “9.2 Priority and Color Calculation” See “9.2 Priority and Color Calculation” de Sprite color calculation condition number bit (SPCCN2 to SPCCN0) Sprite color mode bit (SPCLMD) See “9.1 Sprite Data” Sprite window enable bit: SW enable bit (SPWINEN), bit 4 SPWINEN nfi Designates whether to use the sprite window SW. 0 1 Process Does not use sprite window Uses sprite window Co This bit is only effective when the sprite color mode is mode 0, and for only sprites 2 to 7. WHen this bit is “1”, the most significant bit of the sprite frame buffer is used as the bit for the sprite window. As a result, MSB shadow can no longer be used. For more about shadows see “14.1 Shadow Process.” Do not set this bit to 1, when setting SPCLMD bit to 1. Sprite type bit (SPTYPE3 to SPTYPE0) See “9.1 Sprite Data” GA SE 188 Window’s Active Area for the Screen Normal and sprite windows can designate whether to use a window in each scroll screen. The window being used can select inside or outside, in each window, as well AND or OR logic. nti as perform color calculation and transparent processes in active areas. When using multiple windows, the method of overlap can be selected from AND or OR logic. Figure 8.6 shows the active area when normal and sprite windows are overlaid by TV Screen TV Screen alTV Screen Inside Outside Outside Outside Normal Window (W0) Inside Normal Window (W1) de Inside Normal Window (SW) W0 and SW overlap •AND nfi W0: Outside the area is valid W1: Not used SW: Inside the area W1 and SW overlap •OR W0: Not Used W1: Inside the area is valid SW: Inside the area Co is valid Valid Area Figure 8.6 Active area of window is valid Valid Area GA SE ST-58-R2 189 8.2 Window Process The three window processes are: 1. Transparency process window 2. Rotation parameter window 3. Color calculation window ntial The transparency process window forces the selected window effective area to be transparent, and can be used in each screen. When displaying the RBG0 screen, the rotation parameter window designates the area displaying the image obtained by rotation parameter A, and designates which de image obtained by rotation parameter B is displayed. Images obtained by rotation parameter B are displayed in the active area of the designated window; images obtained by rotation parameter A are displayed outside the window’s active area. The color calculation window is a window in which color calculation in the active area of the designated window is not performed, and is effective for screens using the color calculation function. nfi Co GA SE 190 Window process is shown in Figure 8.7. Transparency Processing Window Transparent ABCDEFGHIJKLMNOPQ RSTUVWXYZABCDEFGH IJKLMNOPQRSTUVWXY ZABCDEFGHIJKLMNOP QRSTUVWXYZABCDEFG HIJKLMNOPQRSTUVWX ntial Screen A Screen B ABCDEFGHIJKLMNOPQ RSTUVWXYZABCDEFGH IJKLMNOPQRSTUVWXY ZABCDEFGHIJKLMNOP QRSTUVWXYZABCDEFG HIJKLMNOPQRSTUVWX ABCDEFGHIJKLMNOPQ de Window Enabled Area nfi RSTUVWXYZABCDEFGH IJKLMNOPQRSTUVWXY ZABCDEFGHIJKLMNOP QRSTUVWXYZABCDEFG HIJKLMNOPQRSTUVWX Display Image Screen A Transparency Processing Window Co Rotation Parameter Window Image acquired via rotation parameter A Image acquired via rotation parameter B GA Window Enabled Area Rotation Parameter Window Image A Image B Display Image SE Figure 8.7 Window Process ST-58-R2 191 Color Calculation Window Transparent Screen that uses Color Calculation Function ntial de Window Enabled Area Color Calculation Window Display Image nfi Area that does not calculate color Figure 8.7 Co Window Process (continued) GA SE 192 Window Control Register Window control register designates the method for using windows in each screen, and is a write-only 16-bit register that is located from addresses 1800D0H through 1800D6H. Because the value is cleared to 0, it must be set after power on or reset. WCTLA 1800D0H 15 N1LOG 7 N0LOG 14 ~ 6 ~ 13 N1SWE 5 N0SWE 12 N1SWA 4 N0SWA nti 11 3 al N1W1E N0W1E 10 N1W1A 2 N0W1A 9 N1W0E 1 N0W0E 8 N1W0A 0 N0W0A 15 14 13 12 11 10 9 8 WCTLB N3LOG ~ N3SWE N3SWA N3W1E N3W1A N3W0E N3W0A 1800D2H 7 6 5 4 3 2 1 0 N2LOG ~ N2SWE N2SWA N2W1E N2W1A N2W0E N2W0A WCTLC 1800D4H 15 SPLOG 7 R0LOG 14 6 ~ ~ 13 SPSWE 5 R0SWE de 12 SPSWA 4 R0SWA 11 SPW1E 3 R0W1E 10 SPW1A 2 R0W1A 9 SPW0E 1 R0W0E 8 SPW0A 0 R0W0A WCTLD 1800D6H 15 CCLOG 7 RPLOG 14 6 ~ ~ nfi 13 CCSWE 5 ~ 12 CCSWA 4 ~ 11 CCW1E 3 RPW1E 10 CCW1A 2 RPW1A 9 CCW0E 1 RPW0E Window logic bit: Logic bit (N0LOG, N1LOG, N2LOG, N3LOG, R0LOG, SPLOG, RPLOG, CCLOG) 8 CCW0A 0 RPW0A Co Designates the method of overlapping windows used in each screen. N0LOG N1LOG N2LOG N3LOG R0LOG SPLOG 1800D0H 1800D0H 1800D2H 1800D2H 1800D4H 1800D4H Bit 7 Bit 15 Bit 7 Bit 15 Bit 7 Bit 15 Transparent Process Window for NBG0 (or RBG1) Transparent Process Window for NBG1 (or EXBG) Transparent Process Window for NBG2 Transparent Process Window for NBG3 Transparent Process Window for RBG0 Transparent Process Window for Sprite RPLOG 1800D6H Bit 7 For Rotation Parameter Window CCLOG 1800D6H Bit 15 For Color Calculation Window GA SE ST-58-R2 193 xxLOG Overlaid Logic 0 OR 1 AND Note: N0, N1, N2, N3, R0, SP, RP or CC is entered in bit name for xx. ntial When W0, W1, and SW window enable bits are all 0, with this bit set to 0, the whole screen will be window disabled area, and with this bit set to 1, the whole screen will become window enabled area. Window enable bit (for W0): W0 enable bit (N0W0E, N1W0E, N2W0E, N3W0E, R0W0E, SPW0E, RPW0E, CCW0E) Designates whether to use the Normal window W0 in each screen. N0W0E N1W0E N2W0E N3W0E R0W0E SPW0E RPW0E 1800D0H 1800D0H 1800D2H 1800D2H 1800D4H 1800D4H 1800D6H Bit 1 Bit 9 Bit 1 Bit 9 Bit 1 Bit 9 Bit 1 de Transparent Process Window for NBG0 (or RBG1) Transparent Process Window for NBG1 (or EXBG) Transparent Process Window for NBG2 Transparent Process Window for NBG3 Transparent Process Window for RBG0 Transparent Process Window for Sprite For Rotation Parameter Window CCW0E xxW0E 0 1 1800D6H Bit 9 nfi For Color Calculation Window Process Does not use W0 window Uses W0 window RPW1E, CCW1E) Co Note: N0, N1, N2, N3, R0, SP, RP, or CC is entered in bit name for xx. Window enable bit (for W1): W1 enable bit (N0W1E, N1W1E, N2W1E, N3W1E, R0W1E, SPW1E, Designates whether to use the Normal window W1 in each screen. GA SE 194 N0W1E 1800D0H Bit 3 Transparent Process Window for NBG0 (or RBG1) N1W1E 1800D0H Bit 11 Transparent Process Window for NBG1 (or EXBG) N2W1E 1800D2H Bit 3 Transparent Process Window for NBG2 N3W1E R0W1E SPW1E RPW1E CCW1E xxW1E 0 1800D2H 1800D4H 1800D4H 1800D6H 1800D6H Bit 11 Bit 3 Bit 11 Bit 3 Bit 11 nti Transparent Process Window for NBG3 Transparent Process Window for RBG0 Transparent Process Window for Sprite For Rotation Parameter Window al For Color Calculation Window Process Does not use W1 window 1 Uses W1 window Note: N0, N1, N2, N3, R0, SP, RP, or CC is entered in bit name for xx. SPSWE, CCSWE) de Window enable bit (for SW): SW enable bit (N0SWE, N1SWE, N2SWE, N3SWE, R0SWE, Designates whether to use the sprite window SW in each screen. N0SWE N1SWE N2SWE 1800D0H 1800D0H 1800D2H Bit 5 Bit 13 Bit 5 Transparent Process Window for NBG0 (or RBG1) Transparent Process Window for NBG1 (or EXBG) Transparent Process Window for NBG2 N3SWE R0SWE SPSWE CCSWE xxSWE 0 1800D2H 1800D4H 1800D4H 1800D6H nfi Bit 13 Bit 5 Bit 13 Bit 13 Transparent Process Window for NBG3 Transparent Process Window for RBG0 Transparent Process Window for Sprite For Color Calculation Window Process Does not use SW window 1 Note: Co Uses SW window N0, N1, N2, N3, R0, SP, or CC is entered in bit name for xx. When using the sprite window, set the sprite window enable bit (SPWINEN) of the sprite control register to 1. Window area bit (for W0): W0 area bit (N0W0A, N1W0A, N2W0A, N3W0A, R0W0A, SPW0A, RPW0A, CCW0A) GA Designates the valid area of the Normal window W0 used in each screen. SE ST-58-R2 195 N0W0A 1800D0H Bit 0 Transparent Process Window for NBG0 (or RBG1) N1W0A 1800D0H Bit 8 Transparent Process Window for NBG1 (or EXBG) N2W0A 1800D2H Bit 0 Transparent Process Window for NBG2 N3W0A R0W0A SPW0A RPW0A CCW0A xxW0A 0 1800D2H 1800D4H 1800D4H 1800D6H 1800D6H Bit 8 Bit 0 Bit 8 Bit 0 Bit 8 Transparent Process Window for NBG3 For Rotation Parameter Window For Color Calculation Window nti Transparent Process Window for RBG0 Transparent Process Window for Sprite Process al Enables the inside of W0 window 1 Enables the outside of W0 window Note: N0, N1, N2, N3, R0, SP, RP, or CC is entered in bit name for xx. RPW1A, CCW1A) de Window area bit (for W1): W1 area bit (N0W1A, N1W1A, N2W1A, N3W1A, R0W1A, SPW1A, Designates the valid area of the Normal window W1 used in each screen. N0W1A N1W1A N2W1A 1800D0H 1800D0H 1800D2H Bit 2 Bit 10 Bit 2 Transparent Process Window for NBG0 (or RBG1) Transparent Process Window for NBG1 (or EXBG) Transparent Process Window for NBG2 N3W1A R0W1A SPW1A RPW1A CCW1A xxW1A 1800D2H 1800D4H 1800D4H 1800D6H 1800D6H Bit 10 Bit 2 Bit 10 Bit 2 Bit 10 nfi Transparent Process Window for NBG3 Transparent Process Window for RBG0 Transparent Process Window for Sprite For Rotation Parameter Window For Color Calculation Window Process 0 1 Co Enables the inside of W1 window Enables the outside of W1 window Note: N0, N1, N2, N3, R0, SP, RP, or CC is entered in bit name for xx. Window area bit (for SW): SW area bit (N0SWA, N1SWA, N2SWA, N3SWA, R0SWA, SPSWA, CCSWA) Designates the valid area of the sprite window SW used in each screen. GA SE 196 N0SWA 1800D0H Bit 4 Transparent Process Window for NBG0 (or RBG1) N1SWA 1800D0H Bit 12 Transparent Process Window for NBG1 (or EXBG) N2SWA 1800D2H Bit 4 Transparent Process Window for NBG2 nti N3SWA 1800D2H Bit 12 Transparent Process Window for NBG3 R0SWA 1800D4H Bit 4 Transparent Process Window for RBG0 SPSWA 1800D4H Bit 12 Transparent Process Window for Sprite CCSWA 1800D6H Bit 12 For Color Calculation Window xxSWA 0 1 Process al Enables the inside of SW window Enables the outside of SW window Note: N0, N1, N2, N3, R0, SP or CC is entered in bit name for xx. de nfi Co GA SE ST-58-R2 197 nti (This page was blank in the original Japanese document) al de nfi Co GA SE 198 Chapter 9 Sprite Data ntial de nfi Co GA 9.1 9.2 Sprite Data ............................................................200 Sprite Types ....................................................... 200 Sprite Color Mode .............................................. 203 Priority and Color Calculation ............................... 204 Priority Number Selection .................................. 204 SE Color Calculation Enable Conditions ................. 205 Color Calculation Ratio Selection ...................... 206 Sprite Control Register ....................................... 207 Priority Number Register .................................... 209 Color Calculation Ratio Registers ...................... 210 ST-58-R2 199 9.1 Sprite Data Sprite Types nti Sprite frame buffer data received from VDP1 may be either 8-bit pixel or 16-bit pixels. When the 16-bit pixel format is read, the data may be either RGB or palette format, but the frame buffer must be either all 8-bit pixel or all 16-bit pixels. al When VDP2 receives palette format sprite data written by VDP1 in the frame buffer, there are eight types of bit configurations for 16 bits per pixel and eight types of bit configurations for 8 bits per pixel, for a total of 16 types. These are called sprite types. Data per one dot consists of dot color data, priority bit, color calculation ratio bit, and shadow bit composed from dot color code and palette number. Each bit enough order in the various bits is regarded as 0. de number changes depending on the sprite type. The value of a bit not having a high Sprite data of RGB format is composed of data of RGB for each 5-bit and color for- mat discriminator bit. Priority bits, color calculation ratio bits, and shadow bits are considered to be 0. are shown in Table 9.1. nfi Sprite data, when 16-bit per pixel, designates types 0 through 7; when 8 bit per pixel, designates types 8 through F. When types C through F are designated, priority bit, color calculation ratio bit, and dot color data bit have a shared bit. The shared bits Table 9.1 Shared Bits Sprite Type Tpye C Type D Type E Type F SP1 - - PR1 and DC7 - CoSP0 PR0 and DC7 PR0 and DC7 PR0 and DC6 - Shared Bits SC1 - - - CC1 and DC7 SC0 - CC0 and DC6 - CC0 and DC6 SP: Priority bit, color RAM address shared bit GA SC: Color calculation ratio bit, color RAM address shared bit PR: Priority bit DC: Dot color data CC: Color calculation ratio bit SE 200 Sprite types are shown in Figure 9.1. • Type 0 Bit 15 • Type 1 Bit 15 14 14 13 13 12 12 11 11 10 10 9 9 8 8 7 7 6 6 nti 5 5 4 al 3 PR1 PR0 CC2 CC1 CC0 DC10 DC9 DC8 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0 4 3 2 2 1 1 0 0 PR2 PR1 PR0 CC1 CC0 DC10 DC9 DC8 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0 • Type 2 Bit 15 • Type 3 Bit 15 SD 14 13 12 11 10 9 de8 7 6 5 4 3 PR0 CC2 CC1 CC0 DC10 DC9 DC8 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0 14 13 12 11 10 9 8 7 6 5 4 3 SD PR1 PR0 CC1 CC0 DC10 DC9 DC8 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0 2 2 1 1 0 0 • Type 4 Bit 15 • Type 5 Bit 15 14 13 12 nfi11 10 9 8 7 6 5 4 3 SD PR1 PR0 CC2 CC1 CC0 DC9 DC8 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0 14 13 12 11 10 9 8 7 6 5 4 3 2 2 1 1 0 0 Co SD PR2 PR1 PR0 CC0 DC10 DC9 DC8 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0 • Type 6 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 SD PR2 PR1 PR0 CC1 CC0 DC9 DC8 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0 • Type 7 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 SD PR2 PR1 PR0 CC2 CC1 CC0 DC8 DC7 DC6 DC5 DC4 DC3 DC2 DC1 DC0 GA SD : For Shadow Bit (or for Sprite Window Bit) PR : For Priority Bit CC : For Color Calculation Ratio Bit DC : Dot Color Data SE Figure 9.1 Sprite types ST-58-R2 201 • Type 8 Bit 15 • Type 9 Bit 15 14 14 13 13 12 12 11 11 10 10 9 9 8 8 7 PR0 DC6 DC5 DC4 DC3 DC2 DC1 DC0 7 6 6 5 5 4 4 3 3 nti 2 2 PR0 CC0 DC5 DC4 DC3 DC2 DC1 DC0 1 al 1 0 0 • Type A Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PR1 PR0 DC5 DC4 DC3 DC2 DC1 DC0 • Type B Bit 15 • Type C Bit 15 14 14 13 13 12 12 11 11 10 10 9 9 8 8 7 6 de 5 4 3 2 CC1 CC0 DC5 DC4 DC3 DC2 DC1 DC0 7 6 5 4 3 2 1 1 0 0 • Type D Bit 15 14 13 12 11 10 9 nfi 8 SP0 DC6 DC5 DC4 DC3 DC2 DC1 DC0 7 6 5 4 3 2 SP0 SC0 DC5 DC4 DC3 DC2 DC1 DC0 1 0 • Type E Bit 15 • Type F Bit 15 14 14 13 13 Co 12 12 11 11 10 10 9 9 8 8 7 6 5 4 3 2 SP1 SP0 DC5 DC4 DC3 DC2 DC1 DC0 7 6 5 4 3 2 SC1 SC0 DC5 DC4 DC3 DC2 DC1 DC0 1 1 0 0 SD : For Shadow Bit (or for Sprite Window Bit) GA PR : For Priority Bit CC : For Color Calculation Ratio Bit DC : Dot Color Data SP : For Priority Bit, Color RAM address shared bits SC : For Color Calculation Ratio Bit, Color RAM address shared bits Note: Shaded areas are ignored. Figure 9.1 Sprite types (continued) SE 202 Sprite Color Mode Sprite character data has a palette and RGB format, the same as the scroll screen. When the bit count per one dot is 16 (bits), all 16-bits composed of bits selected by when data of palette and RGB formats are mixed is shown in Figure 9.2. nti the sprite type can be used when data inside the frame buffer is only the palette format. However, when data of the palette and RGB formats are mixed (because the most significant bit is used to discriminate the color format,) palette format data is al be set to 0 and RGB format set to “1”. Palette format data is then processed with the value of the selected sprite type MSB (priority bit or shadow bit) as 0. Sprite data Palette Bank Format Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RGB Code Format Bit 15 0 1 14 13 12 11 5 Bit Blue Data 15 bits other than dot color data 10 de 9 8 7 6 5 Bit Green Data 5 4 3 2 1 5 Bit Red Data 0 nfi Figure 9.2 Sprite data when palette format and RGB format data are mixed Co GA SE ST-58-R2 203 9.2 Priority and Color Calculation The priority of sprite and scroll screen is selected according to the size of 3-bit value data. nti called the priority number. Sprites can designate a maximum of eight priority num- bers and can select one for each character according to the priority bit within sprite al When using the color calculation function between the sprite and scroll screen, it can be determined whether to perform color calculation by the value of priority number selected by sprite character. Up to eight color calculation ratios can be selected; with one of each character being selected by color calculation ratio in sprite data. Priority Number Selection de Sprite priority number selects one from among eight priority numbers in each sprite character by the priority bit of the selected sprite type. When the priority bit of the selected sprite type is 2 bits or less, bits lower than 2 are read as 0, and a 3-bit with- out a priority number bit are read as 0. When sprite data is in an RGB format, sprite register 0 is selected. The priority number register selected through the value of the priority bit is shown in Table 9.2. nfi Table 9.2 Selection of sprite priority number register For Priority Bits PR2 0 0 PR1 0 0 PR0 0 1 Priority Number Register Selection For Sprite Register 0 (1800F0H bit 2~0) For Sprite Register 1 (1800F0H bit 10~8) 0 0 1 1 1 1 1 1 0 0 1 1 0 1 0 1 0 1 Co For Sprite Register 2 (1800F2H bit 2~0) For Sprite Register 3 (1800F2H bit 10~8) For Sprite Register 4 (1800F4H bit 2~0) For Sprite Register 5 (1800F4H bit 10~8) For Sprite Register 6 (1800F6H bit 2~0) For Sprite Register 7 (1800F6H bit 10~8) GA SE 204 Color Calculation Enable Conditions A sprite not only designates whether to do color calculation by the entire sprite, but can also designate by the value of the priority number selected in each character and conditions that can be selected. nti the value of the most significant bit of color data selected in each dot. There are four al 1. When (priority number) ≤ (color calculation condition number) 2. When (priority number) = (color calculation condition number) 3. When (priority number) ≥ (color calculation condition number) 4. When color data most significant bit is 1 The color calculation condition number is designated in the sprite control register by register is 0. de the value of the priority number selected in each sprite character, and the 3-bit value for comparing size. These conditions are in effect only when the SPCCEN bit of the color calculation control register is 1; color calculation will not be done when the nfi Co GA SE ST-58-R2 205 Color Calculation Ratio Selection The color calculation ratio of sprites select one of eight color calculation ratios in each sprite character by the color calculation ratio bit of the designated sprite type lected. nti data. When two or less bits are used for color calculation ratio of the designated sprite type, the low bit is read as 0. When there is no color calculation ratio bit, 8-bit is also read as 0. When sprite data is in an RGB format, the sprite register 0 is se- al Selection of the color calculation ratio register through the value of the color calcula- tion ratio bit is shown in Table 9.3. Table 9.3 Selection of sprite color calculation ratio register For Color Calculation Ratio Bits Color Calculation Ratio Register Selection CC2 0 0 0 0 1 1 CC1 0 0 1 1 0 0 CC0 0 1 0 1 0 1 de For Sprite Register 0 (180100H bit 4~0) For Sprite Register 1 (180100H bit 12~8) For Sprite Register 2 (180102H bit 4~0) For Sprite Register 3 (180102H bit 12~8) For Sprite Register 4 (180104H bit 4~0) For Sprite Register 5 (180104H bit 12~8) 1 1 1 1 0 1 nfi For Sprite Register 6 (180106H bit 4~0) For Sprite Register 7 (180106H bit 12~8) Co GA SE 206 Sprite Control Register The sprite control register controls sprite data, and is a write-only 16-bit register located at address 1800E0H. Because the value is cleared to 0 after power on or reset, it must be set. SPCTL 1800E0H 15 ~ 7 ~ 14 ~ 6 ~ 13 12 SPCCCS1 SPCCCS0 5 4 11 ~ 3 10 ntial 9 8 SPCCN2 SPCCN1 SPCCN0 2 1 0 SPCLMD SPWINEN SPTYPE3 SPTYPE2 SPTYPE1 SPTYPE0 Sprite color calculation condition bit (SPCCCS1, SPCCCS0), bits 13, 12 Designates the color calculation condition of sprites. SPCCCS 0 1 2 3 SPCCCS1 0 0 1 1 SPCCCS0 0 1 0 1 de Condition (Priority number) ≤ (Color calculation condition number) only (Priority number) = (Color calculation condition number) only (Priority number) ≥ (Color calculation condition number) only Only when Color Data MSB is 1. When the sprite color format is RGB, color calculation is always performed if SPCCCS is set to “3”. nfi Sprite color calculation number bit (SPCCN2 to SPCCN0), bits 10 to 8 Designates the color calculation condition number of sprites. This value is ignored when SPCCCS is set to “3”. SPCLMD Co Sprite color mode bit (SPCLMD), bit 5 Designates the sprite color mode. 0 1 Sprite Color Format Data Sprite data is all in palette format Sprite data is in palette format and RGB format Do not designate a “1” when sprite data are 8-bit pixels. GA SE ST-58-R2 207 Sprite window enable bit (SPWINEN), bit 4 See “8.1 Window Area” Sprite type bit (STYPE3 to STYPE0), bits 3 to 0 Designates the sprite type. STYPE3 0 0 0 0 STYPE2 0 0 0 0 STYPE1 0 0 1 1 STYPE0 0 1 0 1 Type 0 Type 1 Type 2 nti Sprite Data Type Type 3 al 0 1 0 0 Type 4 0 1 0 1 Type 5 0 1 1 0 Type 6 0 1 1 1 Type 7 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 de Type 8 Type 9 Type A Type B Type C Type D Type E Type F designate type 8 to F. nfi When sprite data are 16-bit pixels, designate type 0 to 7; and when 8-bit pixels, Co GA SE 208 Priority Number Register The priority number register designates the priority number, and is a write-only 16- bit register located at addresses 1800F0H through 1800F6H. Because the value is cleared to 0 after power on or reset, it must be set. PRISA 1800F0H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ nti 11 ~ 3 ~ al 10 S1PRIN2 2 S0PRIN2 9 S1PRIN1 1 S0PRIN1 8 S1PRIN0 0 S0PRIN0 15 14 13 12 11 10 9 8 PRISB ~ ~ ~ ~ ~ S3PRIN2 S3PRIN1 S3PRIN0 1800F2H 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ S2PRIN2 S2PRIN1 S2PRIN0 PRISC 1800F4H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ de 12 ~ 4 ~ 11 ~ 3 ~ 10 S5PRIN2 2 S4PRIN2 9 S5PRIN1 1 S4PRIN1 8 S5PRIN0 0 S4PRIN0 PRISD 1800F6H 15 ~ 7 ~ 14 ~ 6 ~ nfi 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 S7PRIN2 2 S6PRIN2 9 S7PRIN1 1 S6PRIN1 8 S7PRIN0 0 S6PRIN0 Sprite priority number bit (for sprite) (S0PRIN2 to S0PRIN0, S1PRIN2 to S1PRIN0, S2PRIN2 to S2PRIN2~S2PRIN0 S3PRIN2~S3PRIN0 Co S2PRIN0, S3PRIN2 to S3PRIN0, S4PRIN2 to S4PRIN0, S5PRIN2 to S5PRIN0, S6PRIN2 to S6PRIN0, S7PRIN2 to S7PRIN0) Designates the sprite priority number. S0PRIN2~S0PRIN0 S1PRIN2~S1PRIN0 1800F0H 1800F0H 1800F2H 1800F2H Bit 2~0 Bit 10~8 Bit 2~0 Bit 10~8 For Sprite Register 0 For Sprite Register 1 For Sprite Register 2 For Sprite Register 3 S4PRIN2~S4PRIN0 1800F4H Bit 2~0 For Sprite Register 4 S5PRIN2~S5PRIN0 1800F4H Bit 10~8 For Sprite Register 5 GA S6PRIN2~S6PRIN0 1800F6H Bit 2~0 For Sprite Register 6 S7PRIN2~S7PRIN0 1800F6H Bit 10~8 For Sprite Register 7 SE ST-58-R2 209 Display priority order increases with the size of the priority number. Sprite charac- ters that use the register set to a priority number value of 0 are treated as transparent and are not displayed. Color Calculation Ratio Registers nti The color calculation ratio registers selects the color calculation ratio, and are write- al only 16-bit registers located at addresses 180100H through 180106H. Because they are cleared to 0 after power on or reset, they must be set. 15 14 13 12 11 10 9 8 CCRSA ~ ~ ~ S1CCRT4 S1CCRT3 S1CCRT2 S1CCRT1 S1CCRT0 180100H 7 6 5 4 3 2 1 0 ~ ~ ~ S0CCRT4 S0CCRT3 S0CCRT2 S0CCRT1 S0CCRT0 CCRSB 180102H 15 7 ~ ~ 15 14 6 ~ ~ 14 13 5 ~ ~ 13 12 4 12 11 3 11 de 10 9 S3CCRT4 S3CCRT3 S3CCRT2 S3CCRT1 S3CCRT0 2 1 8 0 S2CCRT4 S2CCRT3 S2CCRT2 S2CCRT1 S2CCRT0 10 9 8 CCRSC 180104H CCRSD ~ 7 ~ 15 ~ ~ 6 ~ 14 ~ ~ 5 ~ 13 ~ nfi S5CCRT4 S5CCRT3 S5CCRT2 S5CCRT1 S5CCRT0 4 12 3 11 2 S4CCRT4 S4CCRT3 S4CCRT2 S4CCRT1 S4CCRT0 10 1 9 0 8 S7CCRT4 S7CCRT3 S7CCRT2 S7CCRT1 S7CCRT0 180106H 7 ~ 6 ~ Co 5 ~ 4 S6CCRT4 S6CCRT3 S6CCRT2 S6CCRT1 S6CCRT0 Sprite color calculation ratio bit (S0CCRT4 to S0CCRT0, S1CCRT4 to S1CCRT0, S2CCRT4 to S2CCRT0, S3CCRT4 to S3CCRT0, S4CCRT4 to S4CCRT0, S5CCRT4 to S5CCRT0, S6CCRT4 to S6CCRT0, S7CCRT4 to S7CCRT0) 3 2 1 0 Designates the sprite color calculation ratio. The color calculation ratio is for a value 1/32 of RGB various color data. GA SE 210 S0CCRT4~S0CCRT0 180100H Bit 4~0 For Sprite Register 0 S1CCRT4~S1CCRT0 180100H Bit 12~8 For Sprite Register 1 S2CCRT4~S2CCRT0 180102H Bit 4~0 For Sprite Register 2 S3CCRT4~S3CCRT0 S4CCRT4~S4CCRT0 S5CCRT4~S5CCRT0 S6CCRT4~S6CCRT0 S7CCRT4~S7CCRT0 180102H 180104H 180104H 180106H 180106H Bit 12~8 Bit 4~0 Bit 12~8 Bit 4~0 Bit 12~8 nti For Sprite Register 3 For Sprite Register 4 For Sprite Register 5 For Sprite Register 6 al For Sprite Register 7 de nfi Co GA SE ST-58-R2 211 xxCCRT4 xxCCRT3 xxCCRT2 xxCCRT1 xxCCRT0 Color Calculation Ratio Top Image : Second Image 0 0 0 0 0 31:1 0 0 0 0 1 30:2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 0 1 0 1 0 1 0 1 nti 29:3 28:4 27:5 26:6 al 25:7 24:8 23:9 22:10 0 1 0 1 0 21:11 0 1 0 1 1 20:12 0 1 1 0 0 19:13 0 1 1 0 1 18:14 0 0 1 1 1 1 1 1 1 0 0 0 0 0 1 1 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 de 17:15 16:16 15:17 14:18 13:19 12:20 11:21 1 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 0 1 1 0 0 1 1 0 nfi 1 0 1 0 1 0 1 0 10:22 9:23 8:24 7:25 6:26 5:27 4:28 3:29 1 1 1 1 1 1 1 1 1 Co 0 1 1 Note: S0 to S7 are entered in bit name for xx. 1 0 1 2:30 1:31 0:32 This register is in effect only when the CCMD bit of the color calculation control register is 0, and is ignored when “1”. GA SE 212 Chapter 10 Pixels ntial de nfi Co GA Introduction .................................................................... 214 10.1 Palette Format Pixels ........................................... 214 Sprite Dot Pixels ............................................... 214 Scroll Dot Pixels ................................................ 216 Color RAM Address Offset Register ................. 217 10.2 RGB Format Pixels .............................................. 218 SE Sprite Pixels ...................................................... 218 Scroll Pixels ...................................................... 218 10.3 Special Function Code ......................................... 220 Special Function Code Select Register ............ 221 Special Function Code Register ....................... 222 ST-58-R2 213 Introduction When sprites and dot color data of each scroll screen are in a palette format, the of individual red, green and blue values are pixels. nti color RAM address offset register value added to the dot color data (configured from the palette number and dot color code) becomes the color RAM address. Color data of that address is output as color data. In the RGB format, dot color data composed al Scroll screen dot color data in a palette format designates whether to use special priority and special color calculation functions according to the lowest 4-bit color data. 10.1 Palette Format Pixels added to the highest 3-bits. de Palette format pixels are 11 bits wide, and is the color RAM addresses that store pixel data—the value of the color RAM address offset register of the corresponding screen Sprite Dot Pixels nfi Palette format sprite pixels change according to the sprite type that has been desig- nated. When pixels designate sprite types that are 10-bit or lower, missing high- order bits are taken as 0, and the sprite color RAM address offset value is added to the highest 3 bits and is treated as the color RAM address of that dot. When the color RAM mode is set to mode 0 or mode 2, the highest bit of the color RAM ad- dress will be ignored. Co GA SE 214 Palette format sprite pixels are shown in Figure 10.1. The sprite color RAM address is shown in Figure 10.2. •When Sprite Type 0~3, 5 Bit 10 Bit 10 9 9 8 •When Sprite Type 4, 6 8 7 7 6 11 Bit pixel 6 5 5 4 4 nti 3 3 al 2 2 1 1 0 0 0 10 Bit pixel •When Sprite Type 7 Bit 10 0 9 0 •When Sprite Type C~F Bit 10 0 9 0 8 8 0 7 7 de 6 6 5 9 Bit pixel 5 8 Bit pixel 4 4 3 3 2 2 1 1 0 0 0 nfi •When Sprite Type 8 Bit 10 Bit 10 9 0 •When Sprite Type 9~B 9 8 0 8 7 0 7 6 6 5 4 7 Bit pixel 5 4 3 3 2 2 1 1 0 0 Co 0 0 0 0 0 6 Bit pixel Figure 10.1 Palette format sprite dot color data GA Sprite 11 Bit pixel Dot Color Data + Offset Value Color RAM Address Offset Value for Sprite 3 Bit 0 0 0 0 0 0 0 0 Dot Color RAM 11 Bit Color RAM Address Address SE Note: When Color RAM is in mode 0 or mode 2, the MSB of the color RAM address is ignored. Figure 10.2 Sprite Color RAM Address ST-58-R2 215 Scroll Dot Pixels Scroll pixels in a palette format changes according to the designated character color count. The color RAM address offset value corresponding to each surface is added to the highest 3 bits of 11-bit dot color data, and is treated as the color RAM address of that dot. When color RAM mode is set to mode 0 or mode 2, the highest bit of color RAM address will be ignored. Because the line color screen doesn’t have a corresponding color RAM address offset value, the 11-bit value read from line color screen table becomes the color RAM ntial address. Palette format scroll dot color data is shown in Figure 10.3. The scroll screen color RAM address is shown in Figure 10.4. • When Character Color count is 16 Colors Bit 10 • When Character Color count is 256 Colors Bit 10 9 8 9 8 7 7 6 5 7 Bit Palette Number 6 5 4 4 de 3 2 1 0 4 Bit Dot Color Code 3 2 1 0 3 Bit Palette No. nfi 8 Bit Dot Color Code • When Character Color count is 2048 Colors Bit 10 9 8 7 6 5 4 11 Bit Dot Color Code 3 2 1 0 Figure 10.3 Co Palette format scroll dot color data Scroll 11 Bit Dot Color Data GA Dot Color Data + Color RAM Address Offset Value Offset Value For Each 3 Bit 0 0 0 0 0 0 0 0 Scroll Dot Color RAM 11 Bit Color Ram Address Address SE Note: When the color RAM mode is 0 or 2, the color RAM address MSB is ignored. Figure 10.4 Scroll Color RAM Address 216 Color RAM Address Offset Register The color RAM address offset register is a write only 16-bit register that designates nti the sprite and color RAM address offset values corresponding to each scroll screen. It is located at addresses 1800E4H through 1800E7. Because the value is cleared to 0 after power on or reset, you must set it. CRAOFA 1800E4H 15 ~ 7 ~ 14 13 12 N3CAOS2 N3CAOS1 N3CAOS0 6 5 4 N1CAOS2 N1CAOS1 N1CAOS0 11 ~ 3 ~ al 10 2 9 N2CAOS2 N2CAOS1 N2CAOS0 1 8 0 N0CAOS2 N0CAOS1 N0CAOS0 15 14 13 12 11 10 9 8 CRAOFB ~ ~ ~ ~ ~ ~ ~ ~ 1800E6H 7 ~ 6 SPCAOS2 SPCAOS1 SPCAOS0 Color RAM address offset bit (N0CAOS2 to N0CAOS0, N1CAOS2 to N1CAOS0, N2CAOS2 to N2CAOS0, N3CAOS2 to N3CAOS0, R0CAOS2 to R0CAOS0, SPCAOS2 to SPCAOS0) 5 4 de 3 ~ 2 1 0 R0CAOS2 R0CAOS1 R0CAOS0 N2CAOS0~N2CAOS2 N3CAOS0~N3CAOS3 nfi Designates color RAM address offset values with respect to the sprite and each scroll screen. N0CAOS0~N0CAOS2 N1CAOS0~N1CAOS2 1800E4H 1800E4H 1800E4H 1800E4H Bit 2~0 Bit 6~4 Bit 10~8 Bit 14~12 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 R0CAOS0~R0CAOS2 SPCAOS0~SPCAOS2 Co 1800E6H 1800E6H Bit 2~0 Bit 6~4 For RBG0 For Sprite The actual color RAM address offset value is calculated by the expression below. When the color RAM mode is set to mode 0 or mode 2, the highest bit of color RAM address that calculated the color RAM address offset value will be ignored. When color RAM mode is mode 0 or mode 2: GA (color RAM address offset value [= offsetReg << 9] ) = (color RAM address offset register 3-bit value) X 200H When color RAM mode is mode L: (color RAM address offset value [= offsetReg << 10] ) = (color RAM address offset register 3-bit value) X 400H SE ST-58-R2 217 10.2 RGB Format Pixels RGB format dot color data is 15-bit in sprite and 15-bit or 24-bit data, depending on character color count in scroll, and becomes dot color data without going through color RAM. When dot color data is 15-bit, the lowest three bits of each individual is fixed at 0 and used. Sprite Pixels RGB format sprite dot color data is RGB 5-bit data that outputs each of the lowest 3 ntial bits fixed at 0. RGB format sprite dot color data is shown in Figure 10.5. Sprite Dot Color Data Output Blue Data Bit 14 13 12 11 10 5 Bit Blue Data 5 Bit Blue Data 5 Bit Green Data 9 0 0 8 5 Bit Green Data 0 0 0 0 7 de 6 5 4 3 2 5 Bit Red Data 1 0 Output Green Data Output Red Data 5 Bit Red Data nfi 0 0 0 Scroll Pixels Figure 10.5 Co RGB format sprite dot color data RGB format scroll dot color data changes according to the character color count. When 15-bit, the lowest three bits of each individual RGB is fixed at 0 and output. The back screen is output by fixing the lower 3-bit of each RGB at 0, the same as when the character color count of the scroll screen is 32,768 colors. GA SE 218 Scroll dot color data of the RGB format is shown in Figure 10.6. • When Character Color Count is 32768 Colors Scroll Sprite Dot Color Data Bit 14 13 12 11 10 5 Bit Blue Data Output Blue Data 9 8 7 6 nti 5 Bit Green Data 5 Bit Blue Data 5 al 4 0 3 2 1 5 Bit Red Data 0 0 0 Output Green Data 5 Bit Green Data 0 0 0 Scroll Output Red Data • When Character Color Count is 16,770,000 Colors Dot Color Data Bit 23 22 21 20 19 18 8 Bit Blue Data de 5 Bit Red Data 17 16 0 0 0 Output Blue Data Bit 15 14 nfi 13 12 11 10 8 Bit Green Data 8 Bit Blue Data 9 8 7 6 5 4 3 2 8 Bit Red Data 1 0 Co Output Green Data Output Red Data 8 Bit Green Data 8 Bit Red Data Figure 10.6 RGB Format Scroll Dot Color Data GA SE ST-58-R2 219 10.3 Special Function Code The special function, which performs in all scroll screens, has two functions: the special function code registers will be used. nti special priority function, and the special color calculation function. When used in every dot, the dot color code that activates the special function can designate two special function code registers. Also, each scroll screen designates which of the two al The special function code register has two 8-bit registers: special function code A, and special function code B. Each bit corresponds to two dot color code lower 4-bit values using the special function. The dot color code changes the bit number ac- cording to the character color count of each scroll screen. However, each bit of the special function code register will always correspond to the value of the lowest four color format of scroll screen is the palette format. de bits of the dot color code. Moreover, the special function code is used only when the See “11.2 Special Priority Function” and “12.2 Special Color Calculation Function” for using the special function. Figure 10.7 shows the dot color code that corresponds to special function code. Bit 3 nfi • When Character Color Count is 16 Colors 2 1 0 Corresponding 4 bits Bit 7 Co • When Character Color Count is 256 Colors 6 5 4 3 2 1 0 Corresponding 4 bits • When Character Color Count is 2048 Colors Bit 10 9 8 7 6 5 4 3 2 1 0 GA Corresponding 4 bits Figure 10.7 Dot Color Data Corresponding to Special Function Code SE 220 Special Function Code Select Register The special function code select register is a write-only 16-bit register that designates the special function code that activates all scroll screens. It is located at address 180024H. Because the value is cleared to 0 after power on or reset, it must be set. SFSEL 180024H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 R0SFCS nti 11 ~ 3 al N3SFCS 10 ~ 2 N2SFCS 9 ~ 1 N1SFCS 8 ~ 0 N0SFCS Special function code select bit (N0SFCS, N1SFCS, N2SFCS, N3SFCS, R0SFCS) Designates the special function code effecting every scroll screen. N0SFCS N1SFCS N2SFCS N3SFCS R0SFCS 180024H 180024H 180024H 180024H 180024H de Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 For NBG0 (or RBG1) For NBG1 For NBG2 For NBG3 For RBG0 xxSFCS 0 1 nfi Process Enables special function code A Enables special function code B Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. Co GA SE ST-58-R2 221 Special Function Code Register The special function code register is a write-only 16-bit register that designates special function code A and special function code B. It is located at address 180026H. Because the value is cleared to 0 after power on or reset, it must be set. SFCODE 180026H 15 SFCDB7 7 SFCDA7 14 SFCDB6 6 SFCDA6 13 SFCDB5 5 SFCDA5 12 SFCDB4 4 SFCDA4 11 SFCDB3 3 SFCDA3 nti 10 SFCDB2 2 SFCDA2 al 9 SFCDB1 1 SFCDA1 8 SFCDB0 0 SFCDA0 Special function code bit (SFCDA7 to SFCDA0, SFCDB7 to SFCDB0) Designates special function codes A and B. SFCDA7~SFCDA0 SFCDB7~SFCDB0 Bit Name SFCDx0 SFCDx1 SFCDx2 180026H 180026H Dot Color Code Bit 7~0 Bit 15~8 de For Special Function Code A For Special Function Code B When lower 4 bits of dot color code are, 0H or 1H When lower 4 bits of dot color code are, 2H or 3H When lower 4 bits of dot color code are, 4H or 5H SFCDx3 SFCDx4 SFCDx5 SFCDx6 SFCDx7 nfi When lower 4 bits of dot color code are, 6H or 7H When lower 4 bits of dot color code are, 8H or 9H When lower 4 bits of dot color code are, AH or BH When lower 4 bits of dot color code are, CH or DH When lower 4 bits of dot color code are, EH or FH Note: A or B is entered in bit name x. Settings 0 1 Co Process Does not use special functions Uses special functions The special function code is used when mode 2 is designated in the special priority mode registers or when designating mode 2 in the special color calculation mode register. For more information see “11.2 Special Priority Function” or “12.2 Special Color Calculation Function.” GA SE 222 Chapter 11 Priority Function ntial de nfi Co GA Introduction ....................................................................224 11.1 Priority Function ................................................... 224 SE Priority Number ................................................. 224 Priority Number Register .................................. 225 11.2 Special Priority Function ...................................... 227 Special Priority Mode Register ......................... 229 11.3 Insertion of Line Color Screen ............................. 230 Line Color Screen Enable Register .................. 231 ST-58-R2 223 Introduction VDP2 compares the priority number values of sprites and scroll screens and decides selects each character from a maximum of eight values. The priority number of all nti the display priority order from the top three. The priority number of a sprite then scroll screens can also change the value of each dot and character by using the spe- cial priority function. The line color screen can be inserted into the number two position, one below the screen, when the designated screen is at the highest priority. al 11.1 Priority Function de The priority (display priority order) of sprites and scroll screens compares sizes of the values of the screen priority number without transparent dots positioned in the same TV screen coordinates for each dot. The screen priority increases as the value of the priority number increases. The top image is made of the highest priority dots; the second image is made of the second highest dots; and the third image is made of Priority nfi the third highest dots. All sprite and scroll screen dots display the back screen in the transparent position. Figure 11.1 shows the priority function. Number= 6 Transparent Priority Number= 4 Priority Number= 2 Transparent Priority Number= 1 Co Transparent Back Screen Back Screen GA Top Image Figure 11.1 Second Image Priority Function Third Image Priority Number SE The scroll screen has one 3-bit priority number register in each screen. This priority number normally is used in the entire surface, but can change the value of the least significant bit in each dot and character according to the special priority mode. The sprite priority number can select one of eight 3-bit priority number registers for each character. For information about selecting a sprite priority number register see “Priority Number Selection” in section “9.2 Priority and Color Calculation.” 224 Screen priority increases when the value of the priority number increases. When priority numbers are equal, they follow the order shown in Table 11.1. When the value of a priority number is OH, it is read as transparent. Table 11.1 Priority when the priority numbers are equal Priority Highest : : Normal Sprite RBG0 NBG0 When inputting external image data Sprite RBG0 NBG0 Sprite nti When displaying 2 scroll screen RBG0 RBG1 al screens of the rotation When inputting external images per 2 screens of the rotation scroll screen Sprite RBG0 RBG1 : NBG1 EXBG - EXBG : NBG2 NBG2 - - Lowest NBG3 NBG3 - - Priority Number Register de The priority number register designates the priority number. This is a write-only 16- bit register located at addresses 1800F8H to 1800FCH. Because the value is cleared to 0 after power on or reset, it must be set. PRINA 1800F8H 15 ~ 7 ~ 15 14 ~ 6 ~ 14 nfi 13 ~ 5 ~ 13 12 ~ 4 ~ 12 11 ~ 3 ~ 11 10 N1PRIN2 2 N0PRIN2 10 9 N1PRIN1 1 N0PRIN1 9 8 N1PRIN0 0 N0PRIN0 8 PRINB 1800FAH PRIR 1800FCH ~ 7 ~ 15 ~ 7 Co ~ 6 ~ 14 ~ 6 ~ 5 ~ 13 ~ 5 ~ 4 ~ 12 ~ 4 ~ 3 ~ 11 ~ 3 N3PRIN2 2 N2PRIN2 10 ~ 2 N3PRIN1 1 N2PRIN1 9 ~ 1 N3PRIN0 0 N2PRIN0 8 ~ 0 ~ ~ ~ ~ ~ R0PRIN2 R0PRIN1 R0PRIN0 GA SE ST-58-R2 225 Priority number bit (for scroll screen) (N0PRIN2 to N0PRIN0, N1PRIN2 to N1PRIN0, N2PRIN2 to N2PRIN0, N3PRIN2 to N3PRIN0, R0PRIN2 to R0PRIN0) Designates the priority number of each screen scroll. N0PRIN2~N0PRIN0 N1PRIN2~N1PRIN0 N2PRIN2~N2PRIN0 N3PRIN2~N3PRIN0 R0PRIN2~R0PRIN0 1800F8H 1800F8H 1800FAH 1800FAH 1800FCH Bit 2~0 Bit 10~8 Bit 2~0 Bit 10~8 Bit 2~0 ntiFor NBG0 (or RBG1) For NBG1 (or EXBG) al For NBG2 For NBG3 For RBG0 Larger priority numbers are given a higher display priority order. When the value of the priority number is 0, it is treated as transparent and not displayed. For more about priority number register of sprites, see “Priority Number Register” of “9.2 Priority and Color Calculation.” de nfi Co GA SE 226 11.2 Special Priority Function The special priority function changes the least significant bit of the 3-bit priority nti number corresponding to every scroll screen in each character and dot. Using this function to change the priority of a portion of the scroll screen displays one surface as multiple screens. Furthermore, the least significant bit of the priority number al changes only by the special priority function; the highest 2 bits are used with the register values. The special priority function has the following three modes. 1. Designates the least significant bit of the priority number in each screen 2. Designates the least significant bit of the priority number in each character 3. Designates the least significant bit of the priority number in each dot de When designating the least significant bit of the priority number in each screen, the value of the priority number register in each scroll screen is used unchanged. When designating each character, the value of a special priority bit within pattern name data is used as the least significant bit of the priority number. For more infor- mation about special priority bits, see “4.6 Pattern Name Table (Page).” nfi When designating each dot in character patterns designating 1 (the special priority bit within pattern name data), only dots that coincide with the dot color code are designated in the special function code. The least significant bit of the priority number is set to 1, the rest are fixed at 0. Do not set this mode when the color format of scroll screen is RGB. For more about the dot color code see “10.3 Special Function Code.” Co When the 3-bit priority number value obtained by the special priority function is OH, that screen, character, or dots are treated as transparent. Table 11.2 shows the special priority function by mode. GA SE ST-58-R2 227 Table 11.2 Special priority function by mode Special Priority Special Priority Color Format Priority Number LSB Value Mode Selection nti Mode 0 Selected per each Palette Format or RGB Priority number register LSB screen Format value Mode 1 Select per each Palette Format or RGB Value of the special priority bit character Format in the pattern name data Mode 2 Setting not allowed Palette Format When the special priority bit in RGB Format rest become 0. al the pattern name data is equal to one, only the dot coinciding with the dot color code selected for special function code becomes 1, while the Setting Invalid When the display format designates mode 1 or 2 in the scroll screen of the bit map de format, it is not the special priority bit within the pattern name data, but the special priority bit of the bit map palette number register that is used. nfi Co GA SE 228 Special Priority Mode Register The special priority mode register is a write-only 16-bit register that designates the mode of the special priority function corresponding to each scroll screen, and is nti located at address 1800EA. Because the value clears to 0 after power on or reset, it must be set. SFPRMD 1800EAH 15 ~ 7 14 ~ 6 13 ~ 5 12 ~ 4 11 ~ 3 10 ~ 2 9 al 8 R0SPRM1 R0SPRM0 1 0 N3SPRM1 N3SPRM0 N2SPRM1 N2SPRM0 N1SPRM1 N1SPRM0 N0SPRM1 N0SPRM0 Special priority mode bit (N0SPRM1, N0SPRM0, N1SPRM1, N1SPRM0, N2SPRM1, N2SPRM0, N3SPRM1, N3SPRM0, R0SPRM1, R0SPRM0) 1800EAH de Designates the special priority function mode of each screen scroll. N0SPRM1, N0SPRM0 N1SPRM1, N1SPRM0 N2SPRM1, N2SPRM0 N3SPRM1, N3SPRM0 R0SPRM1, R0SPRM0 1800EAH 1800EAH 1800EAH 1800EAH Bit 1,0 Bit 3,2 Bit 5,4 Bit 7,6 Bit 9,8 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 xxSPRM1 0 0 1 1 xxSPRM0 0 1 0 1 Mode nfi Mode 0 Mode 1 Mode 2 - Process Select the priority number LSB per each screen Select the priority number LSB per each character Select the priority number LSB per each dot Selection not allowed Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. Co Do not set mode 2 when the scroll screen color format is the RGB mode. Do not set in EXBG any other mode but 0. Character or dot in which priority number is 0 is considered transparent. GA SE ST-58-R2 229 11.3 Insertion of Line Color Screen The line color screen does not have a priority number register; it forcefully inserts the top image as the second image, and calculates color. Meanwhile, the original second image becomes the new third image, and the old third image becomes the fourth image. Figure 11.2 shows insertion of the line color screen. Priority Number= 6 Priority Number= 4 Priority Number= 2 nti Priority Number= 1 al Transparent Transparent Transparent Screen that forces the insertion of line color screen de Screen that forces the insertion of line color screen nfi Line Color Screen Back Screen Back Screen Back Screen Top Image Co Second Image Third Image Fourth Image Figure 11.2 Line Color Screen Insertion GA SE 230 Line Color Screen Enable Register The line color screen enable register designates whether to insert the line color screen when each screen is a top image. This is a write-only 16-bit register located at address 1800E8H. Because the value is cleared to 0 after power on or reset, you must set it. LNCLEN 1800E8H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 SPLCEN 12 ~ 4 R0LCEN nti 11 ~ 3 N3LCEN al 10 ~ 2 N2LCEN 9 ~ 1 N1LCEN 8 ~ 0 N0LCEN Line color enable bit (N0LCEN, N1LCEN, N2LCEN, N3LCEN, R0LCEN, SPLCEN) Designates whether to insert the line color screen when each screen is a top image. N0LCEN N1LCEN N2LCEN N3LCEN R0LCEN 1800E8H 1800E8H 1800E8H 1800E8H 1800E8H deBit 0 Bit 1 Bit 2 Bit 3 Bit 4 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 SPLCEN xxLCEN 0 1 1800E8H nfi Bit 5 Process For Sprite Does not insert the line color screen when corresponding screen is top image Inserts the line color screen when corresponding screen is top image Note: Co N0, N1, N2, N3, R0, or SP is entered in the bit name for xx. A line color screen is inserted only in the second image section of the screen desig- nated for insertion, thus becoming the top image. Sprites can only be designated in their entirety. To designate each character, they must be controlled by their color calculation ratio value. This register cannot be used at the same time as the grada- tion calculation function. GA SE ST-58-R2 231 nti (This is page was blank in the original Japanese document) al de nfi Co GA SE 232 Chapter 12 Color Calculations ntial de nfi Co GA Introduction ....................................................................234 12.1 Color Calculation Function................................... 234 Normal Color Calculation .................................. 234 SE Extended Color Calculation Function ............... 236 12.2 Gradation Calculation Function ........................... 238 Color Calculation Control Register ................... 240 Color Calculation Ratio Register....................... 243 12.3 Special Color Calculation Function ...................... 245 Special Color Calculation Mode Register ......... 247 ST-58-R2 233 Introduction VDP2 calculates, by a designated ratio, color data of second and top images obtained special color calculation function. nti comparing priorities of sprite and each scroll screen. The sprite and color calcula- tion ratio can select each character from one of eight values. The color calculation enable of every scroll screen can designate each character and dot by using the al With the second and third images at a fixed ratio, the colors of up to four screens can be calculated by doing color calculations in the second image. In addition, distant backgrounds can be shaded causing the gradation calculation function to be en- abled. 12.1 Color Calculation Function de The color calculation function calculates with a ratio designating the top and second images (or three images, the second image, third image, forth image, images calcu- lated at a set ratio) by individual RGB color, and is able to produce an effect of over- shown in Figure 12.1. nfi lapping a group of semi-transparent screens. The color calculation function is Priority Number = 4 Transparent Priority Number = 2 Transparent Co Back Screen GA F igure 12.1 Color calculation function Normal Color Calculation SE There are two types of modes when calculating color by the top and second images: 1. Top and second images add according to the value of the color calculation ratio. 2. Top and second images add by the value unchanged. 234 The value of the color calculation ratio of each screen is designated in the register when using the color calculation mode to add in proportion to the value of color nti calculation ratio. The color calculation ratio of the sprite can designate one register from a maximum of eight for each character; the scroll screen color calculation ratio designates to the register of each screen. For more about sprite color calculation al ratio see “Color Calculation Ratio Register” in “9.2 Priority and Color Calculation.” The color calculation ratio of each screen is designated by 5 bits, and a total of 32 steps: top image : second image = 31 : 1 to 0 : 32 can be selected. There are two kinds of modes for designating the value of that ratio. 1. Designates by the top image 2. Designates by the second image de When designating with the top image, the sprite that becomes the top image or the color calculation ratio value of the scroll screen is used without any relation to the second image screen. When designating with the second image, the color calcula- tion ratio can be changed by the screen of the second image. The sprite, scroll screen nfi values, line color screen, and back screen color calculation ratio values can be used. When using the color calculation mode to add by the value, gradually rewrite from the top image color data from 00H to the original color to create a fade-in effect of the top image over the second image. Be aware that doing so may result in color that is concurrent with fade-in becoming brighter than the original. Addition results mode. Co that exceed FFH are treated as FFH. Figure 12.2 shows the color calculation ratio GA SE ST-58-R2 235 Priority Number = 6 Priority Number = 4 Priority Number = 2 Screen B Transparent nti Back Screen Screen C Screen A Transparent Color Calculation Ratio Color Calculation Ratio Color Calculation Ratio Color Calculation Ratio 16:16 20:12 24:8 28:4 When selecting the top screen image Screen B Back Screen al When selecting the second screen image Screen B Back Screen Screen C Screen A : Screen B =16 : 16 Screen A : Screen C =16 : 16 Screen A : Back =16 : 16 de Screen C Screen A : Screen B = 20 : 12 Screen A : Screen C = 24 : 8 Screen A : Back = 28 : 4 Figure 12.2 nfi Color calculation ratio mode There is no limitation in calculating color when the TV screen mode is the Normal mode. But when the TV screen mode is the high resolution mode or Exclusive moni- tor mode, the color RAM mode and second image color format hav limitations. Table 12.1 shows limitations of the color calculation function. Color RAM Mode Co Table 12.1 Color calculation function when in the high resolution mode or special monitor mode Mode 0 Mode 1 Second Image Color Format Palette format or RGB format Palette format RGB format Color Calculation Function Can be used Cannot be used Can be used Mode 2 Palette format Cannot be used RGB format Can be used GA Extended Color Calculation Function The extended color calculation function makes second image data of the result of the second and third images calculated by a fixed ratio. Calculating the color of the second and top images makes possible three screen color calculation. Inserting a line color screen creates third image data resulting from color calculation of the third and fourth images calculated by a fixed ratio, and makes second image data by adding the third image and line color data calculated by a fixed ratio. Therefore, four SE screen color calculation is possible. The extended color calculation function can be used only when in the TV screen mode is the Normal mode. 236 When performing extended color calculation, whether to add the third and fourth images complies with the screen color calculation enable bit of the third image screen, and whether to add the second and third images complies with the color calculation enable bit of the second image screen. nti When the extended color calculation function is used, the extended color calculation al ratio changes according to the color RAM mode, the line color screen insertion, the color calculation enable bit value of second and third images and color format, and the color format of the fourth image. Figure 12.3 shows the extended color calculation function; Table 12.2 shows the extended color calculation ratios. Normal Case When second image screen color calculation enable bit =0 When second image screen color calculation enable bit =1 de When inserting line color screen When line color calculation enable bit =1, third image screen color calculation When line color calculation enable bit =1, third image screen color calculation Second image after expanded color calculation color nfi Second image after expanded calculation enable bit =0 Second image after expanded color calculation enable bit =1 Second image after expanded color calculation Second image Co Second Image + Line Color Screen + Line Color Screen + Third image Third image Third image GA + Fourth Image SE Figure 12.3 Extended Color Calculation Function ST-58-R2 237 Table 12.2 Extended Color Calculation Ratio Color Line Color Color Format Color Calculation Extended Color RAM Screen Enable Bit Value Calculation Ratio nti Mode 2nd Image 3rd Image 4th Image 2nd Image 3rd Image 2nd:3rd:4th (Image) Does not Palette or Palette or - 0 - 4:0:0 Mode Insert RGB format RGB format 1 - 2:2:0 al 0 Palette Palette 0 0 or 1 4:0:0 Inserts - or RGB or RGB 1 0 2:2:0 format format 1 1 2:1:0 Does not Palette Palette - 0 or 1 - 4:0:0 Insert or RGB format format RGB - 0 - 4:0:0 Mode format 1 - 2:2:0 1 Palette Palette or 0 or 1 0 or 1 4:0:0 or format RGB format Mode 2 Note: Inserts - RGB format Palette format RGB format 0 1 0 1 1de 0 or 1 0 or 1 0 or 1 0 1 4:0:0 2:2:0 4:0:0 2:2:0 2:1:1 The extended color calculation function cannot be used when the TV screen mode in is the high-resolution or Exclusive monitor mode. When inserting the line color screen, the color 12.2 Gradation Calculation Function nfi format of the second image becomes the palette format. The extended color calculation ratio is for a value that is 1/4 times the individual RGB data. below. Co The gradation calculation function calculates the horizontal color data of the desig- nated one screen by a fixed ratio, and can create a gradation effect of the distant background. This function can only be used when the TV screen mode is the Nor- mal mode, and the color RAM mode is mode 0. Gradation Calculation adds color data of a designated screen for values 1/4 times that of individual RGB by the ratio (2 dots left display coordinates : (1 dot left display coordinates : (display coordinates = 1:1:2 GA color data) color data) color data) Here, the added results of the area in which the designated screen becomes the top or second images is forced to be the second image. By calculating color of the sec- ond and top images, it is possible to display pictures in which gradation calculations have been done. The second image of the area, in which the gradation calculation designated screen is not a top or second image, becomes the image determined by normal priority. SE 238 Screens using gradation calculation have no transparent dots. If gradation calcula- tion is performed for screens having transparent dots, correct calculation cannot be done by that boundary. If the gradation calculation function is used, yit is not pos- Priority number = 6 nti sible to insert the line color screen. In addition, the extended color calculation func- tion can no longer be used. Figure 12.4 shows the gradation calculation function. Priority number = 4 al Priority number = 2 transparent transparent Screen A Top Image Screen B Screen C de Screen C Screen designated to be shaded Second Image Back Screen ScreenB Screen A nfi ScreenC Screen B The area in screen C that is the top image or second image is forced to switch to shaded screen C Co Second Image Shaded Screen C Screen B Color Operation Color Function used in Screen C Display Image GA Shaded Screen C ScreenB Screen A Figure 12.4 Gradation Calculation Function SE ST-58-R2 239 Color Calculation Control Register The color calculation control register is a write-only 16-bit register that controls color calculation, and is located at address 1800ECH. Because the value is cleared to 0 after power on or reset, the value must be set. 1800ECH 15 BOKEN 7 ~ 14 BOKN2 6 SPCCEN 13 BOKN1 5 LCCCEN 12 BOKN0 4 R0CCEN 11 ~ 3 N3CCEN nti 10 EXCCEN 2 al N2CCEN 9 CCRTMD 1 N1CCEN 8 CCMD 0 N0CCEN Gradation enable bit (BOKEN), bit 15 Determines whether to use the gradation function. BOKEN Process 0 1 de Do not use gradation calculation function Use gradation calculation function If this bit is 1, the extended color calculation function can no longer be used. The gradation calculation function can only be used when the TV screen mode is the Normal mode, and the color RAM mode is mode 0. nfi Gradation screen number bit: Gradation number bit (BOKN2 to BOKN0), bits 14 to 12 Designates the screen using the gradation (shading) calculation function. BOKN2 0 0 0 BOKN1 0 0 1 BOKN0 0 1 0 Screen Using Gradation Calculation Function Sprite RBG0 NBG0 or RBG1 0 1 1 1 1 1 0 0 1 1 Co 1 0 1 0 1 Invalid NBG1 or EXBG NBG2 NBG3 Invalid Extended color calculation enable bit (EXCCEN), bit 10 Determines whether to use the extended color calculation function. GA SE 240 EXCCEN Process 0 Do not use extended color calculation 1 Use extended color calculation mode. nti The above calculation function cannot be used at the same time as the gradation calculation function. When the BOKEN bit is 1, this bit is ignored. The extended color calculation function can only be used when in the TV screen and Normal al modes, and cannot be used when in the high-resolution mode or Exclusive monitor Color calculation ratio mode bit (CCRTMD), bit 9 Designates the color calculation ratio mode. CCRTMD Mode Process 0 1 0 1 de For color calculation ratio, select per top screen side For color calculation ratio, select per second screen side The top image always designates whether to perform normal color calculation. Color calculation mode bit (CCMD), bit 8 Designates the color calculation mode. CCMD 0 1 Mode 0 1 nfi Process Add according to the color calculation register value Add as is When in mode 1, the values of the color calculation ratio registers of each screen are ignored. Co GA SE ST-58-R2 241 Color calculation enable bit (N0CCEN, N1CCEN, N2CCEN, N3CCEN, R0CCEN, LCCCEN, SPCCEN) Designates whether to perform color calculation (color calculation enable) N0CCEN N1CCEN N2CCEN N3CCEN R0CCEN LCCCEN SPCCEN 1800ECH 1800ECH 1800ECH 1800ECH 1800ECH 1800ECH 1800ECH Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For LNCL For Sprite ntial xxCCEN Process 0 Does not color-calculate 1 de Color-calculates Note: N0, N1, N2, N3, R0, LC, or SP is entered in bit name for xx. When calculating color between the top and second images, calculation is controlled by the color calculation enable bit of the top image. When using the extended color calculation function, control between the second and third images is done by the nfi color calculation enable bit of the second image, and control between the third and fourth images is done by the color calculation enable bit of the third image. Co GA SE 242 Color Calculation Ratio Register The color calculation ratio register is a write-only 16-bit register that designates the color calculation ratio, and is located at addresses 180108H to 18010EH. Because the nti value is cleared to 0 after power on or reset, the value must be set. CCRNA 180108H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 10 al 9 8 N1CCRT4 N1CCRT3 N1CCRT2 N1CCRT1 N1CCRT0 4 11 3 2 1 0 N0CCRT4 N0CCRT3 N0CCRT2 N0CCRT1 N0CCRT0 15 14 13 12 11 10 9 8 CCRNB ~ ~ ~ N3CCRT4 N3CCRT3 N3CCRT2 N3CCRT1 N3CCRT0 18010AH 7 6 5 4 3 2 1 0 CCRR 18010CH ~ 15 ~ 7 ~ ~ 14 ~ 6 ~ ~ 13 ~ 5 ~ de N2CCRT4 N2CCRT3 N2CCRT2 N2CCRT1 N2CCRT0 12 ~ 4 11 ~ 3 10 ~ 2 9 ~ 1 8 ~ 0 R0CCRT4 R0CCRT3 R0CCRT2 R0CCRT1 R0CCRT0 CCRLB 18010EH 15 ~ 7 ~ 14 ~ 6 ~ nfi 13 ~ 5 ~ 12 8 BKCCRT4 BKCCRT3 BKCCRT2 BKCCRT1 BKCCRT0 4 11 3 10 2 9 1 0 LCCCRT4 LCCCRT3 LCCCRT2 LCCCRT1 LCCCRT0 Color calculation ratio bit (for scroll screens): (N0CCRT4 to N0CCRT0, N0CCRT4~NOCCRT0 Co N1CCRT4 to N1CCRT0, N2CCRT4 to N2CCRT0, N3CCRT4 to N3CCRT0, R0CCRT4 to R0CCRT0, LCCCRT4 to LCCCRT0, BKCCRT4 to BKCCRT0) Designates the color calculation ratio of each scroll screen. The color calculation ratio corresponds to a value 1/32 times R,G,B color data. N1CCRT4~N1CCRT0 180108H 180108H Bit 4~0 Bit 12~8 For NBG0 (or RBG1) For NBG1 (or EXBG) N2CCRT4~N2CCRT0 18010AH Bit 4~0 For NBG2 N3CCRT4~N3CCRT0 18010AH Bit 12~8 For NBG3 GA R0CCRT4~R0CCRT0 18010CH Bit 4~0 For RBG0 LCCCRT4~LCCCRT0 18010EH Bit 4~0 For LNCL BKCCRT4~BKCCRT0 18010EH Bit 12~8 For Back SE ST-58-R2 243 xxCCRT4 xxCCRT3 xxCCRT2 xxCCRT1 xxCCRT0 Color Calculation Ratio Top Image : Second Image 0 0 0 0 0 31:1 nti 0 0 0 0 1 30:2 0 0 0 1 0 29:3 0 0 0 1 1 28:4 0 0 1 0 0 27:5 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 al 26:6 25:7 24:8 23:9 22:10 21:11 20:12 19:13 0 1 1 0 1 18:14 0 0 1 1 1 1 1 1 1 0 0 0 0 0 1 1 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 de 17:15 16:16 15:17 14:18 13:19 12:20 11:21 1 1 1 1 1 1 1 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 1 1 0 0 1 1 nfi 1 0 1 0 1 0 1 10:22 9:23 8:24 7:25 6:26 5:27 4:28 1 1 1 1 1 1 1 1 1 1 1 1 Co 0 0 1 1 0 1 0 1 Note: N0, N1, N2, N3, R0, LC, or BK is entered in bit name for xx. 3:29 2:30 1:31 0:32 For more about the color calculation ratio register of sprites see “Color Calculation Ratio Register” in “9.2 Priority and Color Calculation.” GA SE 244 12.3 Special Color Calculation Function The special color calculation function designates the color calculation enable not below. nti only by the entire screen but by character units and dot units. See the four modes 1. 2. 3. Color calculation enable designates each screen. Color calculation enable designates each character. Color calculation enable designates each dot. al 4. Color calculation enable designates by the most significant bit of color data. When designating color calculation enable for each screen, color calculation is per- de formed when the color calculation enable bit value in the color calculation control register that corresponds to each scroll screen is 1. When designating each character in a scroll screen that the color calculation enable bit has designated 1, color calculation is performed only in character patterns of a special color calculation bit value of 1 in pattern name data. For more about the special color calculation bit in pattern name data see “4.6 Pattern Name Table.” nfi When designating each dot, color calculation is performed only in dots that agree with the dot color code designated in the special function code, and in the character pattern designated 1 in which the value of the special color calculation bit within the pattern name data of the scroll screen has a color calculation enable bit of 1. Do not set this mode when the color format of the scroll screen is the RGB format. For more Co about the special function code see “10.3 Special Function Code.” When designating with the most significant bit of color data, color calculation is performed only in dots that used color data when the most significant bit is set at 1, and when the scroll screen where the color calculation enable bit is designated 1 is in a palette format. Color calculation will always be performed if this mode is desig- nated when the scroll screen, where the color calculation enable bit is designated 1, is in the RGB format. mode. GA When mode 1 or 2 is designated in a bit map format scroll screen, the special color calculation bit of the bit map number register is used, not the special color calcula- tion bit within pattern name data. Table 12.3 shows the special color calculation SE ST-58-R2 245 Table 12.3 Special Color Calculation Mode Special Color Special Color Color Format Color Calculation Enable Calculation Mode Calculation Selection Condition nti Mode 0 Select per screen Palette format or RGB Color calculation enable bit =1 format Mode 1 Select per character Palette format or RGB Color calculation bit = 1 and format pattern name data special al color calculation bit = 1 Mode 2 Select per dot Palette format Color calculation bit = 1 and pattern name data special color calculation bit = 1 and The dot that matches dot color code selected per special function code RGB format Invalid Mode 3 Select with color data Palette format Color calculation bit = 1 and is fixed at 0. MSB RGB format de The dot using color data where MSB = 1 Color calculation enable bit =1 The special color calculation mode can designate only for top images. Otherwise, it nfi Co GA SE 246 Special Color Calculation Mode Register The special color calculation mode register is a write-only 16-bit register that desig- nates the special color calculation function mode for each scroll screen, and is lo- nti cated at address 1800EEH. Because the value is cleared to 0 after power on or reset, you must set the value. SFCCMD 1800EEH 15 ~ 7 14 ~ 6 13 ~ 5 12 ~ 4 11 ~ 3 10 ~ 2 9 al 8 R0SCCM1 R0SCCM0 1 0 N3SCCM1 N3SCCM0 N2SCCM1 N2SCCM0 N1SCCM1 N1SCCM0 N0SCCM1 N0SCCM0 Special color calculation mode bit (N0SCCM1, N0SCCM0, N1SCCM1, N1SCCM0, N2SCCM1, N2SCCM0, N3SCCM1, N3SCCM0, R0SCCM1, R0SCCM0) Designates the special color calculation function mode of each scroll screen. N0SCCM1, N0SCCM0 N1SCCM1, N1SCCM0 N2SCCM1, N2SCCM0 N3SCCM1, N3SCCM0 R0SCCM1, R0SCCM0 1800EEH 1800EEH 1800EEH 1800EEH 1800EEH deBit 1,0 Bit 3,2 Bit 5,4 Bit 7,6 Bit 9,8 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 xxSCCM1 0 0 1 1 xxSCCM0 0 1 0 1 Mode 0 1 2 3 nfi Process Select color calculation enable per screen Select color calculation enable per character Select color calculation enable per dot Select color calculation enable with color data MSB Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. Co Special color calculation mode designation is effective only when each screen is a top image. Otherwise, the mode must be set at 0. When the color format of scroll screen is the RGB format, do not fixed at mode 2. Color is calculated by all dots when mode 3 has been designated. Finally, do not designate modes 1 and 2 in EXBG. GA SE ST-58-R2 247 nti (This page was blank in the original Japanese document) al de nfi Co GA SE 248 Chapter 13 Color Offset Function ntial de nfi Co GA SE Introduction ....................................................................250 13.1 Color Offset Selection .......................................... 250 Color Offset Enable Register ............................ 251 Color Offset Select Register ............................. 252 Color Offset Register ........................................ 253 ST-58-R2 249 Introduction The color offset function causes a change in the screen color without changing color Can also be used for fade-in and fade-out. nti RAM data by adding the offset value when sprite and data of each screen are output. 13.1 Color Offset Selection al The color offset value can set two values, color offset A and color offset B in each RGB, and can designate which of the two values to use for each screen. The color offset value is 9-bit data corresponding to individual RGB. When resulting color larger than FFH, the data is treated as FFH. de data added to individual RGB is smaller than 00H, the data is treated as 00H; when Because the color offset function process follows the color calculation function pro- cess, the color offset value is added to the color data resulting from color calcula- tions. In addition, because the result screen of color calculation is treated as the top image screen, designation of the color offset enable register is done with the screen Bit 7 nfi bit of that top image. Figure 13.1 shows the color offset data. 6 5 4 8 Bit Color Data 3 2 1 0 Bit 8 Sign 7 Bit 7 6 6 5 5 Co 4 4 + 3 8 Bit Color Offset Data 3 2 2 1 1 0 0 Color Offset A Color Offset B Select per screen 8 Bit Output Color Data GA Figure 13.1 Color Offset Data SE 250 Color Offset Enable Register The color offset enable register is a write-only 16-bit register that designates whether to use the color offset function for each screen, and is located at address 180110H. Because the value is cleared to 0 after power on or reset, it must be set. CLOFEN 180110H 15 ~ 7 ~ 14 ~ 6 SPCOEN 13 ~ 5 BKCOEN 12 ~ 4 R0COEN nti 11 ~ 3 al N3COEN 10 ~ 2 N2COEN 9 ~ 1 N1COEN 8 ~ 0 N0COEN Color offset enable bit (N0COEN, N1COEN, N2COEN, N3COEN, R0COEN, BKCOEN, SPCOEN) Designates whether to use the color offset function. N0COEN N1COEN N2COEN N3COEN R0COEN BKCOEN SPCOEN 180110H 180110H 180110H 180110H 180110H 180110H 180110H de Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For Back For Sprite xxCOEN 0 1 nfi Process Do not use color offset function Use color offset function Note: N0, N1, N2, N3, R0, BK, or SP is entered in bit name for xx. image screen. Co Using the color calculation function designates the color offset enable bit of the top GA SE ST-58-R2 251 Color Offset Select Register The color offset select register designates the color offset register used for each screen. This is a write-only 16-bit register located at address 180112H. Because the value is cleared to 0 after power on or reset, it must be set. CLOFSL 180112H 15 ~ 7 ~ 14 ~ 6 SPCOSL 13 ~ 5 BKCOSL 12 ~ 4 R0COSL 11 ~ 3 N3COSL nti 10 ~ 2 N2COSL al 9 ~ 1 N1COSL 8 ~ 0 N0COSL Color offset select bit (N0COSL, N1COSL, N2COSL, N3COSL, R0COSL, BKCOSL, SPCOSL) Designates the color offset register to use when using the color offset function. N0COSL N1COSL N2COSL N3COSL R0COSL BKCOSL SPCOSL 180112H 180112H 180112H 180112H 180112H 180112H 180112H Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 de For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For Back For Sprite xxCOSL 0 1 nfiProcess Use color offset A value Use color offset B value Note: N0, N1, N2, N3, R0, BK, or SP is entered in bit name for xx. of the top image screen. Co When using the color calculation function, designates with the color offset select bit GA SE 252 Color Offset Register The color offset register is a write-only 16-bit register that designates RGB individual values of the color offset value, and is located at addresses 180114H to 18011EH. Because the value is cleared to 0 after power on or reset, it must be set. COAR 180114H 15 ~ 7 COARD7 14 ~ 6 COARD6 13 ~ 5 COARD5 12 ~ 4 COARD4 nti 11 ~ 3 al COARD3 10 ~ 2 COARD2 9 ~ 1 COARD1 8 COARD8 0 COARD0 15 14 13 12 11 10 9 8 COAG ~ ~ ~ ~ ~ ~ ~ COAGR8 180116H 7 6 5 4 3 2 1 0 COAGR7 COAGR6 COAGR5 COAGR4 COAGR3 COAGR2 COAGR1 COAGR0 COAB 180118H 15 ~ 7 COABL7 14 ~ 6 COABL6 13 ~ 5 COABL5 de 12 ~ 4 COABL4 11 ~ 3 COABL3 10 ~ 2 COABL2 9 ~ 1 COABL1 8 COABL8 0 COABL0 COBR 18011AH 15 ~ 7 COBRD7 15 14 ~ 6 COBRD6 14 nfi 13 ~ 5 COBRD5 13 12 ~ 4 COBRD4 12 11 ~ 3 COBRD3 11 10 ~ 2 COBRD2 10 9 ~ 1 COBRD1 9 8 COBRD8 0 COBRD0 8 Co COBG ~ ~ ~ ~ ~ ~ ~ COBGR8 18011CH 7 6 5 4 3 2 1 0 COBGR7 COBGR6 COBGR5 COBGR4 COBGR3 COBGR2 COBGR1 COBGR0 15 14 13 12 11 10 9 8 COBB ~ ~ ~ ~ ~ ~ ~ COBBL8 18011EH 7 6 5 4 3 2 1 0 COBBL7 COBBL6 COBBL5 COBBL4 COBBL3 COBBL2 COBBL1 COBBL0 GA Color offset value bit: Color offset data bit (COARD8 to COARD0, COAGR8 to COAGR0, COABL8 to COABL0, COBRD8 to COBRD0, COBGR8 to COBGR0, COBBL8 to COBBL0) Sets the RGB individual value of color offset A and B. Negative numbers should be set by two’s- complement values. SE ST-58-R2 253 COARD8~COARD0 180114H Bit 8~0 For color offset A RED data COAGR8~COAGR0 180116H Bit 8~0 For color offset A GREEN data COABL8~COABL0 180118H Bit 8~0 For color offset A BLUE data COBRD8~COBRD0 COBGR8~COBGR0 COBBL8~COBBL0 18011AH 18011CH 18011EH Bit 8~0 Bit 8~0 Bit 8~0 nti For color offset B RED data For color offset B GREEN data For color offset B BLUE data al de nfi Co GA SE 254 Chapter 14 Shadow Function ntial de nfi Co GA SE Introduction ....................................................................256 14.1 Shadow Process .................................................. 256 Normal Shadow ................................................ 256 MSB Shadow .................................................... 258 Shadow Control Register .................................. 259 ST-58-R2 255 Introduction nti This function projects a shadow on a sprite or scroll screen by using a sprite. There are two types of sprite shadows: the Normal shadow and the MSB shadow. The MSB shadow is used when the sprite is type 2 through 7, and is used when the sprite al shadow priority is highest. The shadow function is processed after the color calcula- tion and color offset functions. The shadow function is shown in Figure 14.1. Frame Buffer Data Scroll Screen Output Image Transparent + = Shadow Sprite Normal Sprite de 14.1 Shadow Process nfi Figure 14.1 Shadow Function Normal Shadow Co When the sprite priority of the Normal shadow or MSB shadow is highest, the shadow process makes the sprite transparent and divides in half the brightness of the part of the sprite in the top image. With Normal shadow sprite, the number of bits to be determined by the sprite type changes with dot color data of the least significant bit in the designated sprite type at 0, and all other dot color data at 1. GA Sprite data of a Normal shadow designates the color control word such that all bits of dot color data remaining from the dot color code are 1, with only the least signifi- cant bit at 0. Also, sprite data of a Normal shadow is created by writing sprite char- acters of the dot color code whose remaining bits are 1 to the frame buffer. In Figure 14.1, a shadow cannot be projected because it has already been directed to the frame buffer. As a result, write to the frame buffer first. For more about color control word, see “VDP1 User’s Manual.” SE The scroll screen and back screen, which project a shadow by the Normal shadow sprite, can designate in all screens. 256 A Normal shadow is shown in Figure 14.2 and sprite data of a Normal shadow is shown in Figure 14.3. Normal Shadow Sprite Transparent ntiNormal Shadow al Transparent Frame Buffer Before Write Frame Buffer After Write Bit 15 Figure 14.2 • When Sprite Type 0~3, 5 14 13 12 11 Sprite data write of a Normal shadow 10 9 de 8 7 6 5 4 3 2 1 0 • When Sprite Type 4, 6 Bit 15 14 13 12 nfi 11 1 10 1 9 1 1 8 1 7 1 1 1 6 1 1 5 1 1 4 1 1 3 1 1 2 1 1 1 1 0 0 0 Co • When Sprite Type 7 Bit 15 14 13 • When Sprite Type C~F 12 11 10 9 8 1 7 1 6 1 5 1 4 1 3 1 2 1 1 1 0 0 Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 1 1 1 1 1 1 1 0 GA • When Sprite Type 8 Bit 15 14 13 12 11 10 9 8 7 6 1 5 1 4 1 3 1 2 1 1 1 0 0 • When Sprite Type 9~B SE Bit 15 14 13 12 11 10 9 8 7 6 Note: The bits in the shaded areas are used in judging the normal shadow. Figure 14.3 Sprite data of a Normal shadow 5 1 4 1 3 1 2 1 1 1 0 0 ST-58-R2 257 MSB Shadow MSB shadow is enabled only when sprite types are type 2 through 7, with sprite data MSB at 1. Depending on the value of 15 bits other than MSB, there are two even if sprite shadow conditions are satisfied. nti types of shadow: sprite shadow and the transparent shadow. The sprite shadow MSB is 1 and all the values of 15 bits, other than the MSB, not 0. The transparent shadow MSB is 1, with all the values of 15 bits, other than the MSB, at 0. When dot al color data satisfies Normal shadow conditions, it is judged to be a Normal shadow MSB shadow sprite data is created by changing only MSB to 1 in the form of an MSB shadow sprite for frame buffer data that the VDP1 has already written to. (See “MSB On” in the “VDP1 User’s Manual.”) A shadow is added to the sprite charac- ter when all frame buffer data bits before the MSB changes are not 0; i.e., when a de normal sprite that has already been written becomes a sprite shadow. A shadow is added for a scroll screen priority that is one less than the sprite of the transparent shadow when all frame buffer data bits before the MSB is changed are 0; i.e., a transparent shadow will result when transparent. Scroll screen and back screen that add shadows by sprites of the transparent shadow sprites can be selected on each screen. nfi The MSB shadow can not be used when using the sprite window. For more details about the sprite window, see “8.1 Window Area.” The sprite shadow and transpar- ent shadow are shown in Figure 14.4. Sprite data of the MSB shadow is shown in Figure 14.5. Co MSB Shadow Sprite Sprite Shadow Transparent Shadow Transparent Transparent GA Frame Buffer before changing MSB Figure 14.4 Frame Buffer after changing MSB Sprite shadow and transparent shadow SE 258 Sprite Shadow Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Bit 15 1 X X X X X X X X X The Xed bits could be either 0 or 1 as long as the dot color data in the selected sprite type does not meet the conditions of Normal Shadow. Transparent Shadow 14 13 12 11 10 9 8 7 6 nti X 5 al X 4 X 3 X 2 X 1 X 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Figure 14.5 Sprite data of MSB shadow Shadow Control Register de The shadow control register is a write-only 16-bit register that designates whether to use the shadow function for the scroll screen and back screen, and is located at address 1800E2H. Because the value is cleared to 0 after power on or reset, the value must be set. SDCTL 1800E2H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 nfi BKSDEN 12 ~ 4 R0SDEN 11 ~ 3 N3SDEN 10 ~ 2 N2SDEN 9 ~ 1 N1SDEN 8 TPSDSL 0 N0SDEN BKSDEN) Co Shadow enable bit (N0SDEN, N1SDEN, N2SDEN, N3SDEN, R0SDEN, This bit determines in sprites of the Normal shadow and transparent shadow whether to use the shadow function for the scroll screen and back screen. N0SDEN 1800E2H Bit 0 For NBG0 (or RBG1) N1SDEN 1800E2H Bit 1 For NBG1 (or EXBG) GA N2SDEN 1800E2H Bit 2 For NBG2 N3SDEN 1800E2H Bit 3 For NBG3 R0SDEN 1800E2H Bit 4 For RBG0 BKSDEN 1800E2H Bit 5 For Back The sprite of a sprite shadow always uses the shadow function for itself. SE ST-58-R2 259 xxSDEN Process 0 Does not use shadow function (shadow not added) 1 Uses shadow function (shadow added) Note: N0, N1, N2, N3, R0, or BK is entered in bit name for xx. Transparent shadow select bit (TPSDSL), bit 8 Determines whether to activate the sprite of the transparent shadow. TPSDSL 0 Process ntial Disables transparent shadow sprite 1 Enables transparent shadow sprite When the sprite of a transparent shadow is nullified, a shadow will no longer be projected on a screen by the transparent shadow sprite. de nfi Co GA SE 260 Chapter 15 How to Use VDP2 ntial de nfi Co GA SE 15.1 15.2 15.3 Operation Flow ......................................................... 262 How to Use RAM ...................................................... 264 Bit Configuration Map ............................................. 267 ST-58-R2 261 15.1 Operation Flow Step 1 Set the TV screen mode. nti Below is an overview of the steps for defining and setting VDP2 data. al • Select normal graphics, high-resolution graphic, or exclusive monitor • Set interlace mode • Set vertical and horizontal resolution Step 2 Select the scroll screen to be used. • Normal scroll screen (NBG0, NBG1, NBG2, NBG3) • Rotation scroll screen (RBG0, RBG1) • External input screen (EXBG) • Line color screen (LNCL) • Back screen (BACK) Step 3 Select the functions of each screen. de • Select cell format or bit map format (A) Cell format • Character color count • Character size • Pattern name data size nfi • Plane size • Scaling function • Line scroll function Co • Vertical cell scroll function • Mosaic process function (B) Bit map format • Bit map color count GA • Bit map size • Scaling function • Rotation function • Mosaic process function Step 4 Select the color RAM mode. Step 5 Select the window to be used. SE When using the Normal window, store the line window table in VRAM. 262 Step 6 Calculate the size of VRAM to determine whether the tables can be stored there. • VRAM size • Character pattern (number and size) • Pattern name table (number and size) • Bit map pattern (number and size) • Line scroll table • Vertical cell scroll table • Rotation parameter table ntial • Coefficient table • Line color screen table • Back screen table • Line window table Step 7 Select VRAM use. • VRAM bank partition • VRAM access method de • Set reverse function bit. nfi Step 8 Create character pattern and pattern name table. • Select the character number supplement mode. Creates a bit map pattern when in the bit map format. Step 9 Create other VRAM tables. Co Step 10 Define priority and color calculation in terms of sprite data. Step 11 Set special functions. • Special function code • Special priority function • Extended color calculation function • Gradation calculation function GA • Color offset function • Shadow function (Normal, MSB) Step 12 Reset the screen, redefine and reset VRAM and registers in terms of story. SE ST-58-R2 263 15.2 How to Use RAM When using VDP2, data is defined and set in VRAM, color RAM, and the register. • VRAM nti Data defined in VRAM differs depending on the scroll screen to be used, screen al format, screen size, and the image process functions to be used. Data is defined in VRAM according to the register setting; defined addresses are set in the various address registers. Table 15.1 shows the main register connected with data defined in VRAM. de nfi Co GA SE 264 Table 15.1 Register connected with data defined in VRAM Data Definition Register Setting Data Pattern Name Control Register Pattern Name Data Size, nti (180030H~180038H) Character Number Supplementary Mode, Pattern Name Supplementary Data Plane size register (18003AH) Plane size when in displaying in cell format Pattern name Character pattern lead Normal scroll screen map table Character address Dot data of cell register (180040H~18004EH) address for each plane Rotation scroll screen map register (180050H~18006EH) address for each plane Map offset register (18003CH~18003EH) al Character control register Pattern Name Data lead Pattern Name Data lead 3 bits map offset value attached to map register upper bits Character color count, pattern screen scroll value, (180028H, 18002AH) Bitmap pattern Bitmap pattern data Character control register Line scroll table de (180028H, 18002AH) Map offset register (18003CH~18003EH) Horizontal and vertical Line scroll table address register (1800A0H~1800A6H) character size Character color count (bitmap color count), bitmap size, bitmap enable Boundary address of bitmap pattern Line scroll table lead address Vertical cell scroll table horizontal coordinate Line & vertical cell scroll increment Vertical screen scroll Vertical cell scroll table value nficontrol register (18009AH) address register (18009CH, 18009EH) Line & vertical cell scroll control register (18009AH) RAM control register Scroll configuration control data Vertical cell scroll table lead address Scroll configuration control data VRAM use per rotation scroll Rotation parameter table Co Rotation Parameter, (18000EH) Coefficient Table Related Registers Rotation parameter table address register (1800BCH, 1800BEH) Rotation parameter mode register (1800B0H) Coefficient table data RAM control register (Zoom Coefficients kx, (18000EH) screen Parameter table lead address Rotation parameter mode setting VRAM use per rotation scroll screen Coefficient ky, and start point Coefficient table control Coefficient data mode, data table coordinate Xp after register (1800B4H) size of coefficient data, rotation conversion) coefficient table enable GA Line color screen table Back screen table Line window Color RAM address RGB color data Coefficient table address offset register (1800B6H) Line color screen table address register (1800A8H, 1800AAH) Back screen table address register (1800ACH, 1800AEH) Horizontal start point Line window table address Coefficient table lead address offset value Line color screen color mode, line color screen table lead address Back screen color mode, back screen table lead address Line window enable, line table coordinate, horizontal register window table lead address SE end point coordinate (1800D8H~1800DEH) ST-58-R2 265 • Color RAM Definition Defines the sprite of the palette format and scroll screen color data. Color data stored in color RAM is in RGB format and has three modes. Mode selection desig- register (18000EH). nti nates in the color RAM mode (CRMD1, CRMD0, bits 13 and 12) of the RAM control al The most significant bit of color data stored in color RAM is the enable bit when the special color calculation mode is mode 3. Color is calculated in dot units for dots using color data when the most significant bit color data is 1, the special color calcu- lation mode is mode 3, the color format is the palette format, and the color calcula- tion enable bit is 1. • Color RAM Reference de Color RAM is referred from character patterns, bit map patterns, and line color screen table data. The color RAM address is expressed by 11 bits. When the charac- ter color count or bit map color count is 16-color, the 7-bit palette number added to the host becomes 11 bits; when 256-color, the 3-bit palette number added to the host becomes 11 bits. The palette number of the character pattern is in pattern name data and supplement data of the pattern name control register; the palette number of the • Register nfi bit map pattern is in the bit map palette number register. The register is, as a rule, a write-only, 16-bit register that designates the VDP2 func- tion. One function may extend in several registers, and several functions may be needed. Co arrange in one register. Set registers corresponding to the functions to be used when GA SE 266 15.3 Bit Configuration Map Every register bit register is related to various other bits. The bit map configuration configuration below. nti of separate scroll screens and separate priority functions is shown in the bit map TV Screen Mode al TV Screen Display (DISP, 180000H, bit 15 ) 0 : Does not display picture on TV screen 1 : Displays picture Boarder Color Mode (BDCLMD, 180000H, bit 8) 0 : Displays Black 1 : Displays Back Screen Interlace mode (LSMD, 180000H, bit 7~6 ) 00 : Non-interlace 10 : Single-density Interlace 11 : Double-density Interlace de nfi Vertical Resolution (VRESO, 180000H, bit 5~4) 00 : 224 Lines (NTSC format or PAL format TV) 01 : 240 Lines (NTSC format or PAL format TV) 10 : 256 Lines (PAL format TV) Horizontal Resolution (HRESO, 180000H, bit 2~0 ) 000 : 320 Pixels (Normal Graphics A, NTSC format or PAL format TV) Co 001 : 352 Pixels (Normal Graphics B, NTSC format or PAL format TV) 010 : 640 Pixels (Hi-Res Graphics A, NTSC format or PAL format TV) 011 : 704 Pixels (Hi-Res Graphics B, NTSC format or PAL format TV) 100 : 320 Pixels (Exclusive Normal Graphics A, 31kHz monitor) 101 : 352 Pixels (Exclusive Normal Graphics B, Hi-Vision monitor) 110 : 640 Pixels (Exclusive Hi-Res Graphics A, 31kHz monitor) 111 : 704 Pixels (Exclusive Hi-Res Graphics B, Hi-Vision monitor) External Signal Enable GA External Latch Enable (EXLTEN, 180002H, bit 9) 0 : Latch when External Enable Register is read 1 : Latches via external signal External Synchronization Enable (EXSYEN, 180002H, bit 8) 0 : Does not input External Sync. Signal 1 : Inputs External Sync. Signal and synchronizes TV screen display externally Image Display Area Select (DASEL, 180002H, bit 1) 0 : Displays image in set display area only 1 : Displays image in specified display area only SE External Screen Enable (EXBGEN, 180002H, bit 0) 0 : Does not input External Screen Data 1 : Inputs External Screen Data ST-58-R2 267 Screen Status External Latch Flag (EXLTFG, 180004H, bit 9) nti 0 : Register is not latched (Register will be cleared when status is read) 1 : HV Counter Value is latched in register External Synchronization Flag (EXSYFG, 180004H, bit 8) al 0 : Does not synchronize (Register will be cleared when status is read) 1 : Internal Circuitry Synchronized V-Blank (VBLANK, 180004H, bit 3) 0 : Scans during vertical display 1 : Scans during vertical retrace (VBLANK) H-Blank ( HBLANK, 180004H, bit 2) 0 : Scans during horizontal display 1 : Scans during horizontal retrace (HBLANK) Scan Field Flag (ODD, 180004H, bit 1 ) 0 : Scans during even fields 1 : Scans during odd fields TV Format Flag (PAL, 180004H, bit 0 ) de 0 : NTSC Format 1 : PAL Format H-Counter Value (HCT, 180008H, bit 9~0) V-Counter Value (VCT, 18000AH, bit 9~0) nfi Co GA SE 268 nti RAM VRAM VRAM Size (VRAMSZ, 180006H, bit 15) 0 : 4 Mbit 1 : 8 Mbit VRAM Change Enable (VRAMCE, 18000CH, bit 8 ) al 0 : Does not use change function (uses both VRAM-A and VRAM-B as display VRAM) 1 : Uses change function (uses either VRAM-A or VRAM-B as display VRAM) VRAM Select (VRAMSL, 18000CH, bit 0) 0 : Uses VRAM-A for CPU VRAM 1 : Uses VRAM-B for CPU VRAM VRAM Mode (VRAMD, 18000EH, bit 8) VRAM Mode (VRBMD, 18000EH, bit 9) 0 : Does not make 2 bank partitions 1 : Makes 2 bank partitions de VRAM Cycle Pattern (For VRAM-A0 (or VRAM-A )) (VCPnA0, 180010H, 180012H ) VRAM Cycle Pattern (For VRAM-A1 ) (VCPnA1, 180014H, 180016H ) nfi VRAM Cycle Pattern (For VRAM-B0 (or VRAM-B )) (VCPnB0, 180018H, 18001AH ) VRAM Cycle Pattern (For VRAM-B1 ) For Timing T0 (VCP0xx, 18001yH, bit 15~12 ) For Timing T1 (VCP1xx, 18001yH, bit 11~8 ) For Timing T2 (VCP2xx, 18001yH, bit 7~4 ) For Timing T3 (VCP3xx, 18001yH, bit 3~0 ) For Timing T4 (VCP4xx, 18001zH, bit 15~12 ) For Timing T5 (VCP5xx, 18001zH, bit 11~8 ) (VCPnB1, 18001CH, 18001EH ) Co For Timing T6 (VCP6xx, 18001zH, bit 7~4 ) For Timing T7 (VCP7xx, 18001zH, bit 3~0 ) 0000 : NBG0 Pattern Name Data Read 0001 : NBG1 Pattern Name Data Read 0010 : NBG2 Pattern Name Data Read 0011 : NBG3 Pattern Name Data Read 0100 : NBG0 Character Pattern Data Read 0101 : NBG1 Character Pattern Data Read 0110 : NBG2 Character Pattern Data Read 0111 : NBG3 Character Pattern Data Read 1100 : Vertical Cell Scroll Table Data Read for NBG0 GA 1101 : Vertical Cell Scroll Table Data Read for NBG1 1110 : CPU Read/Write 1111 : No Access Color RAM Color RAM Mode (CRMD, 18000EH, bit 13~12) 00 : Mode 0 : RGB, each 5 bits; 1024 color settings 01 : Mode 1 : RGB, each 5 bits; 2048 color settings 10 : Mode 2 : RGB, each 5 bits; 1024 color settings SE ST-58-R2 269 Scroll Screen nti Normal Scroll Screen NBG0 NBG1 NBG2 NBG3 Rotation Scroll Screen RBG0 RBG1 External Input Screen : EXBG Line Screen Line Color Screen : LNCL al Back Screen : BACK Normal Scroll Screen (NBG0) Transparent Display Enable (N0TPON, 180020H, bit 8) de 0 : Enables Transparent Code nfi (Transparent coded dots become transparent) 1 : Disables Transparent Code (Transparent coded dots are displayed according to their data value) Screen Display Enable (N0ON, 180020H, bit 0) 0 : Cannot Display (Does not access VRAM) 1 : Can Display 000 : Co Character Color Count (N0CHCN, 180028H, bit 6~4) 001 : 010 : 011 : 16 colors (Palette Format) 256 colors (Palette Format) 2048 colors (Palette Format) 32,768 colors (RGB Format) 100 : 16,770,000 colors (RGB Format) Bitmap Enable (N0BMEN, 180028H, bit 1) 0 : Display in Cell Format See Cell Format (NBG0) GA 1 : Display in Bitmap Format See Bitmap Format (NBG0 ) Mosaic Enable (N0MZE, 180022H, bit 0) 0 : Does not execute Mosaic Process 1 : Executes Mosaic Process Mosaic Size (MZSZx, 180022H ) Horizontal Mosaic Size (MZSZH, 180022H, bit 11~8 ) Vertical Mosaic Size (MZSZV, 180022H, bit 15~12) (Continued) SE 270 Cell Format (NBG0 ) Character Size (N0CHSZ, 180028H, bit 0 ) 0 : 1 H Cell X 1 V Cell 1 : 2 H Cells X 2 V Cells Pattern Name Data Size (N0PNB, 180030H, bit 15) 0 : 2 Words 1 : 1 Word 1 Word (Pattern Name Data Size) ntial Character Number Supplementary Mode (N0CNSM, 180030H, bit 14 ) 0 : Character number in pattern name data is 10 bits; reverse function can be selected in character units cannot be selected. de 1 : Character number in pattern name data is 12 bits; reverse function Special Priority (N0SPR, 180030H, bit 9) (For Pattern Name Supplementary Data) Special Color Calculation (N0SCC, 180030H, bit 8) (For Pattern Name Supplementary Data) 00 : 1 H Page X 1 V Page nfi Supplementary Palette Number (N0SPLT, 180030H, bit 7~5 ) Supplementary Character Number (N0SCN, 180030H, bit 4~0) Plane Size (N0PLSZ, 18003AH, bit 1~0) Co 01 : 2 H Pages X 1 V Page 10 : 2 H Pages X 2 V Pages Map Offset (N0MP, 18003CH, bit 2~0) Map (N0MPx, 180040H~180042H ) For Plane A (N0MPA, 180040H, bit 5~0 ) For Plane B (N0MPB, 180040H, bit 13~8 ) For Plane C ( N0MPC, 180042H, bit 5~0) For Plane D ( N0MPD, 180042H, bit 13~8) GA Bitmap Format (NBG0) Bitmap Size (N0BMSZ, 180028H, bit 3~2) 00 : 512 H Dots X 256 V Dots 01 : 512 H Dots X 512 V Dots 10 : 1024 H Dots X 256 V Dots 11 : 1024 H Dots X 512 V Dots Special Priority (N0BMPR, 18002CH, bit 5) SE Special Color Calculation (N0BMCC, 18002CH, bit 4) Supplementary Palette Number (N0BMP, 18002CH, bit 2~0) Map Offset (N0MP, 18003CH, bit 2~0) ST-58-R2 271 Normal Scroll Screen (NBG0) (continued) Screen Scroll Value (N0SCx, 180070H~180076H) For Horizontal Direction (N0SCX, 180070H, bit 10~180072H, bit 8) For Vertical Direction (N0SCY, 180074H, bit 10~180076H, bit 8) Coordinate Increment (N0ZMx, 180078H~18007EH) For Horizontal Direction (N0ZMX, 180078H, bit 2~18007AH, bit 8 ) For Vertical Direction (N0ZMY, 18007CH, bit 2~18007EH, bit 8) Reduction Enable (N0ZMQT, N0ZMHF, 180098H, bit 1~0) 00 : Reduction can not be displayed horizontally 01 : Reduction can be displayed up to 1/2 horizontally ntial 10 : Reduction can be displayed up to 1/4 horizontally 11 : Reduction can be displayed up to 1/4 horizontally Line Scroll Space (N0LSS, 18009AH, bit 5~4) Every 2 Lines (Single-density Interlace) de 00 : Every 1 Line (Non-interlace, Double-density Interlace), 01 : Every 2 Lines (Non-interlace, Double-density Interlace), Every 4 Lines (Single-density Interlace) 10 : Every 4 Line (Non-interlace, Double-density Interlace), Every 8 Lines (Single-density Interlace) 11 : Every 8 Line (Non-interlace, Double-density Interlace), Every 16 Lines (Single-density Interlace) Line Zoom Enable (N0LZMX, 18009AH, bit 3) nfi 0 : Does not scale horizontally in line units 1 : Scales horizontally in line units Line Scroll Enable (N0LSCY, 18009AH, bit 2 ) (For Vertical Screen Scroll Values) 0 : Does not scroll vertically in line units 0 : No vertical cell scroll Co 1 : Scrolls vertically in line units Line Scroll Enable (N0LSCX, 18009AH, bit 1 ) (For Horizontal Screen Scroll Values) 0 : Does not scroll horizontally in line units 1 : Scrolls horizontally in line units Vertical Cell Scroll Enable (N0VCSC, 18009AH, bit 0) 1 : Allows vertical cell scroll Line Scroll Table Address (N0LSTA, 1800A0H, bit 2~1800A2H, bit 1) GA Vertical Cell Scroll Table Address (VCSTA, 18009CH, bit 2~18009EH, bit 1 ) SE 272 Normal Scroll Screen (NBG1) Transparent Display Enable (N1TPON, 180020H, bit 9) 0 : Turns on Transparent Code nti (Transparent coded dots become transparent) 1 : Turns off Transparent Code (Transparent coded dots are displayed as per their data value) Screen Display Enable (N1ON, 180020H, bit 1) 0 : Cannot Display (Cannot access VRAM during display) 1 : Can Display al Character Color Count (N1CHCN, 180028H, bit 13~12) 00 : 16 colors (Palette Format) 01 : 256 colors (Palette Format) 10 : 2048 colors (Palette Format) 11 : 32,768 colors (RGB Format) Bitmap Enable (N1BMEN, 180028H, bit 9) 0 1 : Display in Cell Format : Display in Bitmap Format Mosaic Enable (N1MZE, 180022H, bit 1) de See Cell Format (NBG1) See Bitmap Format (NBG1 ) 1 : Executes Mosaic Process nfi 0 : Does not execute Mosaic Process Mosaic Size (MZSZx, 180022H ) (Continued) Horizontal Mosaic Size (MZSZH, 180022H, bit 11~8 ) Vertical Mosaic Size (MZSZV, 180022H, bit 15~12) Co GA SE ST-58-R2 273 Cell Format (NBG1 ) nti Character Size (N1CHSZ, 180028H, bit 8 ) 0 : 1 H Cell X 1 V Cell 1 : 2 H Cells X 2 V Cells Pattern Name Data Size (N1PNB, 180032H, bit 15) 0 : 2 Words 1 : 1 Word 1 Word (Pattern Name Data Size) Character Number Supplementary Mode (N1CNSM, 180032H, bit 14) al 0 : Character number in pattern name data is 10 bits; reverse function can be selected in character units 1 : Character number in pattern name data is 12 bits; reverse function cannot be selected. Special Priority (N1SPR, 180032H, bit 9) (For Pattern Name Supplementary Data) Special Color Calculation (N1SCC, 180032H, bit 8) (For Pattern Name Supplementary Data) de Plane Size (N1PLSZ, 18003AH, bit 3~2) nfi Supplementary Palette Number (N1SPLT, 180032H, bit 7~5 ) Supplementary Character Number (N1SCN, 180032H, bit 4~0) 00 : 1 H Page X 1 V Page Co 01 : 2 H Pages X 1 V Page 10 : 2 H Pages X 2 V Pages Map Offset (N1MP, 18003CH, bit 6~4) Map (N1MPx, 180044H~180046H ) For Plane A (N1MPA, 180044H, bit 5~0 ) For Plane B (N1MPB, 180044H, bit 13~8 ) For Plane C ( N1MPC, 180046H, bit 5~0) For Plane D ( N1MPD, 180046H, bit 13~8) GA Bitmap Format (NBG1) Bitmap Size (N1BMSZ, 180028H, bit 11~10) 00 : 512 H Dots X 256 V Dots 01 : 512 H Dots X 512 V Dots 10 : 1024 H Dots X 256 V Dots 11 : 1024 H Dots X 512 V Dots Special Priority (N1BMPR, 18002CH, bit 13) SE Special Color Calculation (N1BMCC, 18002CH, bit 12) Supplementary Palette Number (N1BMP, 18002CH, bit 10~8) Map Offset (N1MP, 18003CH, bit 6~4) 274 Normal Scroll Screen (NBG1) (Continued) Screen Scroll Value (N1SCx, 180080H~180086H) nti For Horizontal Direction (N1SCX, 180080H, bit 10~180082H, bit 8) For Vertical Direction (N1SCY, 180084H, bit 10~180086H, bit 8) Coordinate Increment (N1ZMx, 180088H~18008EH) al For Horizontal Direction (N1ZMX, 180088H, bit 2~18008AH, bit 8 ) For Vertical Direction (N1ZMY, 18008CH, bit 2~18008EH, bit 8) Reduction Enable (N1ZMQT, N1ZMHF, 180098H, bit 9~8) 00 : Reduction can not be displayed horizontally 01 : Reduction can be displayed up to 1/2 horizontally 10 : Reduction can be displayed up to 1/4 horizontally 11 : Reduction can be displayed up to 1/4 horizontally Line Scroll Space (N1LSS, 18009AH, bit 13~12) de 00 : Every 1 Line (Non-interlace, Double-density Interlace), Every 2 Lines (Single-density Interlace) 01 : Every 2 Lines (Non-interlace, Double-density Interlace), Every 4 Lines (Single-density Interlace) 10 : Every 4 Line (Non-interlace, Double-density Interlace), Every 8 Lines (Single-density Interlace) 11 : Every 8 Line (Non-interlace, Double-density Interlace), nfi Every 16 Lines (Single-density Interlace) Line Zoom Enable (N1LZMX, 18009AH, bit 11) 0 : No zoom horizontally in line units 1 : Allows zoom horizontally in line units Line Scroll Enable (N1LSCY, 18009AH, bit 10 ) (For Vertical Screen Scroll Values) Co 0 : No zoom vertically in line units 1 : Allows zoom vertically in line units Line Scroll Enable (N1LSCX, 18009AH, bit 9 ) (For Horizontal Screen Scroll Values) 0 : No scroll horizontally in line units 1 : Allows scroll horizontally in line units Vertical Cell Scroll Enable (N1VCSC, 18009AH, bit 8) 0 : No vertical cell scroll 1 : Allows vertical cell scroll GA Line Scroll Table Address (N1LSTA, 1800A4H, bit 2~1800A6H, bit 1) Vertical Cell Scroll Table Address (VCSTA, 18009CH, bit 2~18009EH, bit 1 ) SE ST-58-R2 275 Normal Scroll Screen (NBG2) Transparent Display Enable (N2TPON, 180020H, bit 10) 0 : Turns on Transparent Code (Transparent coded dots become transparent) 1 : Turns off Transparent Code ntial (Transparent coded dots are displayed as per their data value) Screen Display Enable (N2ON, 180020H, bit 2) 0 : Cannot Display (Cannot access VRAM during display) 1 : Can Display Character Color Count (N2CHCN, 18002AH, bit 1) 0 : 16 colors (Palette Format) 1 : 256 colors (Palette Format) (Display in Cell Format) de See Cell Format (NBG2) Mosaic Enable (N2MZE, 180022H, bit 2) 0 : Does not execute Mosaic Process 1 : Executes Mosaic Process Mosaic Size (MZSZx, 180022H ) nfi Horizontal Mosaic Size (MZSZH, 180022H, bit 11~8 ) Vertical Mosaic Size (MZSZV, 180022H, bit 15~12) Screen Scroll Value (N2SCx, 180090H~180092H) Co For Horizontal Direction (N2SCX, 180090H, bit 10~0 ) For Vertical Direction (N2SCY, 180092H, bit 10~0) GA SE 276 Cell Format (NBG2 ) Character Size (N2CHSZ, 18002AH, bit 0 ) 0 : 1 H Cell X 1 V Cell 1 : 2 H Cells X 2 V Cells Pattern Name Data Size (N2PNB, 180034H, bit 15) 0 : 2 Words 1 : 1 Word 1 Word (Pattern Name Data Size) ntial Character Number Supplementary Mode (N2CNSM, 180034H, bit 14) 0 : Character number in pattern name data is 10 bits; reverse function can be selected in character units 1 : Character number in pattern name data is 12 bits; reverse function cannot be selected de Special Priority (N2SPR, 180034H, bit 9) (For Pattern Name Supplementary Data) Special Color Calculation (N2SCC, 180034H, bit 8) (For Pattern Name Supplementary Data) 00 : 1 H Page X 1 V Page nfi Supplementary Palette Number (N2SPLT, 180034H, bit 7~5 ) Supplementary Character Number (N2SCN, 180034H, bit 4~0) Plane Size (N2PLSZ, 18003AH, bit 5~4) Co 01 : 2 H Pages X 1 V Page 10 : 2 H Pages X 2 V Pages Map Offset (N2MP, 18003CH, bit 10~8) Map (N2MPx, 180048H~18004AH ) For Plane A (N2MPA, 180048H, bit 5~0 ) For Plane B (N2MPB, 180048H, bit 13~8 ) For Plane C ( N2MPC, 18004AH, bit 5~0) For Plane D ( N2MPD, 18004AH, bit 13~8) GA SE ST-58-R2 277 Normal Scroll Screen (NBG3) Transparent Display Enable (N3TPON, 180020H, bit 11) 0 : Turns on Transparent Code (Transparent coded dots become transparent) 1 : Turns off Transparent Code nti (Transparent coded dots are displayed as per their data value) Screen Display Enable (N3ON, 180020H, bit 3) 0 : Cannot Display (Cannot access VRAM during display) 1 : Can Display al Character Color Count (N3CHCN, 18002AH, bit 5) 0 : 16 colors (Palette Format) 1 : 256 colors (Palette Format) (Display in Cell Format) Mosaic Enable (N3MZE, 180022H, bit 3) de See Cell Format (NBG3) 0 : Does not execute Mosaic Process 1 : Executes Mosaic Process Mosaic Size (MZSZx, 180022H ) nfi Horizontal Mosaic Size (MZSZH, 180022H, bit 11~8 ) Vertical Mosaic Size (MZSZV, 180022H, bit 15~12) Screen Scroll Value (N3SCx, 180094H~180096H) For Horizontal Direction (N3SCX, 180094H, bit 10~0 ) Co For Vertical Direction (N3SCY, 180096H, bit 10~0) GA SE 278 Cell Format (NBG3 ) nti Character Size (N3CHSZ, 18002AH, bit 4 ) 0 : 1 H Cell X 1 V Cell 1 : 2 H Cells X 2 V Cells Pattern Name Data Size (N3PNB, 180036H, bit 15) 0 : 2 Words 1 : 1 Word 1 Word (Pattern Name Data Size) al Character Number Supplementary Mode (N3CNSM, 180036H, bit 14) 0 : Character number in pattern name data is 10 bits; reverse function can be selected in character units 1 : Character number in pattern name data is 12 bits; reverse function cannot be selected de Special Priority (N3SPR, 180036H, bit 9) (For Pattern Name Supplementary Data) Special Color Calculation (N3SCC, 180036H, bit 8) (For Pattern Name Supplementary Data) Supplementary Palette Number (N3SPLT, 180036H, bit 7~5 ) 00 : 1 H Page X 1 V Page nfi Supplementary Character Number (N3SCN, 180036H, bit 4~0) Plane Size (N3PLSZ, 18003AH, bit 7~6) 01 : 2 H Pages X 1 V Page Co 10 : 2 H Pages X 2 V Pages Map Offset (N3MP, 18003CH, bit 14~12) Map (N3MPx, 18004CH~18004EH) For Plane A (N3MPA, 18004CH, bit 5~0) For Plane B (N3MPB, 18004CH, bit 13~8) For Plane C ( N3MPC, 18004EH, bit 5~0) For Plane D ( N3MPD, 18004EH, bit 13~8) GA SE ST-58-R2 279 Rotation Scroll Screen (RBG0 ) Transparent Display Enable (R0TPON, 180020H, bit 12) 0 : Turns on Transparent Code (Transparent coded dots become transparent) 1 : Turns off Transparent Code nti (Transparent coded dots are displayed as per their data value) Screen Display Enable (R0ON, 180020H, bit 4) 0 : Cannot Display (Cannot access VRAM during display) 1 : Can Display al Character Color Count (R0CHCN, 18002AH, bit 14~12) 000 : 16 colors (Palette Format) 001 : 256 colors (Palette Format) 010 : 2048 colors (Palette Format) 011 : 32,768 colors (RGB Format) 100 : 16,770,000 colors (RGB Format) Bitmap Enable (R0BMEN, 18002AH, bit 9) 0 1 : Display in Cell Format : Display in Bitmap Format Mosaic Enable (R0MZE, 180022H, bit 4) de See Cell Format (RBG0) See Bitmap Format (RBG0 ) 0 : Does not execute Mosaic Process 1 : Executes Mosaic Process Mosaic Size (MZSZx, 180022H ) (Continued) nfi Horizontal Mosaic Size (MZSZH, 180022H, bit 11~8 ) Vertical Mosaic Size (MZSZV, 180022H, bit 15~12) Co GA SE 280 Cell Format (RBG0 ) Character Size (R0CHSZ, 18002AH, bit 8 ) 0 : 1 H Cell X 1 V Cell 1 : 2 H Cells X 2 V Cells Pattern Name Data Size (R0PNB, 180038H, bit 15) 0 : 2 Words 1 : 1 Word 1 Word (Pattern Name Data Size) ntial Character Number Supplementary Mode (R0CNSM, 180038H, bit 14) 0 : Character number in pattern name data is 10 bits; reverse function can be selected in character units 1 : Character number in pattern name data is 12 bits; reverse function cannot be selected de Special Priority (R0SPR, 180038H, bit 9) (For Pattern Name Supplementary Data) Special Color Calculation (R0SCC, 180038H, bit 8) (For Pattern Name Supplementary Data) Supplementary Palette Number (R0SPLT, 180038H, bit 7~5 ) nfi Supplementary Character Number (R0SCN, 180038H, bit 4~0) Rotation Parameter Mode (RPMD, 1800B0H, bit 1~0) 00 : Mode 0 : Use for Rotation Parameter A See Rotation Parameter A (RBG0 ) Co 01 : Mode 1 : Use for Rotation Parameter B See Rotation Parameter B (RBG0 ) GA SE ST-58-R2 281 For Rotation Parameter A (RBG0 ) Plane Size (RAPLSZ, 18003AH, bit 9~8) 00 : 1 H Page X 1 V Page 01 : 2 H Pages X 1 V Page 10 : 2 H Pages X 2 V Pages Screen Over Process (RAOVR, 18003AH, bit 11~10 ) ntial 00 : Outside the display area it repeats the image set in the display area 01 : Outside the display area it repeats the image set in the Screen Over Pattern Register 10 : Everything outside the display area is transparent 11 : Sets display area to 0 ≤ x < 512 and 0 ≤ y <512 regardless of the plane size or bitmap size. Everything outside the display area is transparent. Screen Over Pattern Name (RAOPN, 1800B8H, bit 15~0 ) Map Offset (RAMP, 18003EH, bit 2~0) Map (RAMPx, 180050H~18005EH ) For Plane A (RAMPA, 180050H, bit 5~0 ) For Plane B (RAMPB, 180050H, bit 13~8 ) For Plane C (RAMPC, 180052H, bit 5~0 ) For Plane D (RAMPD, 180052H, bit 13~8 ) For Plane E (RAMPE, 180054H, bit 5~0 ) For Plane F (RAMPF, 180054H, bit 13~8 ) de For Plane G (RAMPG, 180056H, bit 5~0 ) For Plane H (RAMPH, 180056H, bit 13~8 ) For Plane I (RAMPI, 180058H, bit 5~0) For Plane J (RAMPJ, 180058H, bit 13~8 ) For Plane K (RAMPK, 18005AH, bit 5~0 ) For Plane L (RAMPL, 18005AH, bit 13~8 ) For Plane M (RAMPM, 18005CH, bit 5~0 ) For Plane N (RAMPN, 18005CH, bit 13~8 ) nfi Co For Plane O (RAMPO, 18005EH, bit 5~0 ) For Plane P (RAMPP, 18005EH, bit 13~8 ) GA SE 282 For Rotation Parameter B (RBG0 ) nti Plane Size (RBPLSZ, 18003AH, bit 13~12) 00 : 1 H Page X 1 V Page 01 : 2 H Pages X 1 V Page 10 : 2 H Pages X 2 V Pages Screen Over Process (RBOVR, 18003AH, bit 15~14 ) al 00 : Outside the display area it repeats the image set in the display area 01 : Outside the display area it repeats the image set in the Screen Over Pattern Register 10 : Everything outside the display area is transparent 11 : Sets display area to 0 ≤ x < 512 and 0 ≤ y <512 regardless of the plane size or bitmap size. Everything outside the display area is transparent. Screen Over Pattern Name (RBOPN, 1800BAH, bit 15~0 ) Map Offset (RBMP, 18003EH, bit 6~4) Map (RBMPx, 180060H~18006EH ) For Plane A (RBMPA, 180060H, bit 5~0 ) For Plane B (RBMPB, 180060H, bit 13~8 ) For Plane C (RBMPC, 180062H, bit 5~0 ) For Plane D (RBMPD, 180062H, bit 13~8 ) For Plane E (RBMPE, 180064H, bit 5~0 ) For Plane F (RBMPF, 180064H, bit 13~8 ) de nfi For Plane G (RBMPG, 180066H, bit 5~0 ) For Plane H (RBMPH, 180066H, bit 13~8 ) For Plane I (RBMPI, 180068H, bit 5~0) For Plane J (RBMPJ, 180068H, bit 13~8 ) For Plane K (RBMPK, 18006AH, bit 5~0 ) For Plane L (RBMPL, 18006AH, bit 13~8 ) For Plane M (RBMPM, 18006CH, bit 5~0 ) For Plane N (RBMPN, 18006CH, bit 13~8 ) Bitmap Format (RBG0) Co For Plane O (RBMPO, 18006EH, bit 5~0 ) For Plane P (RBMPP, 18006EH, bit 13~8 ) Bitmap Size (R0BMSZ, 18002AH, bit 10) 0 : 512 H Dots X 256 V Dots 1 : 512 H Dots X 512 V Dots GA Special Priority (R0BMPR, 18002EH, bit 5) Special Color Calculation (R0BMCC, 18002EH, bit 4 ) Supplementary Palette Number (R0BMP, 18002EH, bit 2~0 ) Rotation Parameter Mode (RPMD, 1800B0H, bit 1~0) 00 : Mode 0 : Use for Rotation Parameter A 01 : Mode 1 : Use for Rotation Parameter B SE Map Offset (For Rotation Parameter A) (RAMP, 18003EH, bit 2~0 ) Map Offset (For Rotation Parameter B) (RBMP, 18003EH, bit 6~4 ) ST-58-R2 283 Rotation Scroll Screen (RBG0 ) (Continued) Rotation Data Bank Setting (RDBSxx, 18000EH ) For VRAM-A0 (or VRAM-A ) For VRAM-A1 For VRAM-B0 (or VRAM-B ) For VRAM-B1 (RDBSA0, 18000EH, bit 1~0 ) (RDBSA1, 18000EH, bit 3~2 ) (RDBSB0, 18000EH, bit 5~4 ) (RDBSB1, 18000EH, bit 7~6 ) 00 : Not used as RAM for RBG0 01 : RAM for RBG0 Coefficient Data Table 10 : RAM for RBG0 Pattern Name Table 11 : RAM for RBG0 Character Pattern Table ntial (or Bitmap Pattern) Parameter Read Enable (RxxxSTRE, 1800B2H ) For Rotation Parameter A Xst (RAXSTRE, 1800B2H, bit 0) For Rotation Parameter B Xst (RBXSTRE, 1800B2H, bit 8) For Rotation Parameter A Yst (RAYSTRE, 1800B2H, bit 1) For Rotation Parameter B Yst (RBYSTRE, 1800B2H, bit 9) de For Rotation Parameter A KAst (RAKASTRE, 1800B2H, bit 2) For Rotation Parameter B KAst (RBKASTRE, 1800B2H, bit 10) 0 : Selected parameter is not read per line 1 : Selected parameter is read per line Rotation Parameter Table Address (RPTA, 1800BCH, bit 2~1800BEH, bit 1) 00 : Mode 0 : Rotation Parameter A nfi Rotation Parameter Mode (RPMD, 1800B0H, bit 1~0) 01 : Mode 1 : Rotation Parameter B 10 : Mode 2 : A image and B image are switched according to coefficient data read from rotation parameter A coefficient table 11 : Mode 3 : A image and B image are switched according to rotation parameter window Co Coefficient Line Color Enable (RxKLCE, 1800B4H) For Rotation Parameter A (RAKLCE, 1800B4H, bit 4 ) For Rotation Parameter B (RBKLCE, 1800B4H, bit 12 ) 0 : Line color screen data in coefficient data is not used 1 : Line color screen data in coefficient data is used Coefficient Data Mode (RxKMD, 1800B4H) For Rotation Parameter A (RAKMD, 1800B4H, bit 3~2) For Rotation Parameter B (RBKMD, 1800B4H, bit 11~10) 00 : Mode 0 : Used as zoom coefficients kx and ky 01 : Mode 1 : Used as zoom coefficient kx 10 : Mode 2 : Used as zoom coefficient ky GA 11 : Mode 3 : Used as viewpoint coordinate Xp after conversion Coefficient Data Size (RxKDBS, 1800B4H) For Rotation Parameter A (RAKDBS, 1800B4H, bit 1 ) For Rotation Parameter B (RBKDBS, 1800B4H, bit 9 ) 0 : 2 Words 1 : 1 Word Coefficient Table Enable (RxKTE, 1800B4H) For Rotation Parameter A (RAKTE, 1800B4H, bit 0 ) For Rotation Parameter B (RBKTE, 1800B4H, bit 8 ) SE 0 : Does not use Coefficient Table 1 : Uses Coefficient Table Coefficient Table Address Offset (RxKTAOS, 1800B6H) For Rotation Parameter A (RAKTAOS, 1800B6H, bit 2~0 ) For Rotation Parameter B (RBKTAOS, 1800B6H, bit 10~8 ) 284 Rotation Scroll Screen (RBG1 ) nti Transparent Display Enable (For NBG0) (N0TPON, 180020H, bit 8) 0 : Turns on Transparent Code (Transparent coded dots become transparent) 1 : Turns off Transparent Code (Transparent coded dots are displayed as per their data value) Screen Display Enable (R1ON, 180020H, bit 5) 0 : Cannot Display (Cannot access VRAM during display) 1 : Can Display Character Color Count (For NBG0) (N0CHCN, 180028H, bit 6~4) 000 : 001 : 010 : 16 colors 256 colors 2048 colors (Palette Format) (Palette Format) (Palette Format) al 011 : 32786 colors 100 : 16,770,000 colors (Display in Cell Format) (RGB Format) (RBG Format) de See Cell Format (RBG1) Mosaic Enable (For NBG0) (N0MZE, 180022H, bit 0) 1 : Executes Mosaic Process nfi 0 : Does not execute Mosaic Process Mosaic Size (MZSZx, 180022H ) Horizontal Mosaic Size (MZSZH, 180022H, bit 11~8 ) Vertical Mosaic Size (MZSZV, 180022H, bit 15~12) Co GA SE ST-58-R2 285 Cell Format (RBG1 ) Character Size (For NBG0 ) (N0CHSZ, 180028H, bit 0 ) 0 : 1 H Cell X 1 V Cell 1 : 2 H Cells X 2 V Cells Pattern Name Data Size (For NBG0) (N0PNB, 180030H, bit 15) 0 : 2 Words 1 : 1 Word 1 Word (Pattern Name Data Size) ntial Character Number Supplementary Mode (For NBG0) (N0CNSM, 180030H, bit 14) 0 : Character number in pattern name data is 10 bits, reverse function can be selected per character unit 1 : Character number in pattern name data is 12 bits, reverse function cannot be selected (For Pattern Name Supplementary Data) de Special Priority (For NBG0) (N0SPR, 180030H, bit 9) Special Color Calculation (For NBG0 ) (N0SCC, 180030H, bit 8) (For Pattern Name Supplementary Data) Supplementary Palette Number (For NBG0 ) (N0SPLT, 180030H, bit 7~5 ) (For use of Rotation Parameter B) nfi Supplementary Character Number (For NBG0) (N0SCN, 180030H, bit 4~0) For Rotation Parameter B (RBG1 ) Plane Size (RBPLSZ, 18003AH, bit 13~12) 00 : 1 H Page X 1 V Page See Rotation Parameter B (RBG1) 01 : 2 H Pages X 1 V Page 10 : 2 H Pages X 2 V Pages Co Screen Over Process (RBOVR, 18003AH, bit 15~14 ) 00 : Outside the display area it repeats the image set in the display area 01 : Outside the display area it repeats the image set in the Screen Over Pattern Register 10 : Everything outside the display area is transparent 11 : Sets display area to 0 ≤ x < 512 and 0 ≤ y <512 regardless of the plane size or bitmap size. Everything outside the display area is transparent. Screen Over Pattern Name (RBOPN, 1800BAH, bit 15~0 ) GA Map Offset (RBMP, 18003EH, bit 6~4) Map (RBMPx, 180060H~18006EH ) For Plane A (RBMPA, 180060H, bit 5~0 ) For Plane B (RBMPB, 180060H, bit 13~8 ) For Plane C (RBMPC, 180062H, bit 5~0 ) For Plane D (RBMPD, 180062H, bit 13~8 ) For Plane E (RBMPE, 180064H, bit 5~0 ) For Plane F (RBMPF, 180064H, bit 13~8 ) For Plane G (RBMPG, 180066H, bit 5~0 ) For Plane H (RBMPH, 180066H, bit 13~8 ) SE For Plane I (RBMPI, 180068H, bit 5~0) For Plane J (RBMPJ, 180068H, bit 13~8 ) For Plane K (RBMPK, 18006AH, bit 5~0 ) For Plane L (RBMPL, 18006AH, bit 13~8 ) For Plane M (RBMPM, 18006CH, bit 5~0 ) For Plane N (RBMPN, 18006CH, bit 13~8 ) For Plane O (RBMPO, 18006EH, bit 5~0 ) For Plane P (RBMPP, 18006EH, bit 13~8 ) 286 Line Color Screen (LNCL) Line Color Screen Color Mode (LCCLMD, 1800A8H, bit 15) 0 : Single Color 1 : Select per line nti Line Color Screen Table Address (LCTA, 1800A8H, bit 2~1800AAH, bit 0) Back Screen (BACK) Back Screen Color Mode (BKCLMD, 1800ACH, bit 15) al 0 : Single Color 1 : Set each line Back Screen Table Address (BKTA, 1800ACH, bit 2~1800AEH, bit 0) Window Normal Rectangular Window W0 de W1 Normal Line Window Sprite Window : SW Normal Rectangular Window nfi Window Position (For Horizontal Coordinate) (WxxX, 1800C0H~1800CCH ) W0 Start Point Coordinate (W0SX, 1800C0H, bit 9~0) Co W0 End Point Coordinate (W0EX, 1800C4H, bit 9~0) W1 Start Point Coordinate (W1SX, 1800C8H, bit 9~0) W1 End Point Coordinate (W1EX, 1800CCH, bit 9~0) Window Position (For Vertical Coordinate) (WxxY, 1800C2H~1800CEH ) W0 Start Point Coordinate (W0SY, 1800C2H, bit 8~0) W0 End Point Coordinate (W0EY, 1800C6H, bit 8~0) W1 Start Point Coordinate (W1SY, 1800CAH, bit 8~0) W1 End Point Coordinate (W1EY, 1800CEH, bit 8~0) Normal Line Window GA Line Window Enable (WxLWE, 1800D8H~1800DCH) For W0 (W0LWE, 1800D8H, bit 15) For W1 (W1LWE, 1800DCH, bit 15 ) 0 : Does not set normal window to line window 1 : Sets normal window to line window Line Window Table Address (WxLWTA, 1800D8H~1800DEH) For W0 (W0LWTA, 1800D8H, bit 2~1800DAH, bit 1 ) For W1 (W1LWTA, 1800DCH, bit 2~1800DEH, bit 1) Sprite Window SE Sprite Window Enable (SPWINEN, 1800E0H, bit 4) 0 : Does not use Sprite Window 1 : Uses Sprite Window ST-58-R2 287 Window Control Window Logic (xxLOG, 1800D0H~1800D6H) nti For NBG0 of Transparent Process Window (or RBG1 ) (N0L0G, 1800D0H, bit 7) For NBG1 of Transparent Process Window (or EXBG) (N1L0G, 1800D0H, bit 15) For NBG2 of Transparent Process Window (N2L0G, 1800D2H, bit 7) For NBG3 of Transparent Process Window (N3L0G, 1800D2H, bit 15) For RBG0 of Transparent Process Window (R0L0G, 1800D4H, bit 7) For Sprite of Transparent Process Window For Rotation Parameter Window For Color Calculation Window 0 : OR 1 : AND Window Enable (For W0 ) (xxW0E, 1800D0H~1800D6H ) For NBG0 of Transparent Process Window (or RBG1 ) For NBG1 of Transparent Process Window (or EXBG) al (SPL0G, 1800D4H, bit 15) (RPL0G, 1800D6H, bit 7) (CCL0G, 1800D6H, bit 15) (N0W0E, 1800D0H, bit 1) (N1W0E, 1800D0H, bit 9) For NBG2 of Transparent Process Window For NBG3 of Transparent Process Window For RBG0 of Transparent Process Window For Sprite of Transparent Process Window For Rotation Parameter Window For Color Calculation Window 0 : Does not use W0 Window 1 : Uses W0 Window de (N2W0E, 1800D2H, bit 1) (N3W0E, 1800D2H, bit 9) (R0W0E, 1800D4H, bit 1) (SPW0E, 1800D4H, bit 9) (RPW0E, 1800D6H, bit 1) (CCW0E, 1800D6H, bit 9) For NBG2 of Transparent Process Window nfi Window Enable (For W1 ) (xxW1E, 1800D0H~1800D6H ) For NBG0 of Transparent Process Window (or RBG1 ) For NBG1 of Transparent Process Window (or EXBG) For NBG3 of Transparent Process Window For RBG0 of Transparent Process Window For Sprite of Transparent Process Window For Rotation Parameter Window (N0W1E, 1800D0H, bit 3) (N1W1E, 1800D0H, bit 11) (N2W1E, 1800D2H, bit 3) (N3W1E, 1800D2H, bit 11) (R0W1E, 1800D4H, bit 3) (SPW1E, 1800D4H, bit 11) (RPW1E, 1800D6H, bit 3) 1 : Uses W1 Window Co For Color Calculation Window 0 : Does not use W1 Window Window Enable (For SW ) (xxSWE, 1800D0H~1800D6H ) For NBG0 of Transparent Process Window (or RBG1 ) For NBG1 of Transparent Process Window (or EXBG) For NBG2 of Transparent Process Window For NBG3 of Transparent Process Window (CCW1E, 1800D6H, bit 11) (N0SWE, 1800D0H, bit 5) (N1SWE, 1800D0H, bit 13) (N2SWE, 1800D2H, bit 5) (N3SWE, 1800D2H, bit 13) For RBG0 of Transparent Process Window (R0SWE, 1800D4H, bit 5) For Sprite of Transparent Process Window (SPSWE, 1800D4H, bit 13) GA For Color Calculation Window (CCSWE, 1800D6H, bit 13) 0 : Does not use SW Window 1 : Uses SW Window (Continued) SE 288 Window Control (Continued) Window Area (For W0 ) (xxW0A, 1800D0H~1800D6H ) For NBG0 of Transparent Process Window (or RBG1 ) For NBG1 of Transparent Process Window (or EXBG) For NBG2 of Transparent Process Window For NBG3 of Transparent Process Window For RBG0 of Transparent Process Window For Sprite of Transparent Process Window For Rotation Parameter Window For Color Calculation Window 0 : Activates Inside of W0 Window 1 : Activates Outside of W0 Window nti (N0W0A, 1800D0H, bit 0) (N1W0A, 1800D0H, bit 8) (N2W0A, 1800D2H, bit 0) (N3W0A, 1800D2H, bit 8) (R0W0A, 1800D4H, bit 0) al (SPW0A, 1800D4H, bit 8) (RPW0A, 1800D6H, bit 0) (CCW0A, 1800D6H, bit 8) Window Area (For W1 ) (xxW1A, 1800D0H~1800D6H ) For NBG0 of Transparent Process Window (or RBG1 ) (N0W1A, 1800D0H, bit 2) For NBG1 of Transparent Process Window (or EXBG) (N1W1A, 1800D0H, bit 10) For Rotation Parameter Window de For NBG2 of Transparent Process Window For NBG3 of Transparent Process Window For RBG0 of Transparent Process Window For Sprite of Transparent Process Window For Color Calculation Window 0 : Activates Inside of W1 Window 1 : Activates Outside of W1 Window (N2W1A, 1800D2H, bit 2) (N3W1A, 1800D2H, bit 10) (R0W1A, 1800D4H, bit 2) (SPW1A, 1800D4H, bit 10) (RPW1A, 1800D6H, bit 2) (CCW1A, 1800D6H, bit 10) nfi Window Area (For SW ) (xxSWA, 1800D0H~1800D6H ) For NBG0 of Transparent Process Window (or RBG1 ) For NBG1 of Transparent Process Window (or EXBG) For NBG2 of Transparent Process Window For NBG3 of Transparent Process Window For RBG0 of Transparent Process Window For Sprite of Transparent Process Window (N0SWA, 1800D0H, bit 4) (N1SWA, 1800D0H, bit 12) (N2SWA, 1800D2H, bit 4) (N3SWA, 1800D2H, bit 12) (R0SWA, 1800D4H, bit 4) (SPSWA, 1800D4H, bit 12) Co For Color Calculation Window 0 : Activates Inside of SW Window 1 : Activates Outside of SW Window (CCSWA, 1800D6H, bit 12) GA SE ST-58-R2 289 Sprite Sprite Color Calculation Condition (SPCCCS, 1800E0H, bit 13~12) 00 : When (Priority Number) ≤ (Color Calculation Condition Number) 01 : When (Priority Number) = (Color Calculation Condition Number) 10 : When (Priority Number) ≥ (Color Calculation Condition Number) 11 : When the MSB of the Color Data is 1 Sprite Color Calculation Condition Number (SPCCN, 1800E0H, BIT 10~8) Sprite Color Mode (SPCLMD, 1800E0H, bit 5) 0 : All sprite data is palette format only ntial 1 : Sprite data is a combination of palette format and RGB format Sprite Window Enable (SPWINEN, 1800E0H, bit 4 ) 0 : Does not use Sprite Window 1 : Uses Sprite Window Sprite Type (SPTYPE, 1800E0H, bit 3~0) Priority Number (For Sprite) (SxPRIN, 1800F0H~1800F6H) For Sprite Register 0 For Sprite Register 1 For Sprite Register 2 For Sprite Register 3 (S0PRIN, 1800F0H, bit 2~0) (S1PRIN, 1800F0H, bit 10~8) (S2PRIN, 1800F2H, bit 2~0) (S3PRIN, 1800F2H, bit 10~8) de For Sprite Register 4 For Sprite Register 5 For Sprite Register 6 For Sprite Register 7 nfi (S4PRIN, 1800F4H, bit 2~0) (S5PRIN, 1800F4H, bit 10~8) (S6PRIN, 1800F6H, bit 2~0) (S7PRIN, 1800F6H, bit 10~8) Color Calculation Ratio (For Sprite) (SxCCRT, 180100H~180106H) For Sprite Register 0 For Sprite Register 1 (S0CCRT, 180100H, bit 4~0) (S1CCRT, 180100H, bit 12~8) For Sprite Register 2 For Sprite Register 3 For Sprite Register 4 For Sprite Register 5 For Sprite Register 6 For Sprite Register 7 Co (S2CCRT, 180102H, bit 4~0) (S3CCRT, 180102H, bit 12~8) (S4CCRT, 180104H, bit 4~0) (S5CCRT, 180104H, bit 12~8) (S6CCRT, 180106H, bit 4~0) (S7CCRT, 180106H, bit 12~8) GA SE 290 Do t Col or Dat a Co lor RAM Addr es s Offs et (xx CAOS, 1800E4H ~1800E6H ) Fo rNBG0 ( or RBG1) Fo rNBG1 ( or EXBG) Fo rNBG2 Fo rNBG3 Fo rRBG0 Fo r Spr ite Fo rNBG0 ( or RBG1) (N0 CAOS, 1800E4H , bi t 2~0) (N1 CAOS, 1800E4H , bi t 6~4) (N2 CAOS, 1800E4H , bi t 10~8) (N3 CAOS, 1800E4H , bi t 14~12) (R0 CAOS, 1800E6H , bi t 2~0) (SPC AOS, 1800E6H, bi t 4~0) Spec ial F unct ion C ode Sel ec t (xx SFC S, 180024H) (N0 SFC S, 180024H, bi t 0) ntial Fo r NBG1 ( or EXBG) (N1 SFC S, 180024H, bi t 1) Fo r NBG2 (N2 SFC S, 180024H, bi t 2) Fo r NBG3 (N3 SFC S, 180024H, bi t 3) Fo r RBG0 (R0 SFC S, 180024H, bi t 4) 0 : Act ivat es Speci al Func ti on Code A 1 : Act ivat es Speci al Func ti on Code B Spec ial F unct ion C ode ( SF CD xx , 180026H) de Fo r Spec ial F unct ion Code A (SFC DAx , 180026H, bi t 7~0) Fo r Spec ial F unct ion Code B (SFC DBx , 180026H, bi t 15~8) SF CDx 0 : Wh en D ot Col or Code' s lower 4 bi ts ar e 0H or 1H SF CDx 1 : Wh en D ot Col or Code' s lower 4 bi ts ar e 2H or 3H SF CDx 2 : Wh en D ot Col or Code' s lower 4 bi ts ar e 4H or 5H 1 0 nfi SF CDx 3 : Wh en D ot Col or Code' s lower 4 bi ts ar e 6H or 7H SF CDx 4 : Wh en D ot Col or Code' s lower 4 bi ts ar e 8H or 9H SF CDx 5 : Wh en D ot Col or Code' s lower 4 bi ts ar e AH or BH SF CDx 6 : Wh en D ot Col or Code' s lower 4 bi ts ar e CH or D H SF CDx 7 : Wh en D ot Col or Code' s lower 4 bi ts ar e EH or FH : Do es not use Speci al Func ti on : Us es Spec ial F unct ion Co GA SE ST-58-R2 291 Priority Line Color Screen Insert Enable (xxLCEN, 1800E8H ) For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For Sprite (N0LCEN, 1800E8H, bit 0) (N1LCEN, 1800E8H, bit 1) (N2LCEN, 1800E8H, bit 2) (N3LCEN, 1800E8H, bit 3) (R0LCEN, 1800E8H, bit 4) (SPLCEN, 1800E8H, bit 5 ) ntial 0 : Does not insert line color screen when the corresponding screen is the top image 1 : Inserts line color screen when the corresponding screen is the top image Special Priority Mode (xxSPRM, 1800EAH) For NBG0 (or RBG1) (N0SPRM, 1800EAH, bit 1~0) For NBG1 (or EXBG) (N1SPRM, 1800EAH, bit 3~2) For NBG2 (N2SPRM, 1800EAH, bit 5~4) For NBG3 (N3SPRM, 1800EAH, bit 7~6) For RBG0 (R0SPRM, 1800EAH, bit 9~8) 00 : Mode 0 : Selects number LSB per screen 01 : Mode 1 : Selects number LSB per character 10 : Mode 2 : Selects number LSB per dot de Special Priority Number (For Scroll Screen) (xxPRIN, 1800F8H~1800FCH) For NBG0 (or RBG1) For NBG1 (or EXBG) (N0PRIN, 1800F8H, bit 2~0) (N1PRIN, 1800F8H, bit 10~8) For NBG2 For NBG3 For RBG0 nfi (N2PRIN, 1800FAH, bit 2~0) (N3PRIN, 1800FAH, bit 10~8) (R0PRIN, 1800FCH, bit 2~0) Co GA SE 292 Color Calculation Gradation Calculation Enable (BOKEN, 1800ECH, bit 15) 0 : Does not use Gradation Calculation Function 1 : Uses Gradation Calculation Function Gradation Screen Number (BOKN, 1800ECH, bit 14~12) 000 : Sprite 001 : RBG0 010 : NBG0 or RBG1 100 : NBG1 or EXBG 101 : NBG2 ntial 110 : NBG3 Expanded Color Calculation Enable (EXCCEN, 1800ECH, bit 10) 0 : Does not use Expanded Color Calculation 1 : Uses Expanded Color Calculation de Color Calculation Ratio Mode (CCRTMD, 1800ECH, bit 9 ) 0 : Mode 0 : In the case of color calculation, select per top image side 1 : Mode 1 : In the case of color calculation, select per second image side Color Calculation Mode (CCMD, 1800ECH, bit 8) 0 : Mode 0 : Add according to the register value color calculation ratio 1 : Mode 1 : Add as is For NBG0 (or RBG1) nfi Color Calculation Enable (xxCCEN, 1800ECH) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For LNCL (N0CCEN, 1800ECH, bit 0) (N1CCEN, 1800ECH, bit 1) (N2CCEN, 1800ECH, bit 2) (N3CCEN, 1800ECH, bit 3) (R0CCEN, 1800ECH, bit 4) (LCCCEN, 1800ECH, bit 5) For Sprite Co (SPCCEN, 1800ECH, bit 6 ) 0 : Does not do Color Calculation 1 : Does Color Calculation Special Color Calculation Mode (xxSCCM, 1800EEH) For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 (N0SCCM, 1800EEH, bit 1~0) (N1SCCM, 1800EEH, bit 3~2) (N2SCCM, 1800EEH, bit 5~4) (N3SCCM, 1800EEH, bit 7~6) For RBG0 (R0SCCM, 1800EEH, bit 9~8) 00 : Mode 0 : Select color calculation enable per screen 01 : Mode 1 : Select color calculation enable per character GA 10 : 11 : Mode 2 : Select color calculation enable per dot Mode 3 : Select color calculation enable per MSB of color data Color Calculation Ratio (For Scroll Screen) (xxCCRT, 180108H~18010EH) For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 (N0CCRT, 180108H, bit 4~0) (N1CCRT, 180108H, bit 12~8) (N2CCRT, 18010AH, bit 4~0) (N3CCRT, 18010AH, bit 12~8) (R0CCRT, 18010CH, bit 4~0) For LNCL (LCCCRT, 18010EH, bit 4~0) SE For BACK (BKCCRT, 18010EH, bit 12~8 ) ST-58-R2 293 Color Offset Color Offset Enable (xxCOEN, 180110H ) For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For BACK For Sprite (N0COEN, 180110H, bit 0) (N1COEN, 180110H, bit 1) (N2COEN, 180110H, bit 2) (N3COEN, 180110H, bit 3) (R0COEN, 180110H, bit 4) (BKCOEN, 180110H, bit 5) (SPCOEN, 180110H, bit 6 ) 0 : Does not use Color Offset Function 1 : Uses Color Offset Function ntial Color Offset Select (xxCOSL, 180112H) For NBG0 (or RBG1) (N0COSL, 180112H, bit 0) For NBG1 (or EXBG) (N1COSL, 180112H, bit 1) For NBG2 (N2COSL, 180112H, bit 2) For NBG3 For RBG0 For BACK For Sprite (N3COSL, 180112H, bit 3) (R0COSL, 180112H, bit 4) (BKCOSL, 180112H, bit 5) (SPCOSL, 180112H, bit 6) 0 : Uses value of Color Offset A 1 : Uses value of Color Offset B Color Offset Value (COxxx, 180114H~18011EH) de For Color Offset A Red Data nfi (COARD, 180114H, bit 8~0 ) For Color Offset A Green Data (COAGR, 180116H, bit 8~0 ) For Color Offset A Blue Data For Color Offset B Red Data (COABL, 180118H, bit 8~0 ) (COARD, 18011AH, bit 8~0 ) For Color Offset B Green Data (COAGR, 18011CH, bit 8~0 ) For Color Offset B Blue Data (COABL, 18011EH, bit 8~0 ) Shadow Function Co Shadow Enable (xxSDEN, 1800E2H) For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 (N0SDEN, 1800E2H, bit 0) (N1SDEN, 1800E2H, bit 1) (N2SDEN, 1800E2H, bit 2) (N3SDEN, 1800E2H, bit 3) (R0SDEN, 1800E2H, bit 4) For BACK (BKSDEN, 1800E2H, bit 5 ) 0 : Does not use Shadow Function (Does not add shadow) 1 : Uses Shadow Function (Adds shadow) GA Transparent Shadow Select (TPSDSL, 1800E2H) 0 : Disables Transparent Shadow Sprite 1 : Enables Transparent Shadow Sprite SE 294 ntial Chapter 16 Quick Reference de nfi Co GA SE 16.1 16.2 16.3 16.4 Register Map.......................... . 296 Register Bit List...................... . 315 Register Bit Functions........... .. 328 Table List................................. 389 ST-58-R2 295 Quick reference contains registers and VRAM tables as follows: (1) Register Map: Shows registers in order of addresses; shows (2) Register Bit List: register bit abbreviations. nti Shows in order of register names; shows register al bit names, bit abbreviations, addresses and bit positions. (3) Register Bit Functions: Shows register bit functions in order of register address. (4) Table List: Shows VRAM table configuration. 16.1 Register Map de nfi (A listing of the register maps begin on the next page.) Co GA SE 296 • TV SCREEN MODE (READ ALLOWED) 15 14 13 12 11 10 9 8 nti TVMD DISP ~ ~ ~ ~ ~ ~ BDCLMD 180000H 7 6 5 4 3 2 1 0 LSMD1 LSMD0 VRESO1 VRESO0 ~ HRESO2 HRESO1 HRESO0 • EXTERNAL SIGNAL ENABLE REGISTER (READ ALLOWED) EXTEN 180002H 15 ~ 7 ~ 14 ~ 6 ~ • SCREEN STATUS (READ ONLY) 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ al 10 ~ 2 ~ 9 EXLTEN 1 DASEL 8 EXSYEN 0 EXBGEN TVSTAT 180004H 15 ~ 7 ~ 15 14 ~ 6 ~ • VRAM SIZE (READ ALLOWED) 14 13 ~ 5 ~ 13 de12 ~ 4 ~ 12 11 ~ 3 VBLANK 11 10 ~ 2 HBLANK 10 9 EXLTFG 1 ODD 9 8 EXSYFG 0 PAL 8 VRSIZE 180006H VRAMSZ 7 ~ ~ 6 ~ • H-COUNTER (READ ONLY) 15 14 nfi ~ 5 ~ 13 ~ 4 ~ 12 ~ 3 VER3 11 ~ 2 VER2 10 ~ 1 VER1 9 ~ 0 VER0 8 HCNT 180008H VCNT ~ 7 HCT7 15 ~ Co ~ 6 HCT6 • V-COUNTER (READ ONLY) 14 ~ ~ 5 HCT5 13 ~ ~ 4 HCT4 12 ~ ~ 3 HCT3 11 ~ ~ 2 HCT2 10 ~ HCT9 1 HCT1 9 VCT9 HCT8 0 HCT0 8 VCT8 18000AH 7 6 5 4 3 2 1 0 VCT7 VCT6 VCT5 VCT4 VCT3 VCT2 VCT1 VCT0 GA • RESERVE 18000CH 15 ~ 7 ~ 14 ~ 6 ~ • RAM CONTROL (READ ALLOWED) 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 ~ 9 ~ 1 ~ 8 ~ 0 ~ 15 14 13 12 11 10 9 8 SE RAMCTL 18000EH ~ 7 ~ 6 CRMD1 5 CRMD0 4 ~ 3 ~ 2 VRBMD 1 VRAMD 0 RDBSB11 RDBSB10 RDBSB01 RDBSB00 RDBSA11 RDBSA10 RDBSA01 RDBSA00 ST-58-R2 297 • VRAM CYCLE PATTERN (BANK A0) 15 14 13 12 11 10 9 8 CYCA0L 180010H CYCA0U 180012H VCP0A03 VCP0A02 VCP0A01 VCP0A00 VCP1A03 VCP1A02 VCP1A01 VCP1A00 7 7 6 14 6 5 VCP2A03 VCP2A02 VCP2A01 VCP2A00 VCP3A03 VCP3A02 VCP3A01 VCP3A00 • VRAM CYCLE PATTERN (BANK A0) 15 13 4 12 3 11 nti 2 10 al 1 9 0 8 VCP4A03 VCP4A02 VCP4A01 VCP4A00 VCP5A03 VCP5A02 VCP5A01 VCP5A00 5 4 3 2 1 0 VCP6A03 VCP6A02 VCP6A01 VCP6A00 VCP7A03 VCP7A02 VCP7A01 VCP7A00 • VRAM CYCLE PATTERN (BANK A1) CYCA1L 180014H 15 15 14 14 13 • VRAM CYCLE PATTERN (BANK A1) 13 12 VCP0A13 VCP0A12 VCP0A11 VCP0A10 VCP1A13 VCP1A12 VCP1A11 VCP1A10 7 6 5 4 de 11 3 10 2 9 1 8 0 VCP2A13 VCP2A12 VCP2A11 VCP2A10 VCP3A13 VCP3A12 VCP3A11 VCP3A10 12 11 10 9 8 CYCA1U 180016H VCP4A13 VCP4A12 VCP4A11 VCP4A10 VCP5A13 VCP5A12 VCP5A11 VCP5A10 7 15 6 14 5 • VRAM CYCLE PATTERN (BANK BO) 13 nfi 4 12 3 11 2 10 1 9 0 VCP6A13 VCP6A12 VCP6A11 VCP6A10 VCP7A13 VCP7A12 VCP7A11 VCP7A10 8 CYCB0L 180018H CYCB0U VCP0B03 VCP0B02 VCP0B01 VCP0B00 VCP1B03 VCP1B02 VCP1B01 VCP1B00 7 6 Co 5 4 3 2 1 0 VCP2B03 VCP2B02 VCP2B01 VCP2B00 VCP3B03 VCP3B02 VCP3B01 VCP3B00 • VRAM CYCLE PATTERN (BANK BO) 15 14 13 12 11 10 9 8 VCP4B03 VCP4B02 VCP4B01 VCP4B00 VCP5B03 VCP5B02 VCP5B01 VCP5B00 18001AH 7 6 5 4 3 2 1 0 VCP6B03 VCP6B02 VCP6B01 VCP6B00 VCP7B03 VCP7B02 VCP7B01 VCP7B00 18001CH GA • VRAM CYCLE PATTERN (BANK B1) CYCB1L 15 14 13 12 11 10 9 8 VCP0B13 VCP0B12 VCP0B11 VCP0B10 VCP1B13 VCP1B12 VCP1B11 VCP1B10 7 6 5 4 3 2 1 0 VCP2B13 VCP2B12 VCP2B11 VCP2B10 VCP3B13 VCP3B12 VCP3B11 VCP3B10 • VRAM CYCLE PATTERN (BANK B1) 15 14 13 12 11 10 9 8 SE CYCB1U 18001EH VCP4B13 VCP4B12 VCP4B11 VCP4B10 VCP5B13 VCP5B12 VCP5B11 VCP5B10 7 6 5 4 3 2 1 0 VCP6B13 VCP6B12 VCP6B11 VCP6B10 VCP7B13 VCP7B12 VCP7B11 VCP7B10 298 • SCREEN DISPLAY ENABLE 15 14 13 12 11 10 9 8 nti BGON ~ ~ ~ R0TPON N3TPON N2TPON N1TPON N0TPON 180020H 7 6 5 4 3 2 1 0 ~ ~ R1ON R0ON N3ON N2ON N1ON N0ON • MOSAIC CONTROL MZCTL 180022H 15 MZSZV3 7 ~ 14 MZSZV2 6 ~ MZSZV1 • SPECIAL FUNCTION CODE SELECT 13 5 ~ 12 MZSZV0 4 R0MZE 11 3 al MZSZH3 N3MZE 10 MZSZH2 2 N2MZE 9 MZSZH1 1 N1MZE 8 MZSZH0 0 N0MZE SFSEL 180024H 15 ~ 7 ~ 15 14 ~ 6 ~ • SPECIAL FUNCTION CODE 14 13 ~ 5 ~ 13 de12 ~ 4 R0SFCS 12 11 ~ 3 N3SFCS 11 10 ~ 2 N2SFCS 10 9 ~ 1 N1SFCS 9 8 ~ 0 N0SFCS 8 SFCODE 180026H SFCDB7 7 SFCDA7 SFCDB6 6 SFCDA6 nfi SFCDB5 SFCDA5 • CHARACTER CONTROL (NBG0, NBG1) 15 14 5 13 SFCDB4 12 4 SFCDA4 SFCDB3 11 3 SFCDA3 SFCDB2 SFCDA2 10 2 9 SFCDB1 1 SFCDA1 SFCDB0 0 SFCDA0 8 CHCTLA 180028H CHCTLB ~ 7 ~ 15 ~ Co ~ 6 N1CHCN1 N1CHCN0 N1BMSZ1 N1BMSZ0 N1BMEN 5 4 3 2 1 N0CHCN2 N0CHCN1 N0CHCN0 N0BMSZ1 N0BMSZ0 N0BMEN • CHARACTER CONTROL (NBG2, NBG3, RBG0) 14 13 12 R0CHCN2 R0CHCN1 R0CHCN0 11 ~ 10 R0BMSZ 9 R0BMEN N1CHSZ 0 N0CHSZ 8 R0CHSZ 18002AH 7 6 5 4 3 2 1 0 ~ ~ N3CHCN N3CHSZ ~ ~ N2CHCN N2CHSZ GA • BITMAP PALETTE NUMBER (NBGO, NBG1) BMPNA 18002CH 15 ~ 7 ~ 14 ~ 6 ~ N1BMPR N0BMPR • BITMAP PALETTE NUMBER (RBG0) 13 5 12 N1BMCC 4 N0BMCC 11 ~ 3 ~ 10 N1BMP6 2 N0BMP6 9 N1BMP5 1 N0BMP5 8 N1BMP4 0 N0BMP4 15 14 13 12 11 10 9 8 SE BMPNB 18002EH ~ 7 ~ ~ 6 ~ ~ 5 R0BMPR ~ 4 R0BMCC ~ 3 ~ ~ 2 R0BMP6 ~ 1 R0BMP5 ~ 0 R0BMP4 ST-58-R2 299 • PATTERN NAME CONTROL (NBG0) 15 14 13 12 11 10 9 8 nti PNCN0 N0PNB N0CNSM ~ ~ ~ ~ N0SPR N0SCC 180030H 7 6 5 4 3 2 1 0 N0SPLT6 N0SPLT5 N0SPLT4 N0SCN4 N0SCN3 N0SCN2 N0SCN1 N0SCN0 • PATTERN NAME CONTROL (NBG1) PNCN1 180032H 15 N1PNB 7 14 N1CNSM 6 13 N1SPLT6 N1SPLT5 N1SPLT4 • PATTERN NAME CONTROL (NBG2) ~ 5 12 ~ 4 N1SCN4 11 ~ 3 N1SCN3 10 ~ 2 al N1SCN2 9 N1SPR 1 N1SCN1 8 N1SCC 0 N1SCN0 PNCN2 180034H 15 N2PNB 7 15 14 N2CNSM 6 14 13 • PATTERN NAME CONTROL (NBG3) ~ 5 N2SPLT6 N2SPLT5 N2SPLT4 13 12 ~ 4 N2SCN4 12 de 11 ~ 3 N2SCN3 11 10 ~ 2 N2SCN2 10 9 N2SPR 1 N2SCN1 9 8 N2SCC 0 N2SCN0 8 PNCN3 180036H N3PNB 7 15 N3CNSM 6 N3SPLT6 N3SPLT5 N3SPLT4 • PATTERN NAME CONTROL (RBG0) 14 ~ 5 13 nfi ~ 4 N3SCN4 12 ~ 3 N3SCN3 11 ~ 2 N3SCN2 10 N3SPR 1 N3SCN1 9 N3SCC 0 N3SCN0 8 PNCR 180038H R0PNB R0SPLT6 R0SPLT5 R0SPLT4 • PLANE SIZE PLSZ 7 15 R0CNSM 6 14 Co ~ 5 13 12 ~ 4 R0SCN4 11 ~ 3 R0SCN3 10 ~ 2 R0SCN2 9 R0SPR 1 R0SCN1 RBOVR1 RBOVR0 RBPLSZ1 RBPLSZ0 RAOVR1 RAOVR0 RAPLSZ1 RAPLSZ0 8 R0SCC 0 R0SCN0 18003AH 7 6 5 4 3 2 1 0 N3PLSZ1 N3PLSZ0 N2PLSZ1 N2PLSZ0 N1PLSZ1 N1PLSZ0 N0PLSZ1 N0PLSZ0 GA • MAP OFFSET (NBG0~NBG3) MPOFN 18003CH 15 ~ 7 ~ 14 N3MP8 6 N1MP8 13 N3MP7 5 N1MP7 N3MP6 N1MP6 • MAP OFFSET (ROTATION PARAMETER A,B) 12 4 11 ~ 3 ~ 10 N2MP8 2 N0MP8 9 N2MP7 1 N0MP7 8 N2MP6 0 N0MP6 15 14 13 12 11 10 9 8 SE MPOFR 18003EH ~ 7 ~ ~ 6 RBMP8 ~ 5 RBMP7 ~ 4 RBMP6 ~ 3 ~ ~ 2 RAMP8 ~ 1 RAMP7 ~ 0 RAMP6 300 • MAP (NBG0, PLANE A,B) 15 14 13 12 11 10 9 8 nti MPABN0 ~ ~ N0MPB5 N0MPB4 N0MPB3 N0MPB2 N0MPB1 N0MPB0 180040H 7 6 5 4 3 2 1 0 ~ ~ N0MPA5 N0MPA4 N0MPA3 N0MPA2 N0MPA1 N0MPA0 • MAP (NBG0, PLANE C,D) MPCDN0 180042H 15 ~ 7 ~ 14 ~ 6 ~ • MAP (NBG1, PLANE A,B) 13 N0MPD5 5 N0MPC5 12 N0MPD4 4 N0MPC4 11 N0MPD3 3 al N0MPC3 10 N0MPD2 2 N0MPC2 9 N0MPD1 1 N0MPC1 8 N0MPD0 0 N0MPC0 MPABN1 180044H 15 ~ 7 ~ 15 14 ~ 6 ~ • MAP (NBG1, PLANE C,D) 14 13 N1MPB5 5 N1MPA5 13 de12 N1MPB4 4 N1MPA4 12 11 N1MPB3 3 N1MPA3 11 10 N1MPB2 2 N1MPA2 10 9 N1MPB1 1 N1MPA1 9 8 N1MPB0 0 N1MPA0 8 MPCDN1 180046H ~ 7 ~ ~ 6 ~ • MAP (NBG2, PLANE A,B) 15 14 nfi N1MPD5 5 N1MPC5 13 N1MPD4 4 N1MPC4 12 N1MPD3 3 N1MPC3 11 N1MPD2 2 N1MPC2 10 N1MPD1 1 N1MPC1 9 N1MPD0 0 N1MPC0 8 MPABN2 180048H MPCDN2 ~ 7 ~ 15 ~ Co ~ 6 ~ • MAP (NBG2, PLANE C,D) 14 ~ N2MPB5 5 N2MPA5 13 N2MPD5 N2MPB4 4 N2MPA4 12 N2MPD4 N2MPB3 3 N2MPA3 11 N2MPD3 N2MPB2 2 N2MPA2 10 N2MPD2 N2MPB1 1 N2MPA1 9 N2MPD1 N2MPB0 0 N2MPA0 8 N2MPD0 18004AH 7 6 5 4 3 2 1 0 ~ ~ N2MPC5 N2MPC4 N2MPC3 N2MPC2 N2MPC1 N2MPC0 GA • MAP (NBG3, PLANE A,B) MPABN3 18004CH 15 ~ 7 ~ 14 ~ 6 ~ • MAP (NBG3, PLANE C,D) 13 N3MPB5 5 N3MPA5 12 N3MPB4 4 N3MPA4 11 N3MPB3 3 N3MPA3 10 N3MPB2 2 N3MPA2 9 N3MPB1 1 N3MPA1 8 N3MPB0 0 N3MPA0 15 14 13 12 11 10 9 8 SE MPCDN3 18004EH ~ 7 ~ ~ 6 ~ N3MPD5 5 N3MPC5 N3MPD4 4 N3MPC4 N3MPD3 3 N3MPC3 N3MPD2 2 N3MPC2 N3MPD1 1 N3MPC1 N3MPD0 0 N3MPC0 ST-58-R2 301 • MAP (ROTATION PARAMETER A, PLANE A,B) 15 14 13 12 11 10 9 8 MPABRA 180050H MPCDRA 180052H ~ 7 ~ 15 ~ 7 ~ 6 ~ 14 ~ 6 RAMPB5 5 RAMPA5 13 RAMPD5 5 RAMPB4 4 RAMPA4 • MAP (ROTATION PARAMETER A, PLANE C,D) 12 RAMPD4 4 RAMPB3 3 RAMPA3 11 RAMPD3 3 nti RAMPB2 2 RAMPA2 10 2 al RAMPD2 RAMPB1 1 RAMPA1 9 RAMPD1 1 RAMPB0 0 RAMPA0 8 RAMPD0 0 ~ ~ RAMPC5 RAMPC4 RAMPC3 RAMPC2 RAMPC1 RAMPC0 • MAP (ROTATION PARAMETER A, PLANE E,F) MPEFRA 180054 15 ~ 7 ~ 15 14 ~ 6 ~ 14 13 RAMPF5 5 RAMPE5 13 12 RAMPF4 12 4 RAMPE4 • MAP (ROTATION PARAMETER A, PLANE G,H) 11 de 11 RAMPF3 3 RAMPE3 10 10 RAMPF2 2 RAMPE2 9 9 RAMPF1 1 RAMPE1 8 8 RAMPF0 0 RAMPE0 MPGHRA 180056H ~ 7 ~ • MAP (ROTATION PARAMETER A, PLANE I,J) 15 ~ 6 ~ 14 5 13 4 nfi RAMPH5 RAMPH4 RAMPH3 RAMPH2 RAMPH1 RAMPH0 12 3 11 2 1 10 0 RAMPG5 RAMPG4 RAMPG3 RAMPG2 RAMPG1 RAMPG0 9 8 MPIJRA 180058H MPKLRA ~ 7 ~ 15 ~ ~ 6 ~ 14 ~ Co RAMPJ5 5 RAMPI5 13 RAMPL5 RAMPJ4 4 RAMPI4 • MAP (ROTATION PARAMETER A, PLANE K,L) 12 RAMPL4 RAMPJ3 3 RAMPI3 11 RAMPL3 RAMPJ2 2 RAMPI2 10 RAMPL2 RAMPJ1 1 RAMPI1 9 RAMPL1 RAMPJ0 0 RAMPI0 8 RAMPL0 18005AH 7 6 5 4 3 2 1 0 ~ ~ RAMPK5 RAMPK4 RAMPK3 RAMPK2 RAMPK1 RAMPK0 MPMNRA GA • MAP (ROTATION PARAMETER A, PLANE M,N) 18005CH 15 ~ 7 ~ 14 ~ 6 ~ 13 12 11 10 9 8 RAMPN5 RAMPN4 RAMPN3 RAMPN2 RAMPN1 RAMPN0 5 4 3 2 1 0 RAMPM5 RAMPM4 RAMPM3 RAMPM2 RAMPM1 RAMPM0 • MAP (ROTATION PARAMETER A, PLANE O,P) 15 14 13 12 11 10 9 8 SE MPOPRA 18005EH ~ 7 ~ ~ 6 ~ RAMPP5 RAMPP4 RAMPP3 RAMPP2 RAMPP1 RAMPP0 5 4 3 2 1 0 RAMPO5 RAMPO4 RAMPO3 RAMPO2 RAMPO1 RAMPO0 302 • MAP (ROTATION PARAMETER B, PLANE A,B) 15 14 13 12 11 10 9 8 nti MPABRB ~ ~ RBMPB5 RBMPB4 RBMPB3 RBMPB2 RBMPB1 RBMPB0 180060H 7 6 5 4 3 2 1 0 ~ ~ RBMPA5 RBMPA4 RBMPA3 RBMPA2 RBMPA1 RBMPA0 • MAP (ROTATION PARAMETER B, PLANE C,D) MPCDRB 180062H 15 ~ 7 ~ 14 ~ 6 ~ 13 RBMPD5 5 RBMPC5 12 RBMPD4 4 RBMPC4 • MAP (ROTATION PARAMETER B, PLANE E,F) 11 al RBMPD3 3 RBMPC3 10 RBMPD2 2 RBMPC2 9 RBMPD1 1 RBMPC1 8 RBMPD0 0 RBMPC0 MPEFRB 180064 15 ~ 7 ~ 15 14 ~ 6 ~ 14 13 RBMPF5 5 RBMPE5 13 de RBMPF4 12 12 4 RBMPE4 • MAP (ROTATION PARAMETER B, PLANE G,H) 11 RBMPF3 3 RBMPE3 11 RBMPF2 RBMPE2 10 10 2 9 9 RBMPF1 1 RBMPE1 8 8 RBMPF0 0 RBMPE0 MPGHRB 180066H ~ 7 ~ 15 ~ 6 ~ 14 nfi RBMPH5 RBMPH4 5 RBMPG5 RBMPG4 • MAP (ROTATION PARAMETER B, PLANE I,J) 13 4 12 RBMPH3 RBMPH2 RBMPH1 RBMPH0 3 11 2 10 1 9 0 RBMPG3 RBMPG2 RBMPG1 RBMPG0 8 MPIJRB 180068H MPKLRB ~ 7 ~ 15 ~ Co~ 6 ~ 14 ~ RBMPJ5 5 RBMPI5 13 RBMPL5 RBMPJ4 4 RBMPI4 • MAP (ROTATION PARAMETER B, PLANE K,L) 12 RBMPL4 RBMPJ3 3 RBMPI3 11 RBMPL3 RBMPJ2 2 RBMPI2 10 RBMPL2 RBMPJ1 1 RBMPI1 9 RBMPL1 RBMPJ0 0 RBMPI0 8 RBMPL0 18006AH 7 6 5 4 3 2 1 0 ~ ~ RBMPK5 RBMPK4 RBMPK3 RBMPK2 RBMPK1 RBMPK0 GA • MAP (ROTATION PARAMETER B, PLANE M,N) MPMNRB 18006CH 15 ~ 7 ~ 14 ~ 6 ~ 13 12 11 10 9 8 RBMPN5 RBMPN4 RBMPN3 RBMPN2 RBMPN1 RBMPN0 5 4 3 2 1 0 RBMPM5 RBMPM4 RBMPM3 RBMPM2 RBMPM1 RBMPM0 • MAP (ROTATION PARAMETER B, PLANE O,P) 15 14 13 12 11 10 9 8 SE MPOPRB 18006EH ~ 7 ~ ~ 6 ~ RBMPP5 RBMPP4 5 4 RBMPO5 RBMPO4 RBMPP3 RBMPP2 RBMPP1 RBMPP0 3 2 1 0 RBMPO3 RBMPO2 RBMPO1 RBMPO0 ST-58-R2 303 • SCREEN SCROLL VALUE (NBG0, HORIZONTAL INTEGER PART) 15 14 13 12 11 10 9 8 nti SCXIN0 ~ ~ ~ ~ ~ N0SCXI10 N0SCXI9 N0SCXI8 180070H 7 6 5 4 3 2 1 0 N0SCXI7 N0SCXI6 N0SCXI5 N0SCXI4 N0SCXI3 N0SCXI2 N0SCXI1 N0SCXI0 • SCREEN SCROLL VALUE (NBG0, HORIZONTAL FRACTIONAL PART) SCXDN0 180072H 15 7 ~ 14 6 ~ 13 N0SCXD1 N0SCXD2 N0SCXD3 N0SCXD4 N0SCXD5 N0SCXD6 N0SCXD7 N0SCXD8 5 ~ 12 4 ~ 11 3 ~ • SCREEN SCROLL VALUE (NBG0, VERTICAL INTEGER PART) 10 2 ~ 9 1 ~ al 8 0 ~ SCYIN0 180074H 15 ~ 7 N0SCYI7 15 14 N0SCYI6 14 ~ 6 13 13 ~ 5 N0SCYI5 12 12 ~ 4 N0SCYI4 11 de 11 ~ 3 • SCREEN SCROLL VALUE (NBG0, VERTICAL FRACTIONAL PART) 10 10 9 N0SCYI10 N0SCYI9 2 1 N0SCYI3 N0SCYI2 N0SCYI1 9 8 8 N0SCYI8 0 N0SCYI0 SCYDN0 180076H N0SCYD1 N0SCYD2 N0SCYD3 N0SCYD4 N0SCYD5 N0SCYD6 N0SCYD7 N0SCYD8 7 ~ 15 6 ~ 14 5 ~ 13 4 ~ nfi 12 3 ~ 2 ~ • COORDINATE INCREMENT (NBG0, HORIZONTAL INTEGER PART) 11 1 ~ 10 0 ~ 9 8 ZMXIN0 180078H ZMXDN0 ~ 7 ~ 15 ~ 6 ~ 14 Co 13 ~ 5 ~ 4 ~ • COORDINATE INCREMENT (NBG0, HORIZONTAL FRACTIONAL PART) 12 ~ 11 ~ 3 ~ 10 ~ 2 9 ~ 1 N0ZMXI2 N0ZMXI1 N0ZMXI0 8 N0ZMXD1 N0ZMXD2 N0ZMXD3 N0ZMXD4 N0ZMXD5 N0ZMXD6 N0ZMXD7 N0ZMXD8 ~ 0 18007AH 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ ~ ~ ~ ZMYIN0 GA • COORDINATE INCREMENT (NBG0, VERTICAL INTEGER PART) 18007CH 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ • COORDINATE INCREMENT (NBG0, VERTICAL FRACTIONAL PART) 10 ~ 2 9 ~ 1 8 ~ 0 N0ZMYI2 N0ZMYI1 N0ZMYI0 15 14 13 12 11 10 9 8 SE ZMYDN0 18007EH N0ZMYD1 N0ZMYD2 N0ZMYD3 N0ZMYD4 N0ZMYD5 N0ZMYD6 N0ZMYD7 N0ZMYD8 7 ~ 6 ~ 5 ~ 4 ~ 3 ~ 2 ~ 1 ~ 0 ~ 304 • SCREEN SCROLL VALUE (NBG1, HORIZONTAL INTEGER PART) 15 14 13 12 11 10 9 8 nti SCXIN1 ~ ~ ~ ~ ~ N1SCXI10 N1SCXI9 N1SCXI8 180080H 7 6 5 4 3 2 1 0 N1SCXI7 N1SCXI6 N1SCXI5 N1SCXI4 N1SCXI3 N1SCXI2 N1SCXI1 N1SCXI0 • SCREEN SCROLL VALUE (NBG1, HORIZONTAL FRACTIONAL PART) SCXDN1 180082H 15 7 ~ 14 6 ~ 13 N1SCXD1 N1SCXD2 N1SCXD3 N1SCXD4 N1SCXD5 N1SCXD6 N1SCXD7 N1SCXD8 5 ~ 12 4 ~ 11 3 ~ • SCREEN SCROLL VALUE (NBG1, VERTICAL INTEGER PART) 2al 10 ~ 9 1 ~ 8 0 ~ SCYIN1 180084H 15 ~ 7 N1SCYI7 15 14 N1SCYI6 14 ~ 6 13 13 ~ 5 N1SCYI5 12 de12 ~ 4 N1SCYI4 11 11 • SCREEN SCROLL VALUE (NBG1, VERTICAL FRACTIONAL PART) ~ 3 10 10 9 N1SCYI10 N1SCYI9 2 1 N1SCYI3 N1SCYI2 N1SCYI1 9 8 8 N1SCYI8 0 N1SCYI0 SCYDN1 180086H N1SCYD1 N1SCYD2 N1SCYD3 N1SCYD4 N1SCYD5 N1SCYD6 N1SCYD7 N1SCYD8 7 ~ 15 6 ~ 14 5 ~nfi 13 4 ~ 12 3 ~ • COORDINATE INCREMENT (NBG1, HORIZONTAL INTEGER PART) 2 ~ 11 1 ~ 10 0 ~ 9 8 ZMXIN1 180088H ZMXDN1 ~ 7 ~ 15 Co~ 6 ~ 14 13 ~ 5 ~ 4 ~ • COORDINATE INCREMENT (NBG1, HORIZONTAL FRACTIONAL PART) 12 ~ 11 ~ 3 ~ 10 ~ 2 9 ~ 1 N1ZMXI2 N1ZMXI1 N1ZMXI0 8 N1ZMXD1 N1ZMXD2 N1ZMXD3 N1ZMXD4 N1ZMXD5 N1ZMXD6 N1ZMXD7 N1ZMXD8 ~ 0 18008AH 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ ~ ~ ~ GA • COORDINATE INCREMENT (NBG1, VERTICAL INTEGER PART) ZMYIN1 18008CH 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ • COORDINATE INCREMENT (NBG1, VERTICAL FRACTIONAL PART) 10 ~ 2 9 ~ 1 8 ~ 0 N1ZMYI2 N1ZMYI1 N1ZMYI0 15 14 13 12 11 10 9 8 SE ZMYDN1 18008EH N1ZMYD1 N1ZMYD2 N1ZMYD3 N1ZMYD4 N1ZMYD5 N1ZMYD6 N1ZMYD7 N1ZMYD8 7 ~ 6 ~ 5 ~ 4 ~ 3 ~ 2 ~ 1 ~ 0 ~ ST-58-R2 305 • SCREEN SCROLL VALUE (NBG2, HORIZONTAL) 15 14 13 12 11 10 9 8 nti SCXN2 ~ ~ ~ ~ ~ N2SCX10 N2SCX9 N2SCX8 180090H 7 6 5 4 3 2 1 0 N2SCX7 N2SCX6 N2SCX5 N2SCX4 N2SCX3 N2SCX2 N2SCX1 N2SCX0 • SCREEN SCROLL VALUE (NBG2, VERTICAL) SCYN2 180092H 15 ~ 7 N2SCY7 14 ~ 6 N2SCY6 13 ~ 5 N2SCY5 12 ~ 4 N2SCY4 • SCREEN SCROLL VALUE (NBG3, HORIZONTAL) 11 ~ 3 N2SCY3 10 al N2SCY10 2 N2SCY2 9 N2SCY9 1 N2SCY1 8 N2SCY8 0 N2SCY0 SCXN3 180094H 15 ~ 7 N3SCX7 15 14 ~ 6 N3SCX6 14 13 ~ 5 N3SCX5 • SCREEN SCROLL VALUE (NBG3, VERTICAL) 13 12 ~ 4 N3SCX4 12 de 11 ~ 3 N3SCX3 11 10 N3SCX10 2 N3SCX2 10 9 N3SCX9 1 N3SCX1 9 8 N3SCX8 0 N3SCX0 8 SCYN3 180096H ~ 7 N3SCY7 • REDUCTION ENABLE 15 ~ 6 N3SCY6 14 ~ 5 N3SCY5 13 nfi ~ 4 N3SCY4 12 ~ 3 N3SCY3 11 N3SCY10 2 N3SCY2 10 N3SCY9 1 N3SCY1 9 N3SCY8 0 N3SCY0 8 ZMCTL 180098H SCRCTL ~ 7 ~ 15 ~ ~ 6 ~ 14 ~ Co~ 5 ~ 13 N1LSS1 ~ 4 ~ N1LSS0 ~ 3 ~ • LINE AND VERTICAL CELL SCROLL CONTROL (NBGO, NBG1) 12 11 N1LZMX ~ 2 ~ 10 N1LSCY N1ZMQT 9 1 N0ZMQT N1LSCX N1ZMHF 0 N0ZMHF 8 N1VCSC 18009AH 7 6 5 4 3 2 1 0 ~ ~ N0LSS1 N0LSS0 N0LZMX N0LSCY N0LSCX N0VCSC VCSTAU GA • VERTICAL CELL SCROLL TABLE ADDRESS (NBGO, NBG1) 18009CH 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ • VERTICAL CELL SCROLL TABLE ADDRESS (NBGO, NBG1) 10 ~ 2 9 ~ 1 8 ~ 0 VCSTA18 VCSTA17 VCSTA16 15 14 13 12 11 10 9 8 SE VCSTAL 18009EH VCSTA15 VCSTA14 VCSTA13 VCSTA12 VCSTA11 VCSTA10 7 6 5 4 3 VCSTA7 VCSTA6 VCSTA5 VCSTA4 VCSTA3 VCSTA2 2 VCSTA9 1 VCSTA1 VCSTA8 0 ~ 306 • LINE SCROLL TABLE ADDRESS (NBGO) 15 14 13 12 11 10 9 8 nti LSTA0U ~ ~ ~ ~ ~ ~ ~ ~ 1800A0H 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ N0LSTA18 N0LSTA17 N0LSTA16 • LINE SCROLL TABLE ADDRESS (NBGO) LSTA0L 1800A2H 15 7 N0LSTA7 14 N0LSTA15 N0LSTA14 N0LSTA13 N0LSTA12 N0LSTA11 N0LSTA10 6 N0LSTA6 13 5 N0LSTA5 • LINE SCROLL TABLE ADDRESS (NBG1) 12 4 N0LSTA4 11 3 al N0LSTA3 10 2 N0LSTA2 9 N0LSTA9 1 N0LSTA1 8 N0LSTA8 0 ~ LSTA1U 1800A4H 15 ~ 7 ~ 15 14 ~ 6 ~ 14 13 ~ 5 ~ • LINE SCROLL TABLE ADDRESS (NBG1) 13 de12 ~ 4 ~ 12 11 ~ 3 ~ 11 10 ~ 2 10 9 ~ 1 8 ~ 0 N1LSTA18 N1LSTA17 N1LSTA16 9 8 LSTA1L 1800A6H N1LSTA15 N1LSTA14 N1LSTA13 N1LSTA12 N1LSTA11 N1LSTA10 7 N1LSTA7 15 6 N1LSTA6 14 nfi 5 N1LSTA5 • LINE COLOR SCREEN TABLE ADDRESS 13 4 N1LSTA4 12 3 N1LSTA3 11 2 N1LSTA2 10 N1LSTA9 1 N1LSTA1 9 N1LSTA8 0 ~ 8 LCTAU 1800A8H LCTAL LCCLMD 7 ~ 15 LCTA15 Co~ 6 ~ • LINE COLOR SCREEN TABLE ADDRESS 14 LCTA14 ~ 5 ~ 13 LCTA13 ~ 4 ~ 12 LCTA12 ~ 3 ~ 11 LCTA11 ~ 2 LCTA18 10 LCTA10 ~ 1 LCTA17 9 LCTA9 ~ 0 LCTA16 8 LCTA8 1800AAH 7 6 5 4 3 2 1 0 LCTA7 LCTA6 LCTA5 LCTA4 LCTA3 LCTA2 LCTA1 LCTA0 GA • BACK SCREEN TABLE ADDRESS BKTAU 1800ACH 15 BKCLMD 7 ~ 14 ~ 6 ~ • BACK SCREEN TABLE ADDRESS 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 BKTA18 9 ~ 1 BKTA17 8 ~ 0 BKTA16 15 14 13 12 11 10 9 8 SE BKTAL 1800AEH BKTA15 7 BKTA7 BKTA14 6 BKTA6 BKTA13 5 BKTA5 BKTA12 4 BKTA4 BKTA11 3 BKTA3 BKTA10 2 BKTA2 BKTA9 1 BKTA1 BKTA8 0 BKTA0 ST-58-R2 307 • ROTATION PARAMETER MODE 15 14 13 12 11 10 9 8 RPMD ~ ~ ~ ~ ~ ~ ~ ~ 1800B0H 7 ~ 6 ~ 5 ~ • ROTATION PARAMETER READ CONTROL RPRCTL 1800B2H 15 ~ 7 14 ~ 6 13 ~ 5 4 ~ 12 ~ 4 3 ~ 11 ~ 3 nti 2 ~ 10 RBKASTRE RBYSTRE 2 al 1 RPMD1 9 1 0 RPMD0 8 RBXSTRE 0 ~ ~ ~ ~ ~ RAKASTRE RAYSTRE RAXSTRE • COEFFICIENT TABLE CONTROL 15 14 13 12 11 10 9 8 KTCTL 1800B4H ~ 7 ~ 15 ~ 6 ~ 14 ~ 5 ~ 13 RBKLCE 4 RAKLCE 12 de RBKMD1 3 RAKMD1 11 RBKMD0 2 RAKMD0 • COEFFICIENT TABLE ADDRESS OFFSET (ROTATION PARAMETER A, B) 10 RBKDBS 1 RAKDBS 9 RBKTE 0 RAKTE 8 KTAOF 1800B6H ~ 7 ~ 15 ~ 6 ~ 14 ~ 5 ~ 13 12 nfi ~ 4 ~ 11 ~ 3 ~ • SCREEN OVER PATTERN NAME (ROTATION PARAMETER A) 10 RBKTAOS2 RBKTAOS1 RBKTAOS0 2 9 1 0 RAKTAOS2 RAKTAOS1 RAKTAOS0 8 OVPNRA 1800B8H OVPNRB RAOPN15 RAOPN14 RAOPN13 RAOPN12 RAOPN11 RAOPN10 RAOPN9 7 6 Co 5 4 3 2 RAOPN7 RAOPN6 RAOPN5 RAOPN4 RAOPN3 RAOPN2 RAOPN1 • SCREEN OVER PATTERN NAME (ROTATION PARAMETER B) 15 14 13 12 11 10 1 9 RBOPN15 RBOPN14 RBOPN13 RBOPN12 RBOPN11 RBOPN10 RBOPN9 RAOPN8 0 RAOPN0 8 RBOPN8 1800BAH 7 6 5 4 3 2 1 0 RBOPN7 RBOPN6 RBOPN5 RBOPN4 RBOPN3 RBOPN2 RBOPN1 RBOPN0 GA • ROTATION PARAMETER TABLE ADDRESS (ROTATION PARAMETER A,B) RPTAU 1800BCH 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 RPTA18 • ROTATION PARAMETER TABLE ADDRESS (ROTATION PARAMETER A, B) 9 ~ 1 RPTA17 8 ~ 0 RPTA16 15 14 13 12 11 10 9 8 SE RPTAL 1800BEH RPTA15 7 RPTA7 RPTA14 6 RPTA6 RPTA13 5 RPTA5 RPTA12 4 RPTA4 RPTA11 3 RPTA3 RPTA10 2 RPTA2 RPTA9 1 RPTA1 RPTA8 0 ~ 308 • WINDOW POSITION (W0, HORIZONTAL START POINT) 15 14 13 12 11 10 9 8 WPSX0 ~ ~ ~ ~ ~ ~ W0SX9 W0SX8 1800C0H WPSY0 1800C2H 7 W0SX7 15 ~ 7 6 W0SX6 ~ 6 5 W0SX5 13 ~ 5 4 W0SX4 • WINDOW POSITION (W0, VERTICAL START POINT) 14 12 ~ 4 nti 3 W0SX3 11 ~ 3 al 2 W0SX2 10 ~ 2 1 W0SX1 9 ~ 1 0 W0SX0 8 W0SY8 0 W0SY7 W0SY6 W0SY5 W0SY4 W0SY3 W0SY2 W0SY1 W0SY0 • WINDOW POSITION (W0, HORIZONTAL END POINT) 15 14 13 12 11 10 9 8 WPEX0 1800C4H ~ 7 W0EX7 15 ~ 6 W0EX6 14 ~ 5 W0EX5 13 de~ 4 W0EX4 • WINDOW POSITION (W0, VERTICAL END POINT) 12 ~ 3 W0EX3 11 ~ 2 W0EX2 10 W0EX9 1 W0EX1 9 W0EX8 0 W0EX0 8 WPEY0 1800C6H ~ 7 W0EY7 15 ~ 6 W0EY6 14 nfi ~ 5 W0EY5 13 ~ 4 W0EY4 12 ~ 3 W0EY3 • WINDOW POSITION (W1, HORIZONTAL START POINT) 11 ~ 2 W0EY2 10 ~ 1 W0EY1 9 W0EY8 0 W0EY0 8 WPSX1 1800C8H WPSY1 ~ 7 W1SX7 15 ~ Co~ 6 W1SX6 14 ~ ~ 5 W1SX5 13 ~ ~ 4 W1SX4 ~ W1SX3 • WINDOW POSITION (W1, VERTICAL START POINT) 12 ~ 3 11 ~ ~ 2 W1SX2 10 ~ W1SX9 1 W1SX1 9 ~ W1SX8 0 W1SX0 8 W1SY8 1800CAH 7 6 5 4 3 2 1 0 W1SY7 W1SY6 W1SY5 W1SY4 W1SY3 W1SY2 W1SY1 W1SY0 GA • WINDOW POSITION (W1, HORIZONTAL END POINT) WPEX1 1800CCH 15 ~ 7 W1EX7 14 ~ 6 W1EX6 13 ~ 5 W1EX5 12 ~ 4 W1EX4 • WINDOW POSITION (W1, VERTICAL END POINT) 11 ~ 3 W1EX3 10 ~ 2 W1EX2 9 W1EX9 1 W1EX1 8 W1EX8 0 W1EX0 15 14 13 12 11 10 9 8 SE WPEY1 1800CEH ~ 7 W1EY7 ~ 6 W1EY6 ~ 5 W1EY5 ~ 4 W1EY4 ~ 3 W1EY3 ~ 2 W1EY2 ~ 1 W1EY1 W1EY8 0 W1EY0 ST-58-R2 309 • WINDOW CONTROL (NBG0, NBG1) 15 14 13 12 11 10 9 8 nti WCTLA N1LOG ~ N1SWE N1SWA N1W1E N1W1A N1W0E N1W0A 1800D0H 7 6 5 4 3 2 1 0 N0LOG ~ N0SWE N0SWA N0W1E N0W1A N0W0E N0W0A • WINDOW CONTROL (NBG2, NBG3) WCTLB 1800D2H 15 N3LOG 7 N2LOG 14 ~ 6 ~ • WINDOW CONTROL (RBG0, SPRITE) 13 N3SWE 5 N2SWE 12 N3SWA 4 N2SWA 11 N3W1E 3 N2W1E 10 N3W1A 2 N2W1A al 9 N3W0E 1 N2W0E 8 N3W0A 0 N2W0A WCTLC 1800D4H 15 SPLOG 7 R0LOG 15 14 6 ~ ~ 14 13 SPSWE 5 R0SWE 13 12 SPSWA 4 R0SWA 12 de 11 SPW1E 3 R0W1E • WINDOW CONTROL (PARAMETER WINDOW, COLOR CALC. WINDOW) 11 10 SPW1A 2 R0W1A 10 9 SPW0E 1 R0W0E 9 8 SPW0A 0 R0W0A 8 WCTLD 1800D6H CCLOG 7 RPLOG 6 ~ ~ • LINE WINDOW TABLE ADDRESS (W0) 15 14 CCSWE 5 ~ 13 nfi CCSWA 4 ~ 12 CCW1E 3 RPW1E 11 CCW1A 2 RPW1A 10 CCW0E 1 RPW0E 9 CCW0A 0 RPW0A 8 LWTA0U 1800D8H • LINE WINDOW TABLE ADDRESS (W0) LWTA0L W0LWE 7 ~ 15 W0LWTA15 ~ 6 ~ 14 W0LWTA14 Co~ 5 ~ 13 W0LWTA13 ~ 4 ~ 12 W0LWTA12 ~ 3 ~ 11 W0LWTA11 ~ 2 W0LWTA18 10 W0LWTA10 ~ 1 W0LWTA17 9 W0LWTA9 ~ 0 W0LWTA16 8 W0LWTA8 1800DAH 7 6 5 4 3 2 1 0 W0LWTA7 W0LWTA6 W0LWTA5 W0LWTA4 W0LWTA3 W0LWTA2 W0LWTA1 ~ LWTA1U 1800DCH GA • LINE WINDOW TABLE ADDRESS (W1) 15 W1LWE 7 ~ 14 ~ 6 ~ • LINE WINDOW TABLE ADDRESS (W1) 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 W1LWTA18 9 ~ 1 W1LWTA17 8 ~ 0 W1LWTA16 15 14 13 12 11 10 9 8 SE LWTA1L 1800DEH W1LWTA15 7 W1LWTA14 6 W1LWTA13 5 W1LWTA12 4 W1LWTA11 3 W1LWTA7 W1LWTA6 W1LWTA5 W1LWTA4 W1LWTA3 W1LWTA2 W1LWTA1 W1LWTA10 2 W1LWTA9 1 W1LWTA8 0 ~ 310 • SPRITE CONTROL 15 14 13 12 11 10 9 8 nti SPCTL ~ ~ SPCCCS1 SPCCCS0 ~ SPCCN2 SPCCN1 SPCCN0 1800E0H 7 6 5 4 3 2 1 0 ~ ~ SPCLMD SPWINEN SPTYPE3 SPTYPE2 SPTYPE1 SPTYPE0 • SHADOW CONTROL SDCTL 1800E2H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 BKSDEN R0SDEN • COLOR RAM ADDRESS OFFSET (NBG0~NBG3) 12 ~ 4 11 ~ 3al N3SDEN 10 ~ 2 N2SDEN 9 ~ 1 N1SDEN 8 TPSDSL 0 N0SDEN CRAOFA 1800E4H 15 ~ 7 ~ 15 14 14 13 13 de 12 N3CAOS2 N3CAOS1 N3CAOS0 6 5 4 N1CAOS2 N1CAOS1 N1CAOS0 • COLOR RAM ADDRESS OFFSET (RBG0, SPRITE) 12 11 ~ 3 ~ 11 10 2 9 1 8 N2CAOS2 N2CAOS1 N2CAOS0 0 N0CAOS2 N0CAOS1 N0CAOS0 10 9 8 CRAOFB 1800E6H ~ 7 ~ 15 ~ 6 14 nfi ~ 5 13 ~ 4 SPCAOS2 SPCAOS1 SPCAOS0 • LINE COLOR SCREEN ENABLE 12 ~ 3 ~ 11 ~ 2 ~ 1 ~ 0 R0CAOS2 R0CAOS1 R0CAOS0 10 9 8 LNCLEN 1800E8H SFPRMD ~ 7 ~ ~ Co~ 6 ~ • SPECIAL PRIORITY MODE 15 14 ~ SPLCEN 13 ~ ~ 5 ~ 4 R0LCEN 12 ~ ~ ~ N3LCEN 11 3 N2LCEN 10 ~ ~ 2 9 ~ 1 N1LCEN 8 ~ 0 N0LCEN R0SPRM1 R0SPRM0 1800EAH 7 6 5 4 3 2 1 0 N3SPRM1 N3SPRM0 N2SPRM1 N2SPRM0 N1SPRM1 N1SPRM0 N0SPRM1 N0SPRM0 GA • COLOR CALCULATION CONTROL CCCTL 1800ECH 15 BOKEN 7 ~ 14 BOKN2 6 SPCCEN 13 BOKN1 5 LCCCEN • SPECIAL COLOR CALCULATION MODE 12 BOKN0 4 R0CCEN 11 ~ 3 N3CCEN 10 EXCCEN 2 N2CCEN 9 CCRTMD 1 N1CCEN 8 CCMD 0 N0CCEN 15 14 13 12 11 10 9 8 SE SFCCMD 1800EEH ~ 7 ~ 6 ~ 5 ~ 4 ~ 3 ~ 2 R0SCCM1 R0SCCM0 1 0 N3SCCM1 N3SCCM0 N2SCCM1 N2SCCM0 N1SCCM1 N1SCCM0 N0SCCM1 N0SCCM0 ST-58-R2 311 • PRIORITY NUMBER (SPRITE 0,1) 15 14 13 12 11 10 9 8 nti PRISA ~ ~ ~ ~ ~ S1PRIN2 S1PRIN1 S1PRIN0 1800F0H 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ S0PRIN2 S0PRIN1 S0PRIN0 • PRIORITY NUMBER (SPRITE 2,3) PRISB 1800F2H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ • PRIORITY NUMBER (SPRITE 4,5) 12 ~ 4 ~ 11 ~ 3 ~ 10 al S3PRIN2 2 S2PRIN2 9 S3PRIN1 1 S2PRIN1 8 S3PRIN0 0 S2PRIN0 PRISC 1800F4H 15 ~ 7 ~ 15 14 ~ 6 ~ 14 13 ~ 5 ~ • PRIORITY NUMBER (SPRITE 6,7) 13 12 ~ 4 ~ 12 de 11 ~ 3 ~ 11 10 S5PRIN2 2 S4PRIN2 10 9 S5PRIN1 1 S4PRIN1 9 8 S5PRIN0 0 S4PRIN0 8 PRISD 1800F6H ~ 7 ~ ~ 6 ~ ~ 5 ~ • PRIORITY NUMBER (NBG0, NBG1) 15 14 13 nfi ~ 4 ~ 12 ~ 3 ~ 11 S7PRIN2 2 S6PRIN2 10 S7PRIN1 1 S6PRIN1 9 S7PRIN0 0 S6PRIN0 8 PRINA 1800F8H PRINB ~ 7 ~ 15 ~ ~ 6 ~ 14 ~ Co ~ 5 ~ • PRIORITY NUMBER (NBG2, NBG3) 13 ~ ~ 4 ~ 12 ~ ~ 3 ~ 11 ~ N1PRIN2 2 N0PRIN2 10 N3PRIN2 N1PRIN1 1 N0PRIN1 9 N3PRIN1 N1PRIN0 0 N0PRIN0 8 N3PRIN0 1800FAH 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ N2PRIN2 N2PRIN1 N2PRIN0 GA • PRIORITY NUMBER (RBG0) PRIR 1800FCH • RESERVE 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 R0PRIN2 9 ~ 1 R0PRIN1 8 ~ 0 R0PRIN0 15 14 13 12 11 10 9 8 SE 1800FEH ~ 7 ~ ~ 6 ~ ~ 5 ~ ~ 4 ~ ~ 3 ~ ~ 2 ~ ~ 1 ~ ~ 0 ~ 312 • COLOR CALCULATION RATIO (SPRITE 0,1) 15 14 13 12 11 10 9 8 nti CCRSA ~ ~ ~ S1CCRT4 S1CCRT3 S1CCRT2 S1CCRT1 S1CCRT0 180100H 7 6 5 4 3 2 1 0 ~ ~ ~ S0CCRT4 S0CCRT3 S0CCRT2 S0CCRT1 S0CCRT0 • COLOR CALCULATION RATIO (SPRITE 2,3) CCRSB 180102H 15 7 ~ ~ 14 6 ~ ~ 13 5 ~ ~ 12 11 al 10 9 8 S3CCRT4 S3CCRT3 S3CCRT2 S3CCRT1 S3CCRT0 4 3 2 1 0 S2CCRT4 S2CCRT3 S2CCRT2 S2CCRT1 S2CCRT0 • COLOR CALCULATION RATIO (SPRITE 4,5) CCRSC 180104H 15 ~ 7 ~ 15 14 ~ 6 ~ 14 13 ~ 5 ~ 13 de 12 S5CCRT4 S5CCRT3 S5CCRT2 S5CCRT1 S5CCRT0 4 3 2 1 8 0 S4CCRT4 S4CCRT3 S4CCRT2 S4CCRT1 S4CCRT0 • COLOR CALCULATION RATIO (SPRITE 6,7) 12 11 11 10 10 9 9 8 CCRSD 180106H ~ 7 ~ 15 ~ 6 ~ 14 nfi ~ 5 ~ • COLOR CALCULATION RATIO (NBG0, NBG1) 13 S7CCRT4 S7CCRT3 S7CCRT2 S7CCRT1 S7CCRT0 4 12 3 11 2 10 1 9 0 S6CCRT4 S6CCRT3 S6CCRT2 S6CCRT1 S6CCRT0 8 CCRNA 180108H CCRNB ~ 7 ~ 15 ~ Co~ 6 ~ ~ 5 ~ ~ 4 • COLOR CALCULATION RATIO (NBG2, NBG3) 14 ~ 13 N1CCRT4 N1CCRT3 N1CCRT2 N1CCRT1 N1CCRT0 12 3 11 2 10 1 N0CCRT4 N0CCRT3 N0CCRT2 N0CCRT1 N0CCRT0 9 0 8 N3CCRT4 N3CCRT3 N3CCRT2 N3CCRT1 N3CCRT0 18010AH 7 6 5 4 3 2 1 0 ~ ~ ~ N2CCRT4 N2CCRT3 N2CCRT2 N2CCRT1 N2CCRT0 GA • COLOR CALCULATION RATIO (RBG0) CCRR 18010CH 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 11 ~ 3 10 ~ 2 9 ~ 1 8 ~ 0 R0CCRT4 R0CCRT3 R0CCRT2 R0CCRT1 R0CCRT0 • COLOR CALCULATION RATIO (LINE COLOR SCREEN, BACK SCREEN) 15 14 13 12 11 10 9 8 SE CCRLB 18010EH ~ 7 ~ ~ 6 ~ ~ 5 ~ BKCCRT4 BKCCRT3 BKCCRT2 BKCCRT1 BKCCRT0 4 3 2 1 0 LCCCRT4 LCCCRT3 LCCCRT2 LCCCRT1 LCCCRT0 ST-58-R2 313 • COLOR OFFSET ENABLE 15 14 13 12 11 10 9 8 nti CLOFEN ~ ~ ~ ~ ~ ~ ~ ~ 180110H 7 6 5 4 3 2 1 0 ~ SPCOEN BKCOEN R0COEN N3COEN N2COEN N1COEN N0COEN • COLOR OFFSET SELECT CLOFSL 180112H 15 ~ 7 ~ 14 SPCOSL • COLOR OFFSET A (RED) ~ 6 13 ~ 5 BKCOSL 12 ~ 4 R0COSL 11 ~ 3 N3COSL 10 ~ 2 al N2COSL 9 ~ 1 N1COSL 8 ~ 0 N0COSL COAR 180114H 15 ~ 7 COARD7 15 14 ~ 6 COARD6 • COLOR OFFSET A (GREEN) 14 13 ~ 5 COARD5 13 12 ~ 4 COARD4 12 de 11 ~ 3 COARD3 11 10 ~ 2 COARD2 10 9 ~ 1 COARD1 9 8 COARD8 0 COARD0 8 COAG 180116H ~ 7 COAGR7 ~ 6 COAGR6 • COLOR OFFSET A (BLUE) 15 14 ~ 5 COAGR5 13 nfi ~ 4 COAGR4 12 ~ 3 COAGR3 11 ~ 2 COAGR2 10 ~ 1 COAGR1 9 COAGR8 0 COAGR0 8 COAB 180118H COBR ~ 7 COABL7 15 ~ ~ 6 COABL6 • COLOR OFFSET B (RED) 14 ~ Co~ 5 COABL5 13 ~ ~ 4 COABL4 12 ~ ~ 3 COABL3 11 ~ ~ 2 COABL2 10 ~ ~ 1 COABL1 9 ~ COABL8 0 COABL0 8 COBRD8 18011AH 7 6 5 4 3 2 1 0 COBRD7 COBRD6 COBRD5 COBRD4 COBRD3 COBRD2 COBRD1 COBRD0 COBG 18011CH GA • COLOR OFFSET B (GREEN) 15 ~ 7 COBGR7 14 ~ 6 COBGR6 • COLOR OFFSET B (BLUE) 13 ~ 5 COBGR5 12 ~ 4 COBGR4 11 ~ 3 COBGR3 10 ~ 2 COBGR2 9 ~ 1 COBGR1 8 COBGR8 0 COBGR0 15 14 13 12 11 10 9 8 SE COBB 18011EH ~ 7 COBBL7 ~ 6 COBBL6 ~ 5 COBBL5 ~ 4 COBBL4 ~ 3 COBBL3 ~ 2 COBBL2 ~ 1 COBBL1 COBBL8 0 COBBL0 314 16.2 Register Bit List Bit Name • TV Screen Mode TV Screen Display Boarder Color Mode Interlace Mode Vertical Definition Bit Abbreviation DISP BDCLMD LSMD VRESO Address 180000H 180000H 180000H 180000H Bit 15 8 7,6 5,4 ntial Application Horizontal Definition HRESO 180000H 2~0 • External Signal Enable External Latch Enable EXLTEN 180002H 9 External Sync Enable EXSYEN 180002H 8 Image Display Area Select External Screen Enable • Screen Status (Read Only) External Latch Flag External Sync Flag V Blank Flag H Blank Flag DASEL EXBGEN EXLTFG EXSYFG VBLANK HBLANK de 180002H 180002H 180004H 180004H 180004H 180004H 1 0 9 8 3 2 Scan Field Flag TV System Flag VRAM Size Version Number • H-Counter (Read Only) H Counter Value ODD PAL • VRAM Size (Version Number is Read Only) VRAMSZ VER HCT nfi 180004H 180004H 180006H 180006H 180008H 15 1 0 3~0 9~0 Co • V-Counter (Read Only) V Counter Value • RAM Control Color RAM Mode VRAM Mode VRAM Mode VCT CRMD VRAMD VRBMD Rotation Data Bank Selection RDBSA0 Rotation Data Bank Selection RDBSA1 18000AH 18000EH 18000EH 18000EH 18000EH 18000EH 9~0 13,12 8 9 1,0 3,2 For VRAM-A For VRAM-B For VRAM-A0 (or VRAM-A) For VRAM-A1 Rotation Data Bank Selection RDBSB0 18000EH 5,4 For VRAM-B0 (or VRAM-B) Rotation Data Bank Selection RDBSB1 18000EH 7,6 For VRAM-B1 GA SE ST-58-R2 315 Bit Name Bit Address Bit Application Abbreviation • VRAM Cycle Pattern VRAM Cycle Pattern VRAM Cycle Pattern VRAM Cycle Pattern VRAM Cycle Pattern VCPA0 VCPA1 VCPB0 VCPB1 180010H 180012H 180014H 180016H 180018H 18001AH 18001CH 18001EH 15~0 15~0 15~0 15~0 15~0 15~0 15~0 15~0 nti For VRAM-A0 For VRAM-A0 For VRAM-A1 For VRAM-A1 For VRAM-B0 For VRAM-B0 For VRAM-B1 For VRAM-B1 al • Screen Display Enable Transparent Display Enable N0TPON 180020H 8 For NBG0 (or RBG0) Transparent Display Enable N1TPON 180020H 9 For NBG1 (or EXBG) Transparent Display Enable N2TPON 180020H 10 For NBG2 Transparent Display Enable Transparent Display Enable Screen Display Enable Screen Display Enable Screen Display Enable Screen Display Enable Screen Display Enable N3TPON R0TPON N0ON N1ON N2ON N3ON R0ON 180020H 180020H 180020H 180020H 180020H 180020H 180020H 11 12 0 1 2 3 4 de For NBG3 For RBG0 For NBG0 For NBG1 For NBG2 For NBG3 For RBG0 Screen Display Enable • Mosaic Control Mosaic Enable Mosaic Enable Mosaic Enable Mosaic Enable Mosaic Enable R1ON N0MZE N1MZE N2MZE N3MZE R0MZE nfi 180020H 180022H 180022H 180022H 180022H 180022H 5 0 1 2 3 4 For RBG1 For NBG0 (or RBG1) For NBG1 For NBG2 For NBG3 For RBG0 Mosaic Size Mosaic Size • Special Function Code Select Co MZSZH MZSZV Special Function Code Select N0SFCS Special Function Code Select N1SFCS Special Function Code Select N2SFCS Special Function Code Select N3SFCS Special Function Code Select R0SFCS 180022H 180022H 180024H 180024H 180024H 180024H 180024H 11~8 15~12 0 1 2 3 4 For Horizontal Mosaic Size For Vertical Mosaic Size For NBG0 (or RBG1) For NBG1 For NBG2 For NBG3 For RBG0 • Special Function Code Special Function SFCDA 180026H 7~0 For Special Function Code A GA Special Function SFCDB 180026H 15~8 For Special Function Code B SE 316 Bit Name Bit Address Bit Application Abbreviation • Character Control Character Size Character Size Character Size Character Size Character Size Bitmap Enable Bitmap Enable Bitmap Enable N0CHSZ N1CHSZ N2CHSZ N3CHSZ R0CHSZ N0BMEN N1BMEN R0BMEN 180028H 180028H 18002AH 18002AH 18002AH 180028H 180028H 18002AH 0 8 0 4 8 1 9 9 ntial For NBG0 (or RBG1) For NBG1 For NBG2 For NBG3 For RBG0 For NBG0 For NBG1 For RBG0 Bitmap Size N0BMSZ 180028H 3,2 For NBG0 Bitmap Size N1BMSZ 180028H 11,10 For NBG1 Bitmap Size R0BMSZ 18002AH 10 For RBG0 Number of Character Colors N0CHCN 180028H 6~4 For NBG0 (or RBG1) Number of Character Colors Number of Character Colors Number of Character Colors Number of Character Colors • Bitmap Palette Number Special Priority (for Bitmap) Special Priority (for Bitmap) N1CHCN N2CHCN N3CHCN R0CHCN N0BMPR N1BMPR de 180028H 18002AH 18002AH 18002AH 18002CH 18002CH 13,12 1 5 14,12 5 13 For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For NBG0 For NBG1 Special Priority (for Bitmap) Special Color Calculation (for Bitmap) Special Color Calculation (for Bitmap) Special Color Calculation (for Bitmap) Palette Number (for Bitmap) Palette Number (for Bitmap) Palette Number (for Bitmap) R0BMPR N0BMCC N1BMCC R0BMCC N0BMP N1BMP R0BMP nfi 18002EH 18002CH 18002CH 18002EH 18002CH 18002CH 18002EH 5 4 12 4 2~0 10~8 2~0 For RBG0 For NBG0 For NBG1 For RBG0 For NBG0 For NBG1 For RBG0 • Pattern Name Control Pattern Name Data Size Pattern Name Data Size Pattern Name Data Size Pattern Name Data Size Pattern Name Data Size Character Number Supplement Mode Co N0PNB N1PNB N2PNB N3PNB R0PNB N0CNSM 180030H 180032H 180034H 180036H 180038H 180030H 15 15 15 15 15 14 For NBG0 (or RBG1) For NBG1 For NBG2 For NBG3 For RBG0 For NBG0 (or RBG1) Character Number N1CNSM 180032H 14 For NBG1 Supplement Mode Character Number N2CNSM 180034H 14 For NBG2 GA Supplement Mode Character Number Supplement Mode Character Number Supplement Mode N3CNSM R0CNSM 180036H 180038H 14 14 For NBG3 For RBG0 SE ST-58-R2 317 • Pattern Name Control (Continued) Special Priority (For Pattern N0SPR 180030H 9 For NBG0 (or RBG1) Name Supplement Data) nti Special Priority (For Pattern N1SPR 180032H 9 For NBG1 Name Supplement Data) Special Priority (For Pattern N2SPR 180034H 9 For NBG2 Name Supplement Data) Special Priority (For Pattern Name Supplement Data) Special Priority (For Pattern Name Supplement Data) Special Color Calculation (For Pattern Name Supplement Data) Special Color Calculation (For Pattern Name Supplement N3SPR R0SPR N0SCC N1SCC 180036H 180038H 180030H 180032H 9 9 8 8 For NBG3 For RBG0 al For NBG0 (or RBG1) For NBG1 Data) Special Color Calculation (For Pattern Name Supplement Data) Special Color Calculation (For Pattern Name Supplement Data) Special Color Calculation N2SCC N3SCC R0SCC 180034H 180036H 180038H 8 8 8 deFor NBG2 For NBG3 For RBG0 (For Pattern Name Supplement Data) Supplement Palette Number Supplement Palette Number Supplement Palette Number Supplement Palette Number Supplement Palette Number N0SPLT N1SPLT N2SPLT N3SPLT R0SPLT nfi 180030H 180032H 180034H 180036H 180038H 7~5 7~5 7~5 7~5 7~5 For NBG0 (or RBG1) For NBG1 For NBG2 For NBG3 For RBG0 Co Supplement Character Number N0SCN 180030H 4~0 For NBG0 (or RBG1) Supplement Character Number N1SCN 180032H 4~0 For NBG1 Supplement Character Number N2SCN 180034H 4~0 For NBG2 Supplement Character Number N3SCN 180036H 4~0 For NBG3 Supplement Character Number R0SCN 180038H 4~0 For RBG0 • Plane Size Plane Size N0PLSZ 18003AH 1,0 For NBG0 Plane Size N1PLSZ 18003AH 3,2 For NBG1 Plane Size N2PLSZ 18003AH 5,4 For NBG2 Plane Size N3PLSZ 18003AH 7,6 For NBG3 Plane Size RAPLSZ 18003AH 9,8 For Rotation Parameter A Plane Size Screen Over Processing • Map Offset Map Offset Map Offset Map Offset Map Offset GA Screen Over Processing RBPLSZ RAOVR RBOVR N0MP N1MP N2MP N3MP 18003AH 18003AH 18003AH 18003CH 18003CH 18003CH 18003CH 13,12 11,10 15,14 2~0 6~4 10~8 14~12 For Rotation Parameter B For Rotation Parameter A For Rotation Parameter B For NBG0 For NBG1 For NBG2 For NBG3 Map Offset RAMP 18003EH 2~0 For Rotation Parameter A SE Map Offset RBMP 18003EH 6~4 For Rotation Parameter B 318 Bit Name Bit Address Bit Application Abbreviation • Map Map (For Normal Scroll) Map (For Normal Scroll) Map (For Normal Scroll) Map (For Normal Scroll) Map (For Normal Scroll) Map (For Normal Scroll) Map (For Normal Scroll) Map (For Normal Scroll) N0MPA N0MPB N0MPC N0MPD N1MPA N1MPB N1MPC N1MPD 180040H 180040H 180042H 180042H 180044H 180044H 180046H 180046H nti 5~0 13~8 5~0 13~8 5~0 13~8 5~0 13~8 al For NBG0 Plane A For NBG0 Plane B For NBG0 Plane C For NBG0 Plane D For NBG1 Plane A For NBG1 Plane B For NBG1 Plane C For NBG1 Plane D Map (For Normal Scroll) N2MPA 180048H 5~0 For NBG2 Plane A Map (For Normal Scroll) N2MPB 180048H 13~8 For NBG2 Plane B Map (For Normal Scroll) N2MPC 18004AH 5~0 For NBG2 Plane C Map (For Normal Scroll) N2MPD 18004AH 13~8 For NBG2 Plane D Map (For Normal Scroll) Map (For Normal Scroll) Map (For Normal Scroll) Map (For Normal Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) N3MPA N3MPB N3MPC N3MPD RAMPA RAMPB RAMPC de 18004CH 18004CH 18004EH 18004EH 180050H 180050H 180052H 5~0 13~8 5~0 13~8 5~0 13~8 5~0 For NBG3 Plane A For NBG3 Plane B For NBG3 Plane C For NBG3 Plane D Rotation Parameter-A Screen Plane-A Rotation Parameter-A Screen Plane-B Rotation Parameter-A Screen Plane-C Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) RAMPD RAMPE RAMPF RAMPG RAMPH RAMPI RAMPJ nfi 180052H 180054H 180054H 180056H 180056H 180058H 180058H 13~8 5~0 13~8 5~0 13~8 5~0 13~8 Rotation Parameter-A Screen Plane-D Rotation Parameter-A Screen Plane-E Rotation Parameter-A Screen Plane-F Rotation Parameter-A Screen Plane-G Rotation Parameter-A Screen Plane-H Rotation Parameter-A Screen Plane-I Rotation Parameter-A Screen Plane-J Co Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) RAMPK RAMPL RAMPM RAMPN RAMPO RAMPP RBMPA RBMPB 18005AH 18005AH 18005CH 18005CH 18005EH 18005EH 180060H 180060H 5~0 13~8 5~0 13~8 5~0 13~8 5~0 13~8 Rotation Parameter-A Screen Plane-K Rotation Parameter-A Screen Plane-L Rotation Parameter-A Screen Plane-M Rotation Parameter-A Screen Plane-N Rotation Parameter-A Screen Plane-O Rotation Parameter-A Screen Plane-P Rotation Parameter-B Screen Plane-A Rotation Parameter-B Screen Plane-B Map (For Rotation Scroll) RBMPC 180062H 5~0 Rotation Parameter-B Screen Plane-C Map (For Rotation Scroll) RBMPD 180062H 13~8 Rotation Parameter-B Screen Plane-D GA Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) RBMPE RBMPF RBMPG RBMPH RBMPI RBMPJ 180064H 180064H 180066H 180066H 180068H 180068H 5~0 13~8 5~0 13~8 5~0 13~8 Rotation Parameter-B Screen Plane-E Rotation Parameter-B Screen Plane-F Rotation Parameter-B Screen Plane-G Rotation Parameter-B Screen Plane-H Rotation Parameter-B Screen Plane-I Rotation Parameter-B Screen Plane-J SE ST-58-R2 319 Bit Name Bit Address Bit Application Abbreviation • Map (Continued) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) Map (For Rotation Scroll) • Screen Scroll Value Screen Scroll Value RBMPK RBMPL RBMPM RBMPN RBMPO RBMPP N0SCXI 18006AH 18006AH 18006CH 18006CH 18006EH 18006EH 180070H 5~0 13~8 5~0 13~8 5~0 13~8 10~0 nti Rotation Parameter-B Screen Plane-K Rotation Parameter-B Screen Plane-L Rotation Parameter-B Screen Plane-M Rotation Parameter-B Screen Plane-N al Rotation Parameter-B Screen Plane-O Rotation Parameter-B Screen Plane-P For NBG0 Horizontal (Integer Part) Screen Scroll Value N0SCXD 180072H 15~8 For NBG0 Horizontal (Fractional Part) Screen Scroll Value N0SCYI 180074H 10~0 For NBG0 Vertical (Integer Part) Screen Scroll Value N0SCYD 180076H 15~8 For NBG0 Vertical (Fractional Part) Screen Scroll Value N1SCXI 180080H 10~0 For NBG1 Horizontal (Integer Part) Screen Scroll Value Screen Scroll Value Screen Scroll Value Screen Scroll Value Screen Scroll Value Screen Scroll Value Screen Scroll Value N1SCXD N1SCYI N1SCYD N2SCX N2SCX N3SCY N3SCY 180082H 180084H 180086H 180090H 180092H 180094H 180096H 15~8 10~0 15~8 10~0 10~0 10~0 10~0 deFor NBG1 Horizontal (Fractional Part) For NBG1 Vertical (Integer Part) For NBG1 Vertical (Fractional Part) For NBG2 Horizontal For NBG2 Vertical For NBG3 Horizontal For NBG3 Vertical • Coordinate Increment Coordinate Increment Coordinate Increment Coordinate Increment Coordinate Increment Coordinate Increment Coordinate Increment N0ZMXI N0ZMXD N0ZMYI N0ZMYD N1ZMXI N1ZMXD nfi 180078H 18007AH 18007CH 18007EH 180088H 18008AH 2~0 15~8 2~0 15~8 2~0 15~8 For NBG0 Horizontal (Integer Part) For NBG0 Horizontal (Fractional Part) For NBG0 Vertical (Integer Part) For NBG0 Vertical (Fractional Part) For NBG1 Horizontal (Integer Part) For NBG1 Horizontal (Fractional Part) Coordinate Increment Coordinate Increment • Reduction Enable Reduction Enable Reduction Enable Reduction Enable Reduction Enable N1ZMYI N1ZMYD N0ZMHF N0ZMQT N1ZMHF N1ZMQT • Line & Vertical Cell Scroll Control Co 18008CH 18008EH 180098H 180098H 180098H 180098H 2~0 15~8 0 1 8 9 For NBG1 Vertical (Integer Part) For NBG1 Vertical (Fractional Part) For NBG0 For NBG0 For NBG1 For NBG1 Vertical Cell Scroll Enable N0VCSC 18009AH 0 For NBG0 Vertical Cell Scroll Enable N1VCSC 18009AH 8 For NBG1 GA Line Scroll Enable (For Horiz - N0LSCX 18009AH 1 For NBG0 ontal Screen Scroll Values) Line Scroll Enable (For Horiz - N1LSCX 18009AH 9 For NBG1 ontal Screen Scroll Values) Line Scroll Enable (For Vertical N0LSCY 18009AH 2 For NBG0 Screen Scroll Values) SE 320 Bit Name Bit Address Bit Application Abbreviation • Line & Vertical Cell Scroll Control (Continued) Line Scroll Enable (For Vertical N1LSCY Screen Scroll Values) Line Zoom Enable Line Zoom Enable Line Scroll Space Line Scroll Space N0LZMX N1LZMX • Vertical Cell Scroll Table Address N0LSS N1LSS Vert. Cell Scroll Table Address VCSTA 18009AH 18009AH 18009AH 18009AH 18009AH 18009CH 10 3 11 5,4 13,12 2~0 ntial For NBG1 For NBG0 For NBG1 For NBG0 For NBG1 18009EH 15~1 • Line Scroll Table Address Line Scroll Table Address N0LSTA 1800A0H 2~0 For NBG0 (Most Significant Bits) 1800A2H 15~1 For NBG0 (Least Significant Bits) Line Scroll Table Address • Line Color Screen Table Address Line Color Screen Color Mode LCCLMD Line Color Screen Table Add. • Back Screen Table Address N1LSTA LCTA de 1800A4H 1800A6H 1800A8H 1800A8H 1800AAH 2~0 15~1 15 2~0 15~0 For NBG1 (Most Significant Bits) For NBG1 (Least Significant Bits) Back Screen Color Mode Back Screen Table Address • Rotation Parameter Mode Rotation Parameter Mode • Rotation Parameter Read Control Parameter Read Enable nfi BKCLMD BKTA RPMD RAXSTRE 1800ACH 1800ACH 1800AEH 1800B0H 1800B2H 15 2~0 15~0 1,0 0 For Rotation Parameter-A Xst Co Parameter Read Enable RBXSTRE 1800B2H 8 For Rotation Parameter-B Xst Parameter Read Enable RAYSTRE 1800B2H 1 For Rotation Parameter-A Yst Parameter Read Enable RBYSTRE 1800B2H 9 For Rotation Parameter-B Yst Parameter Read Enable RAKASTRE 1800B2H 2 For Rotation Parameter-A KAst Parameter Read Enable RBKASTRE 1800B2H 10 For Rotation Parameter-B KAst • Coefficient Table Control Coefficient Table Enable RAKTE 1800B4H 0 For Rotation Parameter-A Coefficient Table Enable RBKTE 1800B4H 8 For Rotation Parameter-B Coefficient Data Size RAKDBS 1800B4H 1 For Rotation Parameter-A Coefficient Data Size RBKDBS 1800B4H 9 For Rotation Parameter-B Coefficient Data Mode RAKMD 1800B4H 3,2 For Rotation Parameter-A GA Coefficient Data Mode Coefficient Line Color Enable Coefficient Line Color Enable RBKMD RAKLCE RBKLCE 1800B4H 1800B4H 1800B4H 11,10 4 12 For Rotation Parameter-B For Rotation Parameter-A For Rotation Parameter-B SE ST-58-R2 321 Bit Name Bit Address Bit Application Abbreviation • Coefficient Table Address Offset Coefficient Table Add. Offset RAKTAOS Coefficient Table Add. Offset RBKTAOS • Screen Over Pattern Name Screen Over Pattern Name Screen Over Pattern Name RAOPN RBOPN • Rotation Parameter Table Address Rotation Parameter Table Add. RPTA 1800B6H 1800B6H 1800B8H 1800BAH 1800BCH 1800BEH 2~0 10~8 15~0 15~0 2~0 15~1 nti For Rotation Parameter-A For Rotation Parameter-B For Rotation Parameter-A al For Rotation Parameter-B • Window Position Window Position W0SX 1800C0H 9~0 For W0 Start Point Coordinates (For Horizontal Coordinates) Window Position W0SY 1800C2H 8~0 For W0 Start Point Coordinates (For Vertical Coordinates) Window Position (For Horizontal Coordinates) Window Position (For Vertical Coordinates) Window Position (For Horizontal Coordinates) Window Position W0EX W0EY W1SX W1SY 1800C4H 1800C6H 1800C8H 1800CAH 9~0 8~0 9~0 8~0 deFor W0 End Point Coordinates For W0 End Point Coordinates For W1 Start Point Coordinates For W1 Start Point Coordinates (For Vertical Coordinates) Window Position (For Horizontal Coordinates) Window Position (For Vertical Coordinates) • Window Control W0 Enable W1EX W1EY N0W0E nfi 1800CCH 1800CEH 1800D0H 9~0 8~0 1 For W1 End Point Coordinates For W1 End Point Coordinates For Transparent Processing Window NBGO (or RBG1) W0 Enable W0 Enable W0 Enable W0 Enable W0 Enable W0 Enable W0 Enable Co N1W0E N2W0E N3W0E R0W0E SPW0E RPW0E CCW0E 1800D0H 1800D2H 1800D2H 1800D4H 1800D4H 1800D6H 1800D6H 9 1 9 1 9 1 9 For Transparent Processing Window NBG1 (or EXBG) For Transparent Processing Window NBG2 For Transparent Processing Window NBG3 For Transparent Processing Window RBG0 For Transparent Processing Window Sprite For Rotation Parameter Window For Color Calculation Window W0 Area N0W0A 1800D0H 0 For Transparent Processing Window NBGO (or RBG1) W0 Area W0 Area W0 Area W0 Area W0 Area W0 Area W0 Area GA N1W0A N2W0A N3W0A R0W0A SPW0A RPW0A CCW0A 1800D0H 1800D2H 1800D2H 1800D4H 1800D4H 1800D6H 1800D6H 8 0 8 0 8 0 8 For Transparent Processing Window NBG1 (or EXBG) For Transparent Processing Window NBG2 For Transparent Processing Window NBG3 For Transparent Processing Window RBG0 For Transparent Processing Window Sprite For Rotation Parameter Window For Color Calculation Window SE 322 Bit Name Bit Address Bit Application Abbreviation • Window Control (Continued) W1 Enable W1 Enable W1 Enable W1 Enable W1 Enable W1 Enable W1 Enable N0W1E N1W1E N2W1E N3W1E R0W1E SPW1E RPW1E 1800D0H 1800D0H 1800D2H 1800D2H 1800D4H 1800D4H 1800D6H 3 11 3 11 3 11 3 nti For Transparent Processing Window NBG0 (or RBG1) For Transparent Processing Window NBG1 (or EXBG) For Transparent Processing Window NBG2 al For Transparent Processing Window NBG3 For Transparent Processing Window RBG0 For Transparent Processing Window Sprite For Rotation Parameter Window W1 Enable CCW1E 1800D6H 11 For Color Calculation Window W1 Area N0W1A 1800D0H 2 For Transparent Processing Window NBG0 (or RBG1) W1 Area N1W1A 1800D0H 10 For Transparent Processing Window NBG1 W1 Area W1 Area W1 Area W1 Area W1 Area W1 Area SW Enable N2W1A N3W1A R0W1A SPW1A RPW1A CCW1A N0SWE de 1800D2H 1800D2H 1800D4H 1800D4H 1800D6H 1800D6H 1800D0H 2 10 2 10 2 10 5 (or EXBG) For Transparent Processing Window NBG2 For Transparent Processing Window NBG3 For Transparent Processing Window RBG0 For Transparent Processing Window Sprite For Rotation Parameter Window For Color Calculation Window For Transparent Processing Window NBG0 SW Enable SW Enable SW Enable SW Enable SW Enable N1SWE N2SWE N3SWE R0SWE SPSWE nfi 1800D0H 1800D2H 1800D2H 1800D4H 1800D4H 13 5 13 5 13 (or RBG1) For Transparent Processing Window NBG1 (or EXBG) For Transparent Processing Window NBG2 For Transparent Processing Window NBG3 For Transparent Processing Window RBG0 For Transparent Processing Window Sprite SW Enable SW Area SW Area SW Area SW Area SW Area SW Area Co CCSWE N0SWA N1SWA N2SWA N3SWA R0SWA SPSWA 1800D6H 1800D0H 1800D0H 1800D2H 1800D2H 1800D4H 1800D4H 13 4 12 4 12 4 12 For Color Calculation Window For Transparent Processing Window NBG0 (or RBG1) For Transparent Processing Window NBG1 (or EXBG) For Transparent Processing Window NBG2 For Transparent Processing Window NBG3 For Transparent Processing Window RBG0 For Transparent Processing Window Sprite SW Area CCSWA 1800D6H 12 For Color Calculation Window Window Logic N0LOG 1800D0H 7 For Transparent Processing Window NBG0 GA (or RBG1) Window Logic N1LOG 1800D0H 15 For Transparent Processing Window NBG1 (or EXBG) Window Logic N2LOG 1800D2H 7 For Transparent Processing Window NBG2 Window Logic N3LOG 1800D2H 15 For Transparent Processing Window NBG3 Window Logic R0LOG 1800D4H 7 For Transparent Processing Window RBG0 Window Logic SPLOG 1800D4H 15 For Transparent Processing Window Sprite SE ST-58-R2 323 Bit Name Bit Address Bit Application Abbreviation • Window Control (Continued) Window Logic Window Logic • Line Window Table Address Line Window Enable Line Window Enable Line Window Table Address Line Window Table Address RPLOG CCLOG W0LWE W1LWE W0LWTA W1LWTA 1800D6H 1800D6H 1800D8H 1800DCH 1800D8H 1800DAH 1800DCH 7 15 15 15 2~0 15~1 2~0 For W0 For W1 For W0 For W0 nti For Rotation Parameter Window For Color Calculation Window For W1 al 1800DEH 15~1 For W1 • Sprite Control Sprite Type SPTYPE 1800E0H 3~0 Sprite Window Enable SPWINEN 1800E0H 4 Sprite Color Mode Sprite Color Calculation Condition Sprite Color Calculation Number • Shadow Control Transparent Shadow Select SPCLMD SPCCCS SPCCN TPSDSL 1800E0H 1800E0H 1800E0H 1800E2H 5 13,12 10~8 8 de Shadow Enable Shadow Enable Shadow Enable Shadow Enable Shadow Enable Shadow Enable • Color RAM Address Offset N0SDEN N1SDEN N2SDEN N3SDEN R0SDEN BKSDEN nfi 1800E2H 1800E2H 1800E2H 1800E2H 1800E2H 1800E2H 0 1 2 3 4 5 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For Back Color RAM Address Offset Color RAM Address Offset Color RAM Address Offset Color RAM Address Offset Color RAM Address Offset Color RAM Address Offset • Line Color Screen Enable Line Color Screen Insertion Co N0CAOS N1CAOS N2CAOS N3CAOS R0CAOS SPCAOS N0LCEN 1800E4H 1800E4H 1800E4H 1800E4H 1800E6H 1800E6H 1800F8H 2~0 6~4 10~8 14~12 2~0 6~4 0 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For Sprite For NBG0 (or RBG1) Enable Line Color Screen Insertion N1LCEN 1800F8H 1 For NBG1 (or EXBG) Enable GA Line Color Screen Insertion Enable Line Color Screen Insertion Enable Line Color Screen Insertion Enable Line Color Screen Insertion Enable N2LCEN N3LCEN R0LCEN SPLCEN 1800F8H 1800F8H 1800F8H 1800F8H 2 3 4 5 For NBG2 For NBG3 For RBG0 For Sprite SE 324 Bit Name Bit Address Bit Application Abbreviation • Special Priority Mode Special Priority Mode Special Priority Mode Special Priority Mode Special Priority Mode Special Priority Mode • Color Calculation Control Color Calculation Enable Color Calculation Enable N0SPRM N1SPRM N2SPRM N3SPRM R0SPRM N0CCEN N1CCEN 1800EAH 1800EAH 1800EAH 1800EAH 1800EAH 1800ECH 1800ECH nti 1,0 3,2 5,4 7,6 9,8 0 1 al For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 For NBG0 (or RBG1) For NBG1 (or EXBG) Color Calculation Enable N2CCEN 1800ECH 2 For NBG2 Color Calculation Enable N3CCEN 1800ECH 3 For NBG3 Color Calculation Enable R0CCEN 1800ECH 4 For RBG0 Color Calculation Enable LCCCEN 1800ECH 5 For LNCL Color Calculation Enable Color Calculation Mode Color Calculation Ratio Mode Extended Color Calculation Enable Gradation Calculation Enable Gradation Screen Number SPCCEN CCMD CCRTMD EXCCEN BOKEN BOKN de 1800ECH 1800ECH 1800ECH 1800ECH 1800ECH 1800ECH 6 8 9 10 15 14~12 For Sprite • Special Color Calculation Mode Special Color Calculation Mode N0SCCM Special Color Calculation Mode N1SCCM Special Color Calculation Mode N2SCCM Special Color Calculation Mode N3SCCM Special Color Calculation Mode R0SCCM • Priority Number nfi 1800EEH 1800EEH 1800EEH 1800EEH 1800EEH 1,0 3,2 5,4 7,6 9,8 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 Co Priority Number (for Sprite) Priority Number (for Sprite) Priority Number (for Sprite) Priority Number (for Sprite) Priority Number (for Sprite) Priority Number (for Sprite) Priority Number (for Sprite) Priority Number (for Sprite) S0PRIN S1PRIN S2PRIN S3PRIN S4PRIN S5PRIN S6PRIN S7PRIN 1800F0H 1800F0H 1800F2H 1800F2H 1800F4H 1800F4H 1800F6H 1800F6H 2~0 10~8 2~0 10~8 2~0 10~8 2~0 10~8 For Sprite Register 0 For Sprite Register 1 For Sprite Register 2 For Sprite Register 3 For Sprite Register 4 For Sprite Register 5 For Sprite Register 6 For Sprite Register 7 GA SE ST-58-R2 325 Bit Name Bit Address Bit Application Abbreviation • Priority Number (Continued) Priority Number (for Scroll Screen) Priority Number for (for Scroll Screen) Priority Number for (for Scroll Screen) Priority Number for (for Scroll Screen) N0PRIN N1PRIN N2PRIN N3PRIN 1800F8H 1800F8H 1800FAH 1800FAH 2~0 10~8 2~0 10~8 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 ntial Priority Number for R0PRIN 1800FCH 2~0 For RBG0 (for Scroll Screen) • Color Calculation Ratio Color Calculation Ratio (For Sprite) S0CCRT 180100H 4~0 For Sprite Register 0 Color Calculation Ratio (For Sprite) Color Calculation Ratio (For Sprite) Color Calculation Ratio (For Sprite) Color Calculation Ratio (For Sprite) Color Calculation Ratio (For Sprite) Color Calculation Ratio (For Sprite) Color Calculation Ratio (For Sprite) Color Calculation Ratio (For Scroll S1CCRT S2CCRT S3CCRT S4CCRT S5CCRT S6CCRT S7CCRT 180100H 180102H 180102H 180104H 180104H 180106H 180106H 12~8 4~0 12~8 4~0 12~8 4~0 12~8 deFor Sprite Register 1 For Sprite Register 2 For Sprite Register 3 For Sprite Register 4 For Sprite Register 5 For Sprite Register 6 For Sprite Register 7 Screen) Color Calculation Ratio (For Scroll Screen) Color Calculation Ratio (For Scroll Screen) Color Calculation Ratio (For Scroll Screen) Color Calculation Ratio (For Scroll N0CCRT N1CCRT N2CCRT N3CCRT R0CCRT nfi 180108H 180108H 18010AH 18010AH 18010CH 4~0 12~8 4~0 12~8 4~0 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 For RBG0 Screen) Color Calculation Ratio (For Scroll Screen) Color Calculation Ratio (For Scroll Screen) • Color Offset Enable Color Offset Enable Color Offset Enable Color Offset Enable Co LCCCRT BKCCRT N0COEN N1COEN N2COEN 18010EH 18010EH 180110H 180110H 180110H 4~0 12~8 0 1 2 For LNCL For BACK For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 Color Offset Enable N3COEN 180110H 3 For NBG3 Color Offset Enable R0COEN 180110H 4 For RBG0 GA Color Offset Enable BKCOEN 180110H 5 For BACK Color Offset Enable SPCOEN 180110H 6 For Sprite • Color Offset Select Color Offset Select N0COSL 180112H 0 For NBG0 (or RBG1) Color Offset Select N1COSL 180112H 1 For NBG1 (or EXBG) Color Offset Select N2COSL 180112H 2 For NBG2 Color Offset Select N3COSL 180112H 3 For NBG3 Color Offset Select R0COSL 180112H 4 For RBG0 Color Offset Select BKCOSL 180112H 5 For BACK Color Offset Select SPCOSL 180112H 6 For Sprite SE 326 Bit Name Bit Address Bit Application Abbreviation • Color Offset Color Offset Value Color Offset Value Color Offset Value Color Offset Value Color Offset Value Color Offset Value COARD COAGR COABL COBRD COBGR COBBL 180114H 180116H 180118H 18011AH 18011CH 18011EH nti 8~0 8~0 8~0 8~0 8~0 8~0 For Color Offset A Red Data For Color Offset A Green Data For Color Offset A Blue Data For Color Offset B Red Data al For Color Offset B Green Data For Color Offset B Blue Data de nfi Co GA SE ST-58-R2 327 16.3 Register Bit Functions • TV Mode (Read Allowed) TVMD 180000H 15 DISP 7 LSMD1 14 ~ 6 LSMD0 13 ~ 5 VRESO1 12 ~ 4 VRESO0 11 ~ 3 ~ nti 10 ~ 2 al HRESO2 9 ~ 1 HRESO1 8 BDCLMD 0 HRESO0 TV screen display bit : Display bit (DISP), bit 15 Controls picture display to the TV screen. DISP 0 1 Process Picture is not displayed on TV screen Picture is displayed on TV screen Border color mode bit (BDCLMD), bit 8 Controls colors displayed by the border area. de BDCLMD 0 1 Process Displays black Display back screen Interlace mode bit (LSMD1, LSMD0) bits 7 and 6 Designates the interlace mode. nfi LSMD1 0 0 1 1 LSMD0 0 1 0 1 Co Vertical resolution bit (VRESO1, VRESO0), bit 5, 4 Process Non-Interlace Setting not allowed Single-density interlace Double-density interlace Designates vertical resolution when a picture is displayed on the TV screen. GA VRESO1 VRESO0 Vertical Resolution Display Monitor 0 0 224 Lines NTSC or PAL format TV 0 1 240 Lines NTSC or PAL format TV 1 0 256 Lines PAL format TV 1 1 Not Allowed - SE 328 Horizontal resolution bit (HRESO2 to HRESO0), bit 2 to 0 Selects the horizontal resolution when a picture is displayed on the TV screen. HRESO2 0 0 0 0 HRESO1 0 0 1 1 HRESO0 0 1 0 1 Horizontal Resolution 320 Pixels 352 Pixels 640 Pixels 704 Pixels ntial Graphic Mode Normal Graphic A Normal Graphic B Hi-Res Graphic A Hi-Res Display Monitor NTSC Format or PAL Format TV Graphic B 1 0 0 320 Pixels Exclusive Normal 31kHz Monitor Graphic A 1 0 1 352 Pixels Exclusive Normal Hi-Vision Monitor 1 1 1 1 0 1 de • External Signal Enable Register (Read Allowed) 640 Pixels 704 Pixels Graphic B Exclusive Normal Graphic A Exclusive Normal Graphic B 31kHz Monitor Hi-Vision Monitor EXTEN 180002H 15 ~ 7 ~ 14 ~ 6 ~ nfi 13 ~ 5 ~ External latch enable bit (EXLTEN), bit 9 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 ~ 9 EXLTEN 1 DASEL 8 EXSYEN 0 EXBGEN Selects the condition for latching the HV counter value to the HV counter register. EXLTEN 0 1 Co Condition Latches when reading external signal enable register Latches through external signal EXSYNC enable bit (EXSYEN), bit 8 Controls input to the internal synchronous circuit of the external sync signal. EXSYEN Process GA 0 Does not input external sync signal 1 Inputs external sync signal, and synchronizes TV screen display with the external SE ST-58-R2 329 Display area select bit (DASEL), bit1 Designates the image display area. Valid only when the EXBGEN bit is 1. nti DASEL Process 0 Displays screen image only in the set display area 1 Displays screen in the standard display area EXBG enable bit (EXBGEN), bit 0 Controls input of external screen data. EXBGEN 0 1 Process Does not input external screen data Inputs external screen data • Screen Status (Read Only) al TVSTAT 180004H 15 ~ 7 ~ 14 ~ 6 ~ External latch flag (EXLTFG), bit 9 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3de VBLANK 10 ~ 2 HBLANK 9 EXLTFG 1 ODD 8 EXSYFG 0 PAL EXLTFG nfi Through external signals, this displays whether the HV counter value is latched to the HV counter register. Clears to 0 when the screen status register reads out. 0 1 HV Counter Value Status Not latched in register Latched in register External SYNC flag (EXSYFG), bit 8 Co Displays whether the internal routes through External SYNC flag are in sync. Clears to 0 when the screen status register reads out. EXSYFG 0 1 External Sync Status Not synchronized Internal circuit synchronized GA SE 330 Vertical blank flag (VBLANK), bit 3 Displays the vertical scan status of the TV screen. VBLANK 0 1 Vertical Scan Status During vertical scan During vertical re-trace (VBLANK) Horizontal blank flag (HBLANK), bit 2 Displays the horizontal scan status of the TV screen. HBLANK Horizontal Scan Status ntial 0 During horizontal scan 1 During horizontal re-trace (HBLANK) Scan Field Flag : Odd/even field flag (ODD), bit 1 non-interlace mode is always 1. de Scan conditions are shown when the TV screen mode is the interlace mode. ODD 0 1 Display During even field scan During odd field scan The Displays TV standards. nfi TV standard flags : PAL/NTSC flag (PAL), bit 0 PAL 0 1 Display NTSC standard PAL standard • VRAM Size (Read Allowed) VRSIZE 180006H 15 VRAMSZ 7 ~ Co 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 VER3 10 ~ 2 VER2 9 ~ 1 VER1 8 ~ 0 VER0 GA SE ST-58-R2 331 VRAM size bit (VRAMSZ), bit 15. Indicates the VRAM capacity used in the system. VRAMSZ 0 1 VRAM Size 4M bit 8M bit Version Number Bit (VER3 to VER0), Bits 3 to 0 Shows the VDP2 version number; the first is 0. • H Counter (Read Only) ntial 15 14 13 12 11 10 9 8 HCNT ~ ~ ~ ~ ~ ~ HCT9 HCT8 180008H 7 HCT7 H counter values. 6 HCT6 5 HCT5 H counter bit (HCT9 to HCT0), bits 9 to 0 4 HCT4 de 3 HCT3 2 HCT2 1 HCT1 Signals controlled through EXLTEN external signal enable register show the latched 0 HCT0 Graphic Mode Normal Hi-Res Exclusive Normal Exclusive HCT9 H8 H9 HCT8 H7 H8 Invalid H8 Invalid H9 HCT7 H6 H7 H7 H8 HCT6 H5 H6 H6 H7 HCT5 H4 H5 H5 H6 nfi HCT4 H3 H4 H4 H5 HCT3 H2 H3 H3 H4 HCT2 H1 H2 H2 H3 HCT1 H0 H1 H1 H2 HCT0 Invalid H0 H0 H1 Hi-Res • V Counter (Read Only) VCNT 18000AH 15 ~ 7 VCT7 14 ~ 6 VCT6 Co 13 ~ 5 VCT5 12 ~ 4 VCT4 11 ~ 3 VCT3 10 ~ 2 VCT2 9 VCT9 1 VCT1 8 VCT8 0 VCT0 GA SE 332 V counter value bit : V counter bit (VCT9~VCT0), bit 9 to 0 Signals controlled through EXLTEN external signal enable register show the latched V counter values. TV Screen (Interlace) Mode Normal Hi-Res (Non-Interlace, Single-Density Interlace) Normal Hi-Res (Double-Density Interlace) VCT9 V8 V8 VCT8 V7 V7 VCT7 V6 V6 VCT6 V5 V5 VCT5 V4 V4 VCT4 V3 V3 nti VCT3 V2 V2 al VCT2 V1 V1 VCT1 V0 V0 VCT0 Invalid 0: Odd fields 1: Even fields Exclusive V9 V8 V7 V6 V5 V4 V3 V2 V1 V0 Monitor • RAM Control (Read Allowed) RAMCTL 18000EH 15 CRKTE 7 14 ~ 6 13 CRMD1 5 12 CRMD0 4 11 ~ 3 de 10 ~ 2 9 VRBMD 1 8 VRAMD 0 RDBSB11 RDBSB10 RDBSB01 RDBSB00 RDBSA11 RDBSA10 RDBSA01 RDBSA00 CRKTE nfi Color RAM coefficient table enable bit (CRKTE), bit 15 Designates whether to store the coefficient table in color RAM. 0 1 Process Coefficient table is stored in VRAM. Coefficient table is stored in color RAM. 0 1 Co Color RAM mode bit (CRMD1, CRMD0), bits 13 and 12 Selects the color RAM mode CRMD1 0 CRMD0 0 1 0 Mode 0 1 2 Process RGB each 5 bits, 1024 color settings RGB each 5 bits, 2048 color settings RGB each 8 bits, 1024 color settings 1 1 - Setting not allowed GA VRAM Mode Bit (VRBMD, VRAMD), Bits 9 and 8 Controls VRAM bank partitions SE ST-58-R2 333 VRAMD 18000EH Bit 8 For VRAM-A VRBMD 18000EH Bit 9 For VRAM-B nti VRxMD Process 0 Do not partition in 2 banks 1 Partition in 2 banks Note: Enter A or B into bit name for x. Rotation data bank select bit: Data bank select bit (RDBSA01, RDBSA00, RDBSA11, RDBSA10, RDBSB01, RDBSB00, RDBSB11, RDBSB10) al Designates the use objective of the VRAM of the rotation scroll screen. This bit is only in effect when the rotation scroll screen is displayed. RDBSA00, RDBSA01 RDBSA10, RDBSA11 18000EH 18000EH Bit 1,0 Bit 3,2 For VRAM-A0 (or VRAM-A) For VRAM-A1 RDBSB00, RDBSB01 RDBSB10, RDBSB11 RDBSx1 0 0 1 RDBSx0 0 1 0 18000EH 18000EH VRAM Use Bit 5,4 Bit 7,6 Not used as RAM for RBG0 RAM for RBG0 End table de For VRAM-B0 (or VRAM-B) For VRAM-B1 RAM for RBG0 Pattern Name table 1 Note: 1 nfi RAM for RBG0 Character Pattern table (or Bitmap Pattern) A0, A1, B0, or B1 is entered in bit name for x. • VRAM Cycle Pattern (Bank A0) 15 14 13 12 11 10 9 8 CYCA0L 180010H VCP0A03 VCP0A02 VCP0A01 VCP0A00 VCP1A03 VCP1A02 VCP1A01 VCP1A00 7 15 6 VRAM Cycle Pattern (Bank A0) 14 5 13 Co4 12 3 11 2 10 1 9 0 VCP2A03 VCP2A02 VCP2A01 VCP2A00 VCP3A03 VCP3A02 VCP3A01 VCP3A00 8 CYCA0U VCP4A03 VCP4A02 VCP4A01 VCP4A00 VCP5A03 VCP5A02 VCP5A01 VCP5A00 180012H 7 6 5 4 3 2 1 0 VCP6A03 VCP6A02 VCP6A01 VCP6A00 VCP7A03 VCP7A02 VCP7A01 VCP7A00 VCP7A03) GA VRAM cycle pattern (for VRAM-A0) bit: VRAM cycle pattern bit (VCP0A00 to VCP0A03, VCP1A00 to VCP1A03, VCP2A00 to VCP2A03, VCP3A00 to VCP3A03, VCP4A00 to VCP4A03, VCP5A00 to VCP5A03, VCP6A00 to VCP6A03, VCP7A00 to SE 334 Sets the access command of VRAM access that performs in VRAM-A0 (or VRAM- A) timing T0 to T7. VCP0A00~VCP0A03 VCP1A00~VCP1A03 VCP2A00~VCP2A03 VCP3A00~VCP3A03 VCP4A00~VCP4A03 VCP5A00~VCP5A03 VCP6A00~VCP6A03 VCP7A00~VCP7A03 180010H 180010H 180010H 180010H 180012H 180012H 180012H 180012H Bit 12~15 Bit 8~11 Bit 4~7 Bit 0~3 Bit 12~15 Bit 8~11 Bit 4~7 Bit 0~3 nti VRAM-A0 (or VRAM-A) Timing for T0 VRAM-A0 (or VRAM-A) Timing for T1 VRAM-A0 (or VRAM-A) Timing for T2 al VRAM-A0 (or VRAM-A) Timing for T3 VRAM-A0 (or VRAM-A) Timing for T4 VRAM-A0 (or VRAM-A) Timing for T5 VRAM-A0 (or VRAM-A) Timing for T6 VRAM-A0 (or VRAM-A) Timing for T7 • VRAM Cycle Pattern (Bank A1) 15 14 13 12 11 10 9 8 CYCA1L 180014H de VCP0A13 VCP0A12 VCP0A11 VCP0A10 VCP1A13 VCP1A12 VCP1A11 VCP1A10 7 6 5 4 3 2 1 0 VCP2A13 VCP2A12 VCP2A11 VCP2A10 VCP3A13 VCP3A12 VCP3A11 VCP3A10 • VRAM Cycle Pattern (Bank A1) CYCA1U 180016H 15 7 14 6 nfi 13 5 12 11 10 9 8 VCP4A13 VCP4A12 VCP4A11 VCP4A10 VCP5A13 VCP5A12 VCP5A11 VCP5A10 4 3 2 1 0 VCP6A13 VCP6A12 VCP6A11 VCP6A10 VCP7A13 VCP7A12 VCP7A11 VCP7A10 VRAM cycle pattern (for VRAM-A1) bit: VRAM cycle pattern bit (VCP0A10 to VCP0A13, VCP1A10 to VCP1A13, VCP2A10 to VCP2A13, VCP3A10 to VCP3A13, VCP7A13) Co VCP4A10 to VCP4A13, VCP5A10 to VCP5A13, VCP6A10 to VCP6A13, VCP7A10 to Sets the access command of the VRAM access that performs in VRAM-A1 timing T0 to T7. VCP0A10~VCP0A13 VCP1A10~VCP1A13 180014H 180014H Bit 12~15 Bit 8~11 VRAM-A1 Timing for T0 VRAM-A1 Timing for T1 VCP2A10~VCP2A13 180014H Bit 4~7 VRAM-A1 Timing for T2 VCP3A10~VCP3A13 180014H Bit 0~3 VRAM-A1 Timing for T3 VCP4A10~VCP4A13 180016H Bit 12~15 VRAM-A1 Timing for T4 GA VCP5A10~VCP5A13 VCP6A10~VCP6A13 VCP7A10~VCP7A13 180016H 180016H 180016H Bit 8~11 Bit 4~7 Bit 0~3 VRAM-A1 Timing for T5 VRAM-A1 Timing for T6 VRAM-A1 Timing for T7 SE ST-58-R2 335 • VRAM Cycle Pattern (Bank B0) nti 15 14 13 12 11 10 9 8 CYCB0L VCP0B03 VCP0B02 VCP0B01 VCP0B00 VCP1B03 VCP1B02 VCP1B01 VCP1B00 180018H 7 6 5 4 3 2 1 0 VCP2B03 VCP2B02 VCP2B01 VCP2B00 VCP3B03 VCP3B02 VCP3B01 VCP3B00 • VRAM Cycle Pattern (Bank B0) CYCB0U 18001AH 15 14 13 12 11 10 9 al 8 VCP4B03 VCP4B02 VCP4B01 VCP4B00 VCP5B03 VCP5B02 VCP5B01 VCP5B00 7 6 5 4 3 2 1 0 VCP6B03 VCP6B02 VCP6B01 VCP6B00 VCP7B03 VCP7B02 VCP7B01 VCP7B00 VCP7B00 to VCP7B03) de VRAM cycle pattern (for VRAM-B0) bit: VRAM cycle pattern bit (VCP0B00 to VCP0B03, VCP1B00 to VCP1B03, VCP2B00 to VCP2B03, VCP3B00 to VCP3B03, VCP4B00 to VCP4B03, VCP5B00 to VCP5B03, VCP6B00 to VCP6B03, Sets the access command of VRAM access that performs in VRAM-B0 (or VRAM-B) timing T0 to T7. VCP0B00~VCP0B03 VCP1B00~VCP1B03 VCP2B00~VCP2B03 VCP3B00~VCP3B03 VCP4B00~VCP4B03 VCP5B00~VCP5B03 VCP6B00~VCP6B03 180018H 180018H 180018H 180018H 18001AH 18001AH 18001AH Bit 8~11 Bit 4~7 Bit 0~3 nfi Bit 12~15 Bit 12~15 Bit 8~11 Bit 4~7 VRAM-B0 (or VRAM-B) Timing for T0 VRAM-B0 (or VRAM-B) Timing for T1 VRAM-B0 (or VRAM-B) Timing for T2 VRAM-B0 (or VRAM-B) Timing for T3 VRAM-B0 (or VRAM-B) Timing for T4 VRAM-B0 (or VRAM-B) Timing for T5 VRAM-B0 (or VRAM-B) Timing for T6 VCP7B00~VCP7B03 18001AH • VRAM Cycle Pattern (Bank B1) CYCB1L 18001CH 15 7 14 6 Co 13 5 Bit 0~3 12 4 VRAM-B0 (or VRAM-B) Timing for T7 11 3 10 2 9 8 VCP0B13 VCP0B12 VCP0B11 VCP0B10 VCP1B13 VCP1B12 VCP1B11 VCP1B10 1 0 VCP2B13 VCP2B12 VCP2B11 VCP2B10 VCP3B13 VCP3B12 VCP3B11 VCP3B10 18001EH GA • VRAM Cycle Pattern (Bank B1) CYCB1U 15 14 13 12 11 10 9 8 VCP4B13 VCP4B12 VCP4B11 VCP4B10 VCP5B13 VCP5B12 VCP5B11 VCP5B10 7 6 5 4 3 2 1 0 VCP6B13 VCP6B12 VCP6B11 VCP6B10 VCP7B13 VCP7B12 VCP7B11 VCP7B10 SE 336 VRAM cycle pattern (for VRAM-B1) bit: VRAM cycle pattern bit (VCP0B10 to VCP0B13, VCP1B10 to VCP1B13, VCP2B10 to VCP2B13, VCP3B10 to VCP3B13, VCP4B10 to VCP4B13, VCP5B10 to VCP5B13, VCP6B10 to VCP6B13, nti VCP7B10 to VCP7B13). Sets the access command of VRAM access that performs in VRAM-B1 timing T0 to T7. VCP0B10~VCP0B13 VCP1B10~VCP1B13 VCP2B10~VCP2B13 VCP3B10~VCP3B13 VCP4B10~VCP4B13 VCP5B10~VCP5B13 VCP6B10~VCP6B13 VCP7B10~VCP7B13 18001CH 18001CH 18001CH 18001CH 18001EH 18001EH 18001EH 18001EH Bit 12~15 Bit 8~11 Bit 4~7 Bit 0~3 Bit 12~15 Bit 8~11 Bit 4~7 Bit 0~3 al VRAM-B1 Timing for T0 VRAM-B1 Timing for T1 VRAM-B1 Timing for T2 VRAM-B1 Timing for T3 VRAM-B1 Timing for T4 VRAM-B1 Timing for T5 VRAM-B1 Timing for T6 VRAM-B1 Timing for T7 Access Command Value VCPnxx3 0 0 0 0 0 VCPnxx2 0 0 0 0 1 VCPnxx1 0 0 1 1 0 VCPnxx0 0 1 0 1 0 de VRAM Access NBG0 Pattern Name Data Read NBG1 Pattern Name Data Read NBG2 Pattern Name Data Read NBG3 Pattern Name Data Read NBG0 Character Pattern Data Read 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 1 1 0 0 1 1 nfi1 0 1 0 1 0 1 NBG1 Character Pattern Data Read NBG2 Character Pattern Data Read NBG3 Character Pattern Data Read Setting not allowed Setting not allowed Setting not allowed Setting not allowed 1 1 1 1 1 1 1 1 Co 0 0 1 1 0 1 0 1 NBG0 Vertical Cell Scroll Table Data Read NBG1 Vertical Cell Scroll Table Data Read CPU Read/Write No Access Note: n: 0 to 7 (corresponds to access timing T0 to T7) xx: A0, A1, B0, B1 (corresponds to VRAM-A0, VRAM-A1, VRAM-B0, VRAM-B1) GA SE ST-58-R2 337 • Screen Display Enable 15 14 13 12 11 10 9 8 BGON 180020H ~ 7 ~ ~ 6 ~ ~ 5 R1ON R0TPON R0ON Transparent display enable bit (N0TPON, N1TPON, N2TPON, N3TPON, R0TPON) Designates whether to nullify the transparency code. 4 N3TPON 3 N3ON nti N2TPON 2 N2ON al N1TPON 1 N1ON N0TPON 0 N0ON N0TPON 180020H Bit 8 For NBG0 (or RBG1) N1TPON 180020H Bit 9 For NBG1 (or EXBG) N2TPON 180020H Bit 10 For NBG2 N3TPON 180020H Bit 11 For NBG3 R0TPON xxTPON 0 1 Note: Process 180020H Bit 12 de For RBG0 Validates transparency code (transparency code dots become transparent) Invalidates transparency code (transparency code dots are displayed according to data values) N0, N1, N2, N3, or R0 is entered into bit name for xx. Designates whether to display each scroll screen. nfi Screen display enable bit: On bit (N0ON, N1ON, N2ON, N3ON, R0ON, R1ON) N0ON N1ON N2ON 180020H 180020H 180020H Bit 0 Bit 1 Bit 2 For NBG0 For NBG1 For NBG2 N3ON R0ON R1ON xxON 0 1 180020H 180020H 180020H Process Co Bit 3 Bit 4 Bit 5 For NBG3 For RBG0 For RBG1 Cannot display (Does not execute VRAM access for display) Can display Note: N0, N1, N2, N3, R0, or R1 is entered into bit name xx. • Mosaic Control MZCTL 180022H 15 MZSZV3 7 ~ GA 14 MZSZV2 6 ~ 13 MZSZV1 5 ~ 12 MZSZV0 4 R0MZE 11 MZSZH3 3 N3MZE 10 MZSZH2 2 N2MZE 9 MZSZH1 1 N1MZE 8 MZSZH0 0 N0MZE SE 338 Mosaic size bit (MZSZH3 to MZSZH0, MZSZV3 to MZSZV0) Designates the horizontal and vertical mosaic size. MZSZV3~MZSZV0 MZSZH3~MZSZH0 MZSZH3 0 0 0 0 MZSZH2 0 0 0 0 180022H 180022H MZSZH1 0 0 1 1 0 1 Bit 15~12 MZSZH0 1 0 Bit 11~8 nti Horizontal Mosaic Size al 1 dot 2 dots 3 dots 4 dots For vertical mosaic size For horizontal mosaic size 0 1 0 0 5 dots 0 1 0 1 6 dots 0 1 1 0 7 dots 0 1 1 1 8 dots 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 de 9 dots 10 dots 11 dots 12 dots 13 dots 14 dots 15 dots 16 dots Note: MZSZV3 0 0 There is no relationship with the interlace setting. MZSZV2 0 0 0 nfi MZSZV1 0 MZSZV0 0 1 Vertical Mosaic Size Non-Interlace 1 dot 2 dots Interlace 2 dots 4 dots 0 0 0 0 0 0 1 1 0 0 1 1 1 1 0 0 Co 1 1 0 0 1 1 0 0 0 1 0 1 0 1 0 1 3 dots 4 dots 5 dots 6 dots 7 dots 8 dots 9 dots 10 dots 6 dots 8 dots 10 dots 12 dots 14 dots 16 dots 18 dots 20 dots 1 0 1 0 11 dots 22 dots 1 0 1 1 12 dots 24 dots GA 1 1 0 0 13 dots 26 dots 1 1 0 1 14 dots 28 dots 1 1 1 0 15 dots 30 dots 1 1 1 1 16 dots 32 dots SE ST-58-R2 339 Mosaic enable bit (N0MZE, N1MZE, N2MZE, N3MZE, R0MZE) Designates the screen performing mosaic process. N0MZE N1MZE N2MZE N3MZE R0MZE xxMZE 0 180022H 180022H 180022H 180022H 180022H Process Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Does not execute mosaic process nti For NBG0 (or RBG1) For NBG1 For NBG2 For NBG3 al For RBG0 1 Processes mosaic process Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. • Special Function Code Select SFSEL 180024H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 R0SFCS de 11 ~ 3 N3SFCS 10 ~ 2 N2SFCS 9 ~ 1 N1SFCS 8 ~ 0 N0SFCS R0SFCS) nfi Special function code select bit (N0SFCS, N1SFCS, N2SFCS, N3SFCS, Designates the special function code effecting every scroll screen. N0SFCS N1SFCS N2SFCS 180024H 180024H 180024H Bit 0 Bit 1 Bit 2 For NBG0 (or RBG1) For NBG1 For NBG2 N3SFCS R0SFCS xxSFCS 0 1 Note: 180024H 180024H Co Bit 3 Bit 4 Process For NBG3 For RBG0 Enables special function code A Enables special function code B N0, N1, N2, N3, or R0 is entered in bit name for xx. GA SE 340 • Special Function Code 15 14 13 12 11 10 9 8 SFCODE 180026H SFCDB7 7 SFCDA7 SFCDB6 6 SFCDA6 SFCDB5 5 SFCDA5 Special function code bit (SFCDA7 to SFCDA0, SFCDB7 to SFCDB0) Designates special function codes A and B. SFCDB4 4 SFCDA4 nti SFCDB3 3 SFCDA3 al SFCDB2 2 SFCDA2 SFCDB1 1 SFCDA1 SFCDB0 0 SFCDA0 SFCDA7~SFCDA0 180026H Bit 7~0 For Special Function Code A SFCDB7~SFCDB0 180026H Bit 15~8 For Special Function Code B Bit Name Dot Color Code SFCDx0 SFCDx1 SFCDx2 SFCDx3 SFCDx4 SFCDx5 SFCDx6 SFCDx7 de When lower 4 bits of dot color code are, 0H or 1H When lower 4 bits of dot color code are, 2H or 3H When lower 4 bits of dot color code are, 4H or 5H When lower 4 bits of dot color code are, 6H or 7H When lower 4 bits of dot color code are, 8H or 9H When lower 4 bits of dot color code are, AH or BH When lower 4 bits of dot color code are, CH or DH When lower 4 bits of dot color code are, EH or FH Note: Settings 0 1 nfi A or B is entered in bit name x. Process Does not use special functions Uses special functions Co • Character Control (NBG0, NBG1) CHCTLA 180028H 15 ~ 7 ~ 14 ~ 6 13 12 11 10 9 N1CHCN1 N1CHCN0 N1BMSZ1 N1BMSZ0 N1BMEN 5 4 3 2 1 N0CHCN2 N0CHCN1 N0CHCN0 N0BMSZ1 N0BMSZ0 N0BMEN 8 N1CHSZ 0 N0CHSZ • Character Control (NBG2, NBG3, RBG0) GA 15 14 13 12 11 10 9 8 CHCTLB ~ R0CHCN2 R0CHCN1 R0CHCN0 ~ R0BMSZ R0BMEN R0CHSZ 18002AH 7 6 5 4 3 2 1 0 ~ ~ N3CHCN N3CHSZ ~ ~ N2CHCN N2CHSZ SE ST-58-R2 341 Character color number bit (N0CHCN2 to N0CHCN0, N1CHCN1, N1CHCN0, N2CHCN, N3CHCN, R0CHCN2 to R0CHCN0) Designates the character color count of each screen and the bit map color count when displaying by the bit map format. N0CHCN2~N0CHCN0 N1CHCN1,N1CHCN0 N2CHCN N3CHCN R0CHCN2~R0CHCN0 180028H 180028H 18002AH 18002AH 18002AH Bit 6~4 Bit 13,12 Bit 1 Bit 5 Bit 14~12 nti For NBG0 (or RBG1) For NBG1 (or EXBG) al For NBG2 For NBG3 For RBG0 N0CHCN2 N0CHCN1 N0CHCN0 TV Screen Mode Color Exclusive Monitor Normal Hi-Res Format 0 0 0 16 colors 16 colors 16 colors Palette Format 0 0 1 256 colors 256 colors 256 colors Palette Format 0 0 1 1 1 1 1 1 0 0 1 1 0 1 0 1 0 1 2048 colors 32,786 colors 32,786 colors 32,786 colors 16,770,000 colors 2048 colors Setting not allowed de 2048 colors Setting not allowed Setting not allowed (Please do not set.) Setting not allowed (Please do not set.) Setting not allowed (Please do not set.) Palette Format RGB Format RGB Format Note: N1CHCN1 0 0 1 nfi Cannot be displayed by the exclusive monitor mode when used as RBG1. N1CHCN0 0 1 0 TV Screen Mode Normal 16 colors 256 colors 2048 colors Hi-Res 16 colors 256 colors 2048 colors Exclusive Monitor 16 colors 256 colors 2048 colors Color Format Palette Format Palette Format Palette Format 1 Note: NnCHCN0 0 1 Co 32,786 colors 32,786 colors When used as EXBG, and when the set values are N1CHCN1 = 1, N1CHCN0 = 1 there are 16,770,000 colors TV Screen Mode Normal 16 colors Hi-Res 16 colors 32,786 colors Exclusive Monitor 16 colors RGB Format Color Format Palette Format 1 256 colors 256 colors 256 colors Palette Format GA Note: 2 or 3 is entered in bit name for n. SE 342 R0CHCN2 R0CHCN1 R0CHCN0 TV Screen Mode Color Exclusive Monitor Normal Hi-Res Format 0 0 0 16 colors 16 colors Cannot Display Palette Format 0 0 0 1 1 1 1 0 1 1 0 0 1 1 1 0 1 0 1 0 1 256 colors 2048 colors 16,770,000 colors allowednti 256 colors 2048 colors Setting not al Cannot Display Palette Format Cannot Display Palette Format 32,786 colors 32,786 colors Cannot Display RGB Format Cannot Display RGB Format Setting not allowed (Please do not set.) Setting not allowed (Please do not set.) Setting not allowed (Please do not set.) Bit map size bit (N0BMSZ1, N0BMSZ0, N1BMSZ1, N1BMSZ0, R0BMSZ) Designates the bit map size of each screen when display is in a bit map format. N0BMSZ1,N0BMSZ0 N1BMSZ1,N1BMSZ0 R0BMSZ NnBMSZ1 0 0 180028H 180028H 18002AH NnBMSZ0 0 1 de Bit 3,2 Bit 11,10 Bit 10 Bitmap Size 512 H dots X 512 V dots 512 H dots X 512 V dots For NBG0 For NBG1 For RBG0 1 1 0 1 nfi Note: 0 or 1 is entered in bit name for n. ROBMSZ 0 1 Bitmap Size 512 H dots X 256 V dots 512 H dots X 512 V dots 512 H dots X 512 V dots 512 H dots X 512 V dots N0BMEN Co Bit map enable bit (N0BMEN, N1BMEN, R0BMEN) Designates whether to display the scroll screen in a bit map format. N1BMEN R0BMEN 180028H 180028H 18002AH Bit 1 Bit 9 Bit 9 For NBG0 For NBG1 For RBG0 GA SE ST-58-R2 343 xxBMEN Screen Display Format 0 Cell Format 1 Bitmap Format Note: N0, N1, or R0 is entered in bit name for xx. Character size bit (N0CHSZ, N1CHSZ, N2CHSZ, N3CHSZ, R0CHSZ) nti Designates the character size when the scroll screen is in a cell format. N0CHSZ N1CHSZ 180028H 180028H Bit 0 Bit 8 al For NBG0 (or RBG1) For NBG1 N2CHSZ 18002AH Bit 0 For NBG2 N3CHSZ 18002AH Bit 4 For NBG3 ROCHSZ 18002AH Bit 8 For RBG0 xxCHSZ 0 1 Character Pattern Size 1 H Cell X 1 V Cell 2 H Cells X 2 V Cells Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. • Bit Map Palette Number (NBG0, NBG1) de BMPNA 18002CH 15 ~ 7 ~ 14 ~ 6 ~ • Bit Map Palette Number (RBG0) 13 N1BMPR 5 N0BMPR nfi 12 N1BMCC 4 N0BMCC 11 ~ 3 ~ 10 N1BMP6 2 N0BMP6 9 N1BMP5 1 N0BMP5 8 N1BMP4 0 N0BMP4 BMPNB 18002EH Special priority bit (for bit map): Bit map special priority bit (N0BMPR, N1BMPR, R0BMPR) 15 ~ 7 ~ 14 ~ 6 ~ Co 13 ~ 5 R0BMPR 12 ~ 4 R0BMCC 11 ~ 3 ~ 10 ~ 2 R0BMP6 9 ~ 1 R0BMP5 8 ~ 0 R0BMP4 Designates the special priority bit when the scroll screen is displayed by the bit map format. N0BMPR N1BMPR R0BMPR GA 18002CH 18002CH 18002EH Bit 5 Bit 13 Bit 5 For NBG0 For NBG1 For RBG0 SE 344 Special color calculation bit (for bit map): Bit map special color calculation bit (N0BMCC, N1BMCC, R0BMCC) Designates the special color calculation bit when the scroll screen is displayed by the bit map format. N0BMCC N1BMCC R0BMCC 18002CH 18002CH 18002EH Palette number bit (for bit map): Bit map palette number bit (N0BMP6 to N0BMP4, N1BMP6 to N1BMP4, R0BMP6 to R0BMP4) Bit 4 Bit 12 Bit 4 ntial For NBG0 For NBG1 For RBG0 Designates the highest 3 bits of the palette number when the scroll screen is displayed in the bit map format. N0BMP6~N0BMP4 18002CH Bit 2~0 For NBG0 N1BMP6~N1BMP4 R0BMP6~R0BMP4 18002CH 18002EH • Pattern Name Control (NBG0) PNCN0 15 N0PNB 14 N0CNSM 13 ~ deBit 10~8 Bit 2~0 12 ~ 11 ~ 10 ~ For NBG1 For RBG0 9 N0SPR 8 N0SCC 180030H 7 6 14 5 N0SPLT6 N0SPLT5 N0SPLT4 • Pattern Name Control (NBG1) 15 13 nfi 4 N0SCN4 12 3 N0SCN3 11 2 N0SCN2 10 1 N0SCN1 9 0 N0SCN0 8 PNCN1 180032H N1PNB 7 15 Co N1CNSM 6 N1SPLT6 N1SPLT5 N1SPLT4 • Pattern Name Control (NBG2) 14 ~ 5 13 ~ 4 N1SCN4 12 ~ 3 N1SCN3 11 ~ 2 N1SCN2 10 N1SPR 1 N1SCN1 9 N1SCC 0 N1SCN0 8 PNCN2 N2PNB N2CNSM ~ ~ ~ ~ N2SPR N2SCC 180034H 7 6 5 4 3 2 1 0 GA N2SPLT6 N2SPLT5 N2SPLT4 N2SCN4 N2SCN3 N2SCN2 N2SCN1 N2SCN0 • Pattern Name Control (NBG3) 15 14 13 12 11 10 9 8 PNCN3 N3PNB N3CNSM ~ ~ ~ ~ N3SPR N3SCC 180036H 7 6 5 4 3 2 1 0 N3SPLT6 N3SPLT5 N3SPLT4 N3SCN4 N3SCN3 N3SCN2 N3SCN1 N3SCN0 SE ST-58-R2 345 • Pattern Name Control (RBG0) 15 14 13 12 11 10 9 8 PNCR 180038H R0PNB 7 R0CNSM 6 ~ 5 R0SPLT6 R0SPLT5 R0SPLT4 ~ 4 R0SCN4 Pattern name data size bit (N0PNB, N1PNB, N2PNB, N3PNB, R0PNB) ~ 3 R0SCN3 Designates the pattern name data size when displaying in the cell format. nti ~ 2 R0SCN2 al R0SPR 1 R0SCN1 R0SCC 0 R0SCN0 N0PNB 180030H Bit 15 For NBG0 (or RBG1) N1PNB 180032H Bit 15 For NBG1 N2PNB 180034H Bit 15 For NBG2 N3PNB 180036H Bit 15 For NBG3 R0PNB xxPNB 0 1 Note: 180038H Pattern Name Data Size 2 Words 1 Word Bit 15 N0, N1, N3, or R0 is entered in bit name for xx. de For RBG0 size in the pattern name table is 1-word. nfi Character number supplement bit (N0CNSM, N1CNSM, N2CNSM, N3CNSM, R0CNSM) Designates the character number supplement mode when the pattern name data N0CNSM N1CNSM N2CNSM 180030H 180032H 180034H Bit 14 Bit 14 Bit 14 For NBG0 (or RBG1) For NBG1 For NBG2 N3CNSM R0CNSM xxCNSM 0 1 180036H 180038H Co Character Number Auxiliary Mode 0 1 Bit 14 Bit 14 Process For NBG3 For RBG0 Character number in pattern name data is 10 bits. Flip function can be selected in character units. Character number in pattern name data is 12 bits. Flip function cannot be used. Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. GA SE 346 Special priority bit (for pattern name supplement data): Supplement special priority bit (N0SPR, N1SPR, N2SPR, N3SPR, R0SPR) Designates the pattern name supplement data as the special priority bit when the pattern name data size is 1-word. N0SPR N1SPR N2SPR N3SPR R0SPR 180030H 180032H 180034H 180036H 180038H Bit 9 Bit 9 Bit 9 Bit 9 Bit 9 ntial For NBG0 (or RBG1) For NBG1 For NBG2 For NBG3 For RBG0 Special color calculation bit (for pattern name supplement data): Supplementary special color calculation bit (N0SCC, N1SCC, N2SCC, N3SCC, R0SCC) The special color calculation bit is designated as pattern name supplement data when the pattern name data size is 1-word. N0SCC N1SCC N2SCC N3SCC R0SCC 180030H 180032H 180034H 180036H 180038H de Bit 8 Bit 8 Bit 8 Bit 8 Bit 8 For NBG0 (or RBG 1) For NBG1 For NBG2 For NBG3 For RBG0 N0SPLT6~N0SPLT4 nfi Supplementary palette number bit (N0SPLT6 to N0SPLT4, N1SPLT6 to N1SPLT4, N2SPLT6 to N2SPLT4, N3SPLT6 to N3SPLT4, R0SPLT6 to R0SPLT4) Designates the palette number bit as pattern name supplement data when the pattern name data size is 1-word. Three bits are added to the palette number bit of the pattern name data for the supplementary palette number bit. 180030H Bit 7~5 For NBG0 (or RBG 1) N1SPLT6~N1SPLT4 N2SPLT6~N2SPLT4 N3SPLT6~N3SPLT4 R0SPLT6~R0SPLT4 Co 180032H 180034H 180036H 180038H Bit 7~5 Bit 7~5 Bit 7~5 Bit 7~5 Supplementary character number bit (N0SCN4 to N0SCN0, N1SCN4 to N1SCN0, N2SCN4 to N2SCN0, N3SCN4 to N3SCN0, R0SCN4 to R0SCN0) For NBG1 For NBG2 For NBG3 For RBG0 GA SE ST-58-R2 347 Designates the character number bit as the pattern name supplement data when the pattern name data size is 1-word. Five bits are added to the palette number bit of the pattern name data for the supplementary palette number bit. N0SCN4~N0SCN0 N1SCN4~N1SCN0 N2SCN4~N2SCN0 N3SCN4~N3SCN0 R0SCN4~R0SCN0 Plane Size 180030H 180032H 180034H 180036H 180038H Bit 4~0 Bit 4~0 Bit 4~0 Bit 4~0 Bit 4~0 nti For NBG0 (or RBG 1) For NBG1 For NBG2 al For NBG3 For RBG0 15 14 13 12 11 10 9 8 PLSZ RBOVR1 RBOVR0 RBPLSZ1 RBPLSZ0 RAOVR1 RAOVR0 RAPLSZ1 RAPLSZ0 18003AH 7 6 5 4 3 2 1 0 N3PLSZ1, N3PLSZ0, RAPLSZ1, RAPLSZ0, RBPLSZ1, RBPLSZ0) de N3PLSZ1 N3PLSZ0 N2PLSZ1 N2PLSZ0 N1PLSZ1 N1PLSZ0 N0PLSZ1 N0PLSZ0 Plane size bit (N0PLSZ1, N0PLSZ0, N1PLSZ1, N1PLSZ0, N2PLSZ1, N2PLSZ0, Designates the plane size (number of pages) of each scroll screen. N0PLSZ1, N0PLSZ0 18003AH Bit 1,0 For NBG0 N1PLSZ1, N1PLSZ0 N2PLSZ1, N2PLSZ0 N3PLSZ1, N3PLSZ0 RAPLSZ1, RAPLSZ0 RBPLSZ1, RBPLSZ0 xxPLSZ1 18003AH 18003AH 18003AH 18003AH 18003AH xxPLSZ0 nfi Bit 3,2 Bit 5,4 Bit 7,6 Bit 9,8 Bit 13,12 Plane Size For NBG1 For NBG2 For NBG3 For Rotation Parameter A For Rotation Parameter B 0 0 1 1 0 1 0 1 Co 1 H Page X 1 V Page 2 H Pages X 1 V Page Invalid (Do not set.) 2 H Pages X 2 V Pages Note: N0, N1, N2, N3, RA, or RB is entered in bit name for xx. GA SE 348 Screen-over process bit: Over bit (RAOVR1, RAOVR0, RBOVR1, RBOVR0) Designates control (screen-over process) when the display coordinate value exceeds the display area in the rotation scroll screen. RAOVR1, RAOVR0 RBOVR1, RBOVR0 RxOVR1 0 0 RxOVR0 0 1 18003AH 18003AH Bit 11,10 Bit 15,14 Screen Over Process ntial For Rotation Parameter A For Rotation Parameter B Outside the display area, the image set in the display area is repeated. Outside the display area, the character pattern specified by screen over pattern name register is repeated. (Only when the rotation scroll screen is in cell format.) 1 0 Outside the display area, the scroll screen is transparent, 1 1 Set the display area as 0≤X≤512, 0≤Y≤512 regardless of plane size or bitmap size and make that area transparent. Note: A or B is entered in bit name for x. • Map Offset (NBG0~NBG3) MPOFN 18003CH 15 ~ 7 14 N3MP8 6 13 N3MP7 5 de 12 N3MP6 4 11 ~ 3 10 N2MP8 2 9 N2MP7 1 8 N2MP6 0 • Map Offset (Rotation Parameter A, B) MPOFR ~ 15 ~ N1MP8 14 ~ nfi N1MP7 13 ~ N1MP6 12 ~ ~ 11 ~ N0MP8 10 ~ N0MP7 9 ~ N0MP6 8 ~ 18003EH 7 ~ Co 6 RBMP8 5 RBMP7 4 RBMP6 3 ~ Map offset bit (N0MP8 to N0MP6, N1MP8 to N1MP6, N2MP8 to N2MP6, N3MP8 to N3MP6, RAMP8 to RAMP6, RBMP8 to RBMP6) 2 RAMP8 When the scroll screen display format is the cell format, the map offset value of 3 bits is added to the highest 6 bits of the map register. This designates the bit map 1 RAMP7 0 RAMP6 pattern boundary when in the bit map format. GA N0MP8~N0MP6 18003CH Bit 2~0 For NBG0 N1MP8~N1MP6 18003CH Bit 6~4 For NBG1 N2MP8~N2MP6 18003CH Bit 10~8 For NBG2 N3MP8~N3MP6 18003CH Bit 14~12 For NBG3 RAMP8~RAMP6 18003EH Bit 2~0 For Rotation Parameter A RBMP8~RBMP6 18003EH Bit 6~4 For Rotation Parameter B SE ST-58-R2 349 • Map (NBG0, Plane A, B) 15 14 13 12 11 10 9 8 MPABN0 180040H ~ 7 ~ ~ 6 ~ • Map (NBG0, Plane C, D) 15 14 N0MPB5 5 N0MPA5 13 N0MPB4 4 N0MPA4 12 N0MPB3 3 N0MPA3 11 nti N0MPB2 2 N0MPA2 10 al N0MPB1 1 N0MPA1 9 N0MPB0 0 N0MPA0 8 MPCDN0 ~ ~ N0MPD5 N0MPD4 N0MPD3 N0MPD2 N0MPD1 N0MPD0 180042H 7 6 5 4 3 2 1 0 ~ ~ N0MPC5 N0MPC4 N0MPC3 N0MPC2 N0MPC1 N0MPC0 • Map (NBG1, Plane A, B) MPABN1 180044H 15 ~ 7 ~ 14 ~ 6 ~ 13 N1MPB5 5 N1MPA5 12 N1MPB4 4 N1MPA4 de 11 N1MPB3 3 N1MPA3 10 N1MPB2 2 N1MPA2 9 N1MPB1 1 N1MPA1 8 N1MPB0 0 N1MPA0 • Map (NBG1, Plane C, D) MPCDN1 180046H 15 ~ 7 14 ~ 6 13 N1MPD5 5 nfi 12 N1MPD4 4 11 N1MPD3 3 10 N1MPD2 2 9 N1MPD1 1 8 N1MPD0 0 Co ~ ~ N1MPC5 N1MPC4 N1MPC3 N1MPC2 N1MPC1 N1MPC0 • Map (NBG2, Plane A, B) 15 14 13 12 11 10 9 8 MPABN2 ~ ~ N2MPB5 N2MPB4 N2MPB3 N2MPB2 N2MPB1 N2MPB0 180048H 7 6 5 4 3 2 1 0 ~ ~ N2MPA5 N2MPA4 N2MPA3 N2MPA2 N2MPA1 N2MPA0 • Map (NBG2, Plane C, D) MPCDN2 18004AH GA 15 ~ 7 ~ 14 ~ 6 ~ • Map (NBG3, Plane A, B) 13 N2MPD5 5 N2MPC5 12 N2MPD4 4 N2MPC4 11 N2MPD3 3 N2MPC3 10 N2MPD2 2 N2MPC2 9 N2MPD1 1 N2MPC1 8 N2MPD0 0 N2MPC0 SE 15 14 13 12 11 10 9 8 MPABN3 ~ ~ N3MPB5 N3MPB4 N3MPB3 N3MPB2 N3MPB1 N3MPB0 18004CH 7 6 5 4 3 2 1 0 ~ ~ N3MPA5 N3MPA4 N3MPA3 N3MPA2 N3MPA1 N3MPA0 350 • Map (NBG3, Plane C, D) 15 14 13 12 11 10 9 8 MPCDN3 18004EH ~ 7 ~ ~ 6 ~ N3MPD5 5 N3MPC5 N3MPD4 4 N3MPC4 nti N3MPD3 3 N3MPC3 al N3MPD2 N3MPC2 Map bit (for normal scroll): (N0MPA5 to N0MPA0, N0MPB5 to N0MPB0, N0MPC5 to N0MPC0, N0MPD5 to N0MPD0, N1MPA5 to N1MPA0, N1MPB5 to N1MPB0, N1MPC5 to N1MPC0, N1MPD5 to N1MPD0, N2MPA5 to N2MPA0, N2MPB5 to N2MPB0, N2MPC5 to N2MPC0, N2MPD5 to N2MPD0, N3MPA5 to N3MPA0, 2 N3MPD1 1 N3MPC1 N3MPD0 0 N3MPC0 N3MPB5 to N3MPB0, N3MPC5 to N3MPC0, N3MPD5 to N3MPD0) When the Normal scroll screen is displayed by the cell format, the lead address for the pattern name table is designated for each plane. N0MPA5~N0MPA0 N0MPB5~N0MPB0 N0MPC5~N0MPC0 N0MPD5~N0MPD0 N1MPA5~N1MPA0 N1MPB5~N1MPB0 N1MPC5~N1MPC0 180040H 180040H 180042H 180042H 180044H 180044H 180046H de Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 For NBG0 Plane A For NBG0 Plane B For NBG0 Plane C For NBG0 Plane D For NBG1 Plane A For NBG1 Plane B For NBG1 Plane C N1MPD5~N1MPD0 N2MPA5~N2MPA0 N2MPB5~N2MPB0 N2MPC5~N2MPC0 N2MPD5~N2MPD0 N3MPA5~N3MPA0 N3MPB5~N3MPB0 180046H 180048H 180048H 18004AH 18004AH 18004CH 18004CH nfi Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 For NBG1 Plane D For NBG2 Plane A For NBG2 Plane B For NBG2 Plane C For NBG2 Plane D For NBG3 Plane A For NBG3 Plane B N3MPC5~N3MPC0 N3MPD5~N3MPD0 Co 18004EH 18004EH Bit 5~0 Bit 13~8 For NBG3 Plane C For NBG3 Plane D GA SE ST-58-R2 351 • Map (Rotation Parameter A, Plane A, B) 15 14 13 12 11 10 9 8 MPBRAB 180050H ~ 7 ~ ~ 6 ~ RAMPB5 5 RAMPA5 RAMPB4 RAMPA4 • Map (Rotation Parameter A, Plane C, D) 15 14 13 4 12 RAMPB3 3 RAMPA3 11 nti RAMPB2 2 RAMPA2 10 al RAMPB1 1 RAMPA1 9 RAMPB0 0 RAMPA0 8 MPCDRA ~ ~ RAMPD5 RAMPD4 RAMPD3 RAMPD2 RAMPD1 RAMPD0 180052H 7 6 5 4 3 2 1 0 ~ ~ RAMPC5 RAMPC4 RAMPC3 RAMPC2 RAMPC1 RAMPC0 • Map (Rotation Parameter A, Plane E, F) MPEFRA 180054H 15 ~ 7 ~ 14 ~ 6 ~ 13 RAMPF5 5 RAMPE5 12 RAMPF4 4 RAMPE4 de 11 RAMPF3 3 RAMPE3 10 RAMPF2 2 RAMPE2 9 RAMPF1 1 RAMPE1 8 RAMPF0 0 RAMPE0 • Map (Rotation Parameter A, Plane G, H) MPGHRA 180056H 15 ~ 7 14 ~ 6 13 12 RAMPH5 RAMPH4 5 4 nfi 11 RAMPH3 3 10 2 9 1 8 RAMPH2 RAMPH1 RAMPH0 0 ~ ~ 14 RAMPG5 RAMPG4 • Map (Rotation Parameter A, Plane I, J) MPIJRA 180058H ~ 15 ~ 7 ~ 6 ~ Co13 RAMPJ5 5 RAMPI5 12 RAMPJ4 4 RAMPI4 RAMPG3 11 RAMPJ3 3 RAMPI3 RAMPG2 RAMPG1 RAMPG0 10 RAMPJ2 2 RAMPI2 9 RAMPJ1 1 RAMPI1 8 RAMPJ0 0 RAMPI0 • Map (Rotation Parameter A, Plane K, L) MPKLRA 18005AH GA 15 ~ 7 ~ 14 ~ 6 ~ 13 RAMPL5 5 RAMPK5 RAMPL4 RAMPK4 • Map (Rotation Parameter A, Plane M, N) 12 4 11 RAMPL3 3 RAMPK3 10 RAMPL2 2 RAMPK2 9 RAMPL1 1 RAMPK1 8 RAMPL0 0 RAMPK0 SE 15 14 13 12 11 10 9 8 MPMNRA ~ ~ RAMPN5 RAMPN4 RAMPN3 RAMPN2 RAMPN1 RAMPN0 18005CH 7 6 5 4 3 2 1 0 ~ ~ RAMPM5 RAMPM4 RAMPM3 RAMPM2 RAMPM1 RAMPM0 352 • Map (Rotation Parameter A, Plane O, P) 15 14 13 12 11 10 9 8 MPOPRA 18005EH ~ 7 ~ 15 ~ 6 ~ 14 RAMPP5 RAMPP4 5 RAMPO5 RAMPO4 • Map (Rotation Parameter B, Plane A, B) 13 4 12 nti RAMPP3 RAMPP2 RAMPP1 RAMPP0 3 11 al 2 10 1 9 0 RAMPO3 RAMPO2 RAMPO1 RAMPO0 8 MPABRB ~ ~ RBMPB5 RBMPB4 RBMPB3 RBMPB2 RBMPB1 RBMPB0 180060H 7 6 5 4 3 2 1 0 ~ ~ RBMPA5 RBMPA4 RBMPA3 RBMPA2 RBMPA1 RBMPA0 • Map (Rotation Parameter B, Plane C, D) MPCDRB 180062H 15 ~ 7 ~ 14 ~ 6 ~ 13 RBMPD5 5 RBMPC5 12 RBMPD4 4 de RBMPC4 11 RBMPD3 3 RBMPC3 10 RBMPD2 2 RBMPC2 9 RBMPD1 1 RBMPC1 8 RBMPD0 0 RBMPC0 nfi • Map (Rotation Parameter B, Plane E, F) MPEFRB 180064H 15 ~ 7 14 ~ 6 13 RBMPF5 5 12 RBMPF4 4 11 RBMPF3 3 10 RBMPF2 2 9 RBMPF1 1 8 RBMPF0 0 Co ~ ~ RBMPE5 RBMPE4 RBMPE3 RBMPE2 RBMPE1 RBMPE0 • Map (Rotation Parameter B, Plane G, H) 15 14 13 12 11 10 9 8 MPGHRB ~ ~ RBMPH5 RBMPH4 RBMPH3 RBMPH2 RBMPH1 RBMPH0 180066H 7 6 5 4 3 2 1 0 ~ ~ RBMPG5 RBMPG4 RBMPG3 RBMPG2 RBMPG1 RBMPG0 • Map (Rotation Parameter B, Plane I, J) GA MPIJRB 180068H 15 ~ 7 ~ 14 ~ 6 ~ 13 RBMPJ5 5 RBMPI5 RBMPJ4 RBMPI4 • Map (Rotation Parameter B, Plane K, L) 12 4 11 RBMPJ3 3 RBMPI3 10 RBMPJ2 2 RBMPI2 9 RBMPJ1 1 RBMPI1 8 RBMPJ0 0 RBMPI0 15 14 13 12 11 10 9 8 SE MPKLRB ~ ~ RBMPL5 RBMPL4 RBMPL3 RBMPL2 RBMPL1 RBMPL0 18006AH 7 6 5 4 3 2 1 0 ~ ~ RBMPK5 RBMPK4 RBMPK3 RBMPK2 RBMPK1 RBMPK0 ST-58-R2 353 • Map (Rotation Parameter B, Plane M, N) 15 14 13 12 11 10 9 8 MPMNRB 18006CH ~ 7 ~ 15 ~ 6 ~ 14 RBMPN5 RBMPN4 RBMPN3 RBMPN2 RBMPN1 RBMPN0 5 • Map (Rotation Parameter B, Plane O, P) 13 4 12 3 2 11 1 nti 10 0 RBMPM5 RBMPM4 RBMPM3 RBMPM2 RBMPM1 RBMPM0 al 9 8 MPOPRB ~ ~ RBMPP5 RBMPP4 RBMPP3 RBMPP2 RBMPP1 RBMPP0 18006EH 7 6 5 4 3 2 1 0 ~ ~ RBMPO5 RBMPO4 RBMPO3 RBMPO2 RBMPO1 RBMPO0 RAMPC5 to RAMPC0, RAMPD5 to RAMPD0, RAMPE5 to RAMPE0, de Map bit (for rotation scroll): Map bit (RAMPA5 to RAMPA0, RAMPB5 to RAMPB0, RAMPF5 to RAMPF0, RAMPG5 to RAMPG0, RAMPH5 to RAMPH0, RAMPI5 to RAMPI0, RAMPJ5 to RAMPJ0, RAMPK5 to RAMPK0, RAMPL5 to RAMPL0, RAMPM5 to RAMPM0, RAMPN5 to RAMPN0, RAMPO5 to RAMPO0, RAMPP5 to RAMPP0, RBMPA5 to RBMPA0, RBMPB5 to RBMPB0, RBMPC5 to RBMPC0, RBMPD5 to RBMPD0, RBMPE5 to RBMPE0, RBMPF5 to RBMPF0, RBMPG5 to RBMPG0, nfi RBMPH5 to RBMPH0, RAMPI5 to RBMPI0, RBMPJ5 to RBMPJ0, RBMPK5 to RBMPK0, RBMPL5 to RBMPL0, RBMPM5 to RBMPM0, RBMPN5 to RBMPN0, RBMPO5 to RBMPO0, RBMPP5 to RBMPP0) Designates the lead address of the pattern name table being arranged in each plane when a rotation scroll screen is displayed in the cell format. Co GA SE 354 RAMPA5~RAMPA0 180050H Bit 5~0 Rotation Parameter A for Screen Plane A RAMPB5~RAMPB0 180050H Bit 13~8 Rotation Parameter A for Screen Plane B RAMPC5~RAMPC0 180052H Bit 5~0 Rotation Parameter A for Screen Plane C RAMPD5~RAMPD0 RAMPE5~RAMPE0 RAMPF5~RAMPF0 RAMPG5~RAMPG0 RAMPH5~RAMPH0 RAMPI5~RAMPI0 RAMPJ5~RAMPJ0 RAMPK5~RAMPK0 180052H 180054H 180054H 180056H 180056H 180058H 180058H 18005AH Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 nti Rotation Parameter A for Screen Plane D Rotation Parameter A for Screen Plane E Rotation Parameter A for Screen Plane F Rotation Parameter A for Screen Plane G al Rotation Parameter A for Screen Plane H Rotation Parameter A for Screen Plane I Rotation Parameter A for Screen Plane J Rotation Parameter A for Screen Plane K Rotation Parameter A for Screen Plane L RAMPL5~RAMPL0 18005AH Bit 13~8 RAMPM5~RAMPM0 18005CH Bit 5~0 Rotation Parameter A for Screen Plane M RAMPN5~RAMPN0 18005CH Bit 13~8 Rotation Parameter A for Screen Plane N RAMPO5~RAMPO0 18005EH Bit 5~0 Rotation Parameter A for Screen Plane O RAMPP5~RAMPP0 RBMPA5~RBMPA0 RBMPB5~RBMPB0 RBMPC5~RBMPC0 RBMPD5~RBMPD0 RBMPE5~RBMPE0 RBMPF5~RBMPF0 RBMPG5~RBMPG0 18005EH 180060H 180060H 180062H 180062H 180064H 180064H 180066H de Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Rotation Parameter A for Screen Plane P Rotation Parameter B for Screen Plane A Rotation Parameter B for Screen Plane B Rotation Parameter B for Screen Plane C Rotation Parameter B for Screen Plane D Rotation Parameter B for Screen Plane E Rotation Parameter B for Screen Plane F Rotation Parameter B for Screen Plane G RBMPH5~RBMPH0 RBMPI5~RBMPI0 RBMPJ5~RBMPJ0 RBMPK5~RBMPK0 RBMPL5~RBMPL0 RBMPM5~RBMPM0 RBMPN5~RBMPN0 nfi 180066H 180068H 180068H 18006AH 18006AH 18006CH 18006CH Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Bit 5~0 Bit 13~8 Rotation Parameter B for Screen Plane H Rotation Parameter B for Screen Plane I Rotation Parameter B for Screen Plane J Rotation Parameter B for Screen Plane K Rotation Parameter B for Screen Plane L Rotation Parameter B for Screen Plane M Rotation Parameter B for Screen Plane N Co RBMPO5~RBMPO0 RBMPP5~RBMPP0 18006EH 18006EH Bit 5~0 Bit 13~8 Rotation Parameter B for Screen Plane O Rotation Parameter B for Screen Plane P GA SE ST-58-R2 355 • Screen Scroll Value (NBG0, Horizontal Integer Part) nti 15 14 13 12 11 10 9 8 SCXIN0 ~ ~ ~ ~ ~ N0SCXI10 N0SCXI9 N0SCXI8 180070H 7 6 5 4 3 2 1 0 N0SCXI7 N0SCXI6 N0SCXI5 N0SCXI4 N0SCXI3 N0SCXI2 N0SCXI1 N0SCXI0 • Screen Scroll Value (NBG0, Horizontal Fractional Part) SCXDN0 180072H 15 7 ~ 14 N0SCXD1 N0SCXD2 N0SCXD3 N0SCXD4 N0SCXD5 N0SCXD6 N0SCXD7 N0SCXD8 6 ~ 13 5 ~ 12 4 ~ 11 3 ~ 10 2 ~ 9 1 ~ al 8 0 ~ • Screen Scroll Value (NBG0, Vertical Integer Part) SCYIN0 180074H 15 ~ 7 N0SCYI7 14 ~ 6 N0SCYI6 13 ~ 5 N0SCYI5 12 ~ 4 N0SCYI4 11 ~ 3 de 10 9 N0SCYI10 N0SCYI9 2 1 N0SCYI3 N0SCYI2 N0SCYI1 8 N0SCYI8 0 N0SCYI0 180076H 15 nfi • Screen Scroll Value (NBG0, Vertical Fractional Part) SCYDN0 14 13 12 11 10 9 8 N0SCYD1 N0SCYD2 N0SCYD3 N0SCYD4 N0SCYD5 N0SCYD6 N0SCYD7 N0SCYD8 7 6 5 4 3 2 1 0 ZMXIN0 180078H ~ 15 ~ 7 ~ 14 ~ 6 ~ Co13 ~ 5 ~ • Coordinate Increment (NBG0, Horizontal Integer Part) 12 ~ 4 ~ ~ 11 ~ 3 ~ 10 ~ 2 ~ 9 ~ 1 8 ~ 0 ~ ~ ~ ~ ~ N0ZMXI2 N0ZMXI1 N0ZMXI0 • Coordinate Increment (NBG0, Horizontal Fractional Part) ZMXDN0 18007AH GA 15 7 ~ 14 6 ~ 13 N0ZMXD1 N0ZMXD2 N0ZMXD3 N0ZMXD4 N0ZMXD5 N0ZMXD6 N0ZMXD7 N0ZMXD8 5 ~ 12 4 ~ 11 3 ~ • Coordinate Increment (NBG0, Vertical Integer Part) 10 2 ~ 9 1 ~ 8 0 ~ SE 15 14 13 12 11 10 9 8 ZMYIN0 ~ ~ ~ ~ ~ ~ ~ ~ 18007CH 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ N0ZMYI2 N0ZMYI1 N0ZMYI0 356 • Coordinate Increment (NBG0, Vertical Fractional Part) 15 14 13 12 11 10 9 8 ZMYDN0 18007EH N0ZMYD1 N0ZMYD2 N0ZMYD3 N0ZMYD4 N0ZMYD5 N0ZMYD6 N0ZMYD7 N0ZMYD8 7 ~ 15 6 ~ 14 5 ~ 13 4 ~ 3 ~ • Screen Scroll Value (NBG1, Horizontal Integer Part) 12 nti 2 ~ 11 al 1 ~ 10 0 ~ 9 8 SCXIN1 ~ ~ ~ ~ ~ N1SCXI10 N1SCXI9 N1SCXI8 180080H 7 6 5 4 3 2 1 0 N1SCXI7 N1SCXI6 N1SCXI5 N1SCXI4 N1SCXI3 N1SCXI2 N1SCXI1 N1SCXI0 5 de • Screen Scroll Value (NBG1, Horizontal Fractional Part) SCXDN1 180082H 15 7 ~ 14 N1SCXD1 N1SCXD2 N1SCXD3 N1SCXD4 N1SCXD5 N1SCXD6 N1SCXD7 N1SCXD8 6 ~ 13 ~ 12 4 ~ 11 3 ~ 10 2 ~ 9 1 ~ 8 0 ~ SCYIN1 ~ nfi • Screen Scroll Value (NBG1, Vertical Integer Part) 180084H 15 ~ 7 14 6 13 ~ 5 12 ~ 4 11 ~ 3 10 9 N1SCYI10 N1SCYI9 2 1 8 N1SCYI8 0 Co 14 N1SCYI4 N1SCYI3 N1SCYI2 N1SCYI1 • Screen Scroll Value (NBG1, Vertical Fractional Part) SCYDN1 180086H N1SCYI7 15 7 N1SCYI6 6 13 5 N1SCYI5 12 4 11 3 10 9 8 N1SCYD1 N1SCYD2 N1SCYD3 N1SCYD4 N1SCYD5 N1SCYD6 N1SCYD7 N1SCYD8 2 1 0 N1SCYI0 ~ ~ ~ ~ ~ ~ ~ ~ • Coordinate Increment (NBG1, Horizontal Integer Part) GA ZMXIN1 180088H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ • Coordinate Increment (NBG1, Horizontal Fractional Part) 10 ~ 2 9 ~ 1 8 ~ 0 N1ZMXI2 N1ZMXI1 N1ZMXI0 SE 15 14 13 12 11 10 9 8 ZMXDN1 N1ZMXD1 N1ZMXD2 N1ZMXD3 N1ZMXD4 N1ZMXD5 N1ZMXD6 N1ZMXD7 N1ZMXD8 18008AH 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ ~ ~ ~ ST-58-R2 357 • Coordinate Increment (NBG1, Vertical Integer Part) 15 14 13 12 11 10 9 8 ZMYIN1 18008CH ~ 7 ~ 15 14 ~ 6 ~ 13 ~ 5 ~ • Coordinate Increment (NBG1, Vertical Fractional Part) 12 ~ 4 ~ 11 ~ 3 ~ 10 9 nti ~ 2 N1ZMYI2 N1ZMYI1 N1ZMYI0 al 8 ~ 1 ~ 0 ZMYDN1 N1ZMYD1 N1ZMYD2 N1ZMYD3 N1ZMYD4 N1ZMYD5 N1ZMYD6 N1ZMYD7 N1ZMYD8 18008EH 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ ~ ~ ~ • Screen Scroll Value (NBG2, Horizontal) SCXN2 180090H 15 ~ 7 N2SCX7 14 ~ 6 N2SCX6 13 ~ 5 N2SCX5 12 ~ 4 N2SCX4 de 11 ~ 3 N2SCX3 10 N2SCX10 2 N2SCX2 9 N2SCX9 1 N2SCX1 8 N2SCX8 0 N2SCX0 • Screen Scroll Value (NBG2, Vertical) SCYN2 180092H 15 ~ 7 14 ~ 6 13 ~ 5 nfi 12 ~ 4 11 ~ 3 10 N2SCY10 2 9 N2SCY9 1 8 N2SCY8 0 • Screen Scroll Value (NBG3, Horizontal) SCXN3 180094H N2SCY7 15 ~ 7 N2SCY6 14 ~ 6 Co N2SCY5 13 ~ 5 N2SCY4 12 ~ 4 N2SCY3 11 ~ 3 N2SCY2 10 N3SCX10 2 N2SCY1 9 N3SCX9 1 N2SCY0 8 N3SCX8 0 N3SCX7 N3SCX6 N3SCX5 N3SCX4 N3SCX3 N3SCX2 N3SCX1 N3SCX0 • Screen Scroll Value (NBG3, Vertical) SCYN3 180096H GA 15 ~ 7 N3SCY7 14 ~ 6 N3SCY6 13 ~ 5 N3SCY5 12 ~ 4 N3SCY4 11 ~ 3 N3SCY3 10 N3SCY10 2 N3SCY2 Screen scroll value bit: Scroll bit (N0SCXI10 to N0SCXI0, N0SCXD1 to 9 N3SCY9 1 N3SCY1 8 N3SCY8 0 N3SCY0 N0SCXD8, N0SCYI10 to N0SCYI0, N0SCYD1 to N0SCYD8, N1SCXI10 to N1SCXI0, N1SCXD1 to N1SCXD8, N1SCYI10 to N1SCYI0, N1SCYD1 to N1SCYD8, N2SCX10 to SE N2SCX0, N2SCY10 to N2SCY0, N3SCX10 to N3SCX0, N3SCY10 to N3SCY0) Designates the horizontal and vertical screen scroll values (coordinate values) of the Normal scroll screen. 358 N0SCXI10~N0SCXI0 180070H Bit 10~0 For NBG0 horizontal direction (integer part) N0SCXD1~N0SCXD8 180072H Bit 15~8 For NBG0 horizontal direction (fractional part) N0SCYI10~N0SCYI0 180074H Bit 10~0 For NBG0 vertical direction (integer part) N0SCYD1~N0SCYD8 N1SCXI10~N1SCXI0 N1SCXD1~N1SCXD8 N1SCYI10~N1SCYI0 N1SCYD1~N1SCYD8 N2SCX10~N2SCX0 N2SCY10~N2SCY0 N3SCX10~N3SCX0 180076H 180080H 180082H 180084H 180086H 180090H 180092H 180094H Bit 15~8 Bit 10~0 Bit 15~8 Bit 10~0 Bit 15~8 Bit 10~0 Bit 10~0 Bit 10~0 nti For NBG0 vertical direction (fractional part) For NBG1 horizontal direction (integer part) For NBG1 horizontal direction (fractional part) For NBG1 vertical direction (integer part) al For NBG1 vertical direction (fractional part) For NBG2 horizontal direction For NBG2 vertical direction For NBG3 horizontal direction N3SCY10~N3SCY0 180096H Bit 10~0 For NBG3 vertical direction Coordinate increment bit: Zoom bit (N0ZMXI2 to N0ZMXI0, N0ZMXD1 to N0ZMXD8, N0ZMYI2 to N0ZMYI0, N0ZMYD1 to N0ZMYD8, N1ZMXI2 to N1ZMXI0, N1ZMXD1 to N1ZMXD8, N1ZMYI2 to N1ZMYI0, N1ZMYD1 to N1ZMYD8) de Designates horizontal and vertical coordinate increments for calculating display coordinates when expanding and reducing all Normal scroll screens. N0ZMXI2~N0ZMXI0 N0ZMXD1~N0ZMXD8 N0ZMYI2~N0ZMYI0 N0ZMYD1~N0ZMYD8 180078H 18007AH 18007CH 18007EH Bit 2~0 Bit 15~8 Bit 2~0 Bit 15~8 For NBG0 horizontal direction (integer part) For NBG0 horizontal direction (fractional part) For NBG0 vertical direction (integer part) For NBG0 vertical direction (fractional part) N1ZMXI2~N1ZMXI0 N1ZMXD1~N1ZMXD8 N1ZMYI2~N1ZMYI0 N1ZMYD1~N1ZMYD8 • Reduction Enable 180088H 18008AH 18008CH 18008EH nfi Bit 2~0 Bit 15~8 Bit 2~0 Bit 15~8 For NBG1 horizontal direction (integer part) For NBG1 horizontal direction (fractional part) For NBG1 vertical direction (integer part) For NBG1 vertical direction (fractional part) ZMCTL 180098H 15 ~ 7 ~ Co 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 ~ Reduction enable bit: Zoom quarter/half bit (N1ZMQT, N1ZMHF, N0ZMQT, N0ZMHF) Designates the maximum reducible range of each Normal scroll screen in the 9 N1ZMQT 1 N0ZMQT 8 N1ZMHF 0 N0ZMHF horizontal direction. GA SE ST-58-R2 359 N0ZMHF 180098H Bit 0 For NBG0 N0ZMQT 180098H Bit 1 For NBG0 N1ZMHF 180098H Bit 8 For NBG1 N1ZMQT 180098H Bit 9 For NBG1 NxZMQT 0 0 1 1 NxZMHF 0 1 0 1 Horizontal Reduction Display Not allowed Up to 1/2 Up to 1/4 Up to 1/4 Restriction Items None ntial The number of character colors can be set for 16 or 256 colors only. The number of character colors can be set for 16 colors only. The number of character colors can be set for 16 colors only. Note: 0 or 1 is entered in bit name for x. • Line and Vertical Cell Scroll Control (NBG0, NBG1) SCRCTL 18009AH 15 ~ 7 ~ 14 ~ 6 ~ 13 N1LSS1 5 N0LSS1 12 N1LSS0 4 N0LSS0 de11 N1LZMX 3 N0LZMX 10 N1LSCY 2 N0LSCY 9 N1LSCX 1 N0LSCX 8 N1VCSC 0 N0VCSC N0LSS1, N0LSS0 nfi Line Scroll Interval Bit: Line scroll select bit (N0LSS1, N0LSS0, N1LSS1, N1LSS0) Designates the interval that reads line scroll table data from the table. The interval changes depending on the interlace of the TV screen. N1LSS1, N1LSS0 18009AH 18009AH Bit 5, 4 Bit 13,12 For NBG0 For NBG1 NxLSS1 0 0 1 1 Note: NxLSS0 0 1 0 1 Each line Co Non-Interlace Every 2 lines Every 4 lines Every 8 lines 0 or 1 is entered in bit name for x. Interlace Setting Single-Density Interlace Every 2 lines Every 4 lines Every 8 lines Every 16 lines Double-Density Interlace Each line Every 2 lines Every 4 lines Every 8 lines Line zoom enable bit: Line zoom X enable bit (N1LZMX, N0LZMX) GA Designates whether expansion-reduction is done horizontally in line units. N0LZMX 18009AH Bit 3 For NBG0 N1LSCX 18009AH Bit 11 For NBG1 SE 360 NxLZMX Process 0 Does not scale horizontally per line units 1 Scales horizontally per line units Note: 0 or 1 is entered in bit name for x. nti Line scroll enable bit (for the vertical screen scroll value): Line scroll Y enable bit (N1LSCY, N0LSCY) Designates whether scroll is performed by vertical line units. N0LSCY N1LSCY 18009AH 18009AH Bit 2 Bit 10 al For NBG0 For NBG1 NxLSCY Process 0 Does not scroll vertically per line units 1 Scrolls vertically per line units Note: 0 or 1 is entered in bit name for x. de Line scroll enable bit (for the horizontal screen scroll value): Line scroll X enable bit (N1LSCX, N0LSCX) Designates whether scroll is performed by horizontal line units. N0LSCX 18009AH Bit 1 For NBG0 N1LSCX NxLSCX 0 1 Note: 18009AH nfi 0 or 1 is entered in bit name for x. Bit 9 Process For NBG1 Does not scroll horizontally per line units Scrolls horizontally per line units N0VCSC Co Vertical cell scroll enable bit (N1VCSC, N0VCSC) Designates whether to perform vertical cell scroll. N1VCSC NxVCSC 18009AH 18009AH Bit 0 Bit 8 Process For NBG0 For NBG1 0 Does not cell-scroll vertically 1 Cell-scrolls vertically GA Note: 0 or 1 is entered in bit name for x. SE ST-58-R2 361 • Vertical Cell Scroll Table Address (NBG0, NBG1) 15 14 13 12 11 10 9 8 VCSTAU 18009CH 15 ~ 7 ~ 14 ~ 6 ~ • Vertical Cell Scroll Table Address (NBG0, NBG1) 13 ~ 5 ~ 12 11 ~ 4 ~ 10 ~ 3 ~ nti ~ 2 al ~ 1 ~ 0 VCSTA18 VCSTA17 VCSTA16 9 8 VCSTAL VCSTA15 VCSTA14 VCSTA13 VCSTA12 VCSTA11 VCSTA10 VCSTA9 VCSTA8 18009EH 7 6 5 4 3 2 1 0 VCSTA7 VCSTA6 VCSTA5 VCSTA4 VCSTA3 VCSTA2 VCSTA1 ~ Vertical cell scroll table address bit (VCSTA18 to VCSTA1), de Designates the lead address of the vertical cell scroll table on the VRAM. VCSTA18~VCSTA16 VCSTA15~VCSTA1 18009CH 18009EH • Line Scroll Table Address (NBG0) Bit 2~0 Bit 15~1 LSTA0U 1800A0H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ nfi 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 9 ~ 1 8 ~ 0 N0LSTA18 N0LSTA17 N0LSTA16 Co • Line Scroll Table Address (NBG0) LSTA0L 1800A2H 15 N0LSTA15 N0LSTA14 N0LSTA13 N0LSTA12 N0LSTA11 N0LSTA10 7 N0LSTA7 14 6 N0LSTA6 13 5 N0LSTA5 12 4 N0LSTA4 11 3 N0LSTA3 10 2 N0LSTA2 9 N0LSTA9 1 N0LSTA1 8 N0LSTA8 0 ~ • Line Scroll Table Address (NBG1) GA 15 14 13 12 11 10 9 8 LSTA1U ~ ~ ~ ~ ~ ~ ~ ~ 1800A4H 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ N1LSTA18 N1LSTA17 N1LSTA16 • Line Scroll Table Address (NBG1) 15 14 13 12 11 10 9 8 LSTA1L N1LSTA15 N1LSTA14 N1LSTA13 N1LSTA12 N1LSTA11 N1LSTA10 N1LSTA9 N1LSTA8 SE 1800A6H 7 N1LSTA7 6 N1LSTA6 5 N1LSTA5 4 N1LSTA4 3 N1LSTA3 2 N1LSTA2 1 N1LSTA1 0 ~ 362 Line scroll table address bit (N0LSTA18 to N0LSTA16, N0LSTA15 to N0LSTA1, N1LSTA18 to N1LSTA16, N1LSTA15 to N1LSTA1) Designates the lead address of the line scroll table on the VRAM. N0LSTA18~N0LSTA16 N0LSTA15~N0LSTA1 N1LSTA18~N1LSTA16 N1LSTA15~N1LSTA1 1800A0H 1800A2H 1800A4H 1800A6H • Line Color Screen Table Address Bit 2~0 Bit 15~1 Bit 2~0 Bit 15~1 ntial For NBG0 (upper bit) For NBG0 (lower bit) For NBG1 (upper bit) For NBG1 (lower bit) 15 14 13 12 11 10 9 8 LCTAU LCCLMD ~ ~ ~ ~ ~ ~ ~ 1800A8H 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ LCTA18 LCTA17 LCTA16 • Line Color Screen Table Address LCTAL 1800AAH 15 LCTA15 7 14 LCTA14 6 13 LCTA13 5 de12 LCTA12 4 11 LCTA11 3 10 LCTA10 2 9 LCTA9 1 8 LCTA8 0 LCCLMD LCTA7 LCTA6 nfi LCTA5 LCTA4 LCTA3 Line color screen mode bit: LNCL color mode bit (LCCLMD), bit 15 Designates the color mode of the line color screen. 0 LCTA2 Line Color Screen Color Single color LCTA1 LCTA0 1 Co Select per each line Line color screen table address bit: LNCL table address bit (LCTA18 to LCTA0) Designates the lead address of the line color screen table on the VRAM. LCTA18~LCTA16 LCTA15~LCTA0 1800A8H 1800AAH Bit 2~0 Bit 15~0 • Back Screen Table Address GA BKTAU 1800ACH 15 BKCLMD 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 BKTA18 9 ~ 1 BKTA17 8 ~ 0 BKTA16 SE ST-58-R2 363 • Back Screen Table Address 15 14 13 12 11 10 9 8 BKTAL 1800AEH BKTA15 7 BKTA7 BKTA14 6 BKTA6 BKTA13 5 BKTA5 Back screen color mode bit: BACK color mode bit (BKCLMD), bit 15 Designates color mode of the back screen. BKTA12 4 BKTA4 BKTA11 3 BKTA3 nti BKTA10 2 BKTA2 al BKTA9 1 BKTA1 BKTA8 0 BKTA0 BKCLMD Back Screen Color 0 Single color 1 Select per each line BKTA18~BKTA16 de Back screen table address bit: BACK color table address bit (BKTA18 to BKTA0) Designates the lead address of the back screen table on the VRAM. BKTA 15~BKTA0 1800ACH 1800AEH • Rotation Parameter Mode Bit 2~0 Bit 15~0 RPMD 1800B0H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ nfi 12 ~ 4 ~ Rotation parameters mode bit (RPMD1, RPMD0), bits 1 and 0 11 ~ 3 ~ 10 ~ 2 ~ 9 ~ 1 RPMD1 8 ~ 0 RPMD0 1 1 Co When displaying RGB0, designates which rotation parameter of A or B will be used. RPMD1 0 0 RPMD0 0 0 Mode 0 1 2 Rotation Parameter Rotation Parameter A Rotation Parameter B A screen and B screen are switched via coefficient data read from rotation parameter A coefficient table. 1 1 3 A screen and B screen are switched via rotation parameter window RPRCTL GA • Rotation Parameter Read Control 1800B2H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 RBKASTRE RBYSTRE 2 9 1 RAKASTRE RAYSTRE 8 RBXSTRE 0 RAXSTRE SE 364 Parameter read enable bit (RAXSTRE, RBXSTRE, RAYSTRE, RBYSTRE, RAKASTRE, RBKASTRE) Designates the coefficient table start address KAst and TV screen start coordinates Xst and Yst and whether to read from the rotation parameter table in that line. RAXSTRE RBXSTRE RAYSTRE RBYSTRE RAKASTRE RBKASTRE 1800B2H 1800B2H 1800B2H 1800B2H 1800B2H 1800B2H Bit 0 Bit 8 Bit 1 Bit 9 Bit 2 Bit 10 nti For Xst of Rotation Parameter A For Xst of Rotation Parameter B al For Yst of Rotation Parameter A For Yst of Rotation Parameter B For KAst of Rotation Parameter A For KAst of Rotation Parameter B RxSTRE Process 0 Selected parameters are not read for that line 1 Selected parameters are read for that line Note: AX, BX, AY, BY, AKA, or BKA is entered in bit name for x. • Coefficient Table Control KTCTL 15 ~ 14 ~ 13 ~ de12 RBKLCE 11 RBKMD1 10 RBKMD0 9 RBKDBS 8 RBKTE 1800B4H RAKLCE 7 ~ 6 ~ 1800B4H nfi 5 ~ Coefficient line color enable bit (RAKLCE, RBKLCE) 4 RAKLCE 3 RAKMD1 Designates whether to use line color screen data in coefficient data. Bit 4 2 RAKMD0 1 RAKDBS For Rotation Parameter A 0 RAKTE RBKLCE RxKLCE 0 1 Note: Co 1800B4H Process Bit 12 For Rotation Parameter B Line color screen data within coefficient data is not used Line color screen data within coefficient data is used A or B is entered in the bit name for x. Coefficient data mode bit: Coefficient mode bit (RAKMD1, RAKMD0, RBKMD1, RBKMD0) GA Designates what parameters the coefficient data is used as. RAKMD1, RAKMD0 1800B4H Bit 3,2 For Rotation Parameter A RBKMD1, RBKMD0 1800B4H Bit 11,10 For Rotation Parameter B SE ST-58-R2 365 RxKMD1 RxKMD0 Mode Coefficient Data Function 0 0 0 Use as scale coefficient kx, ky 0 1 1 Use as scale coefficient kx 1 0 2 Use as scale coefficient ky 1 Note: 1 3 A or B is entered in the bit name for x. Coefficient data size bit (RAKDBS, RBKDBS) Designates the size of the coefficient data. RAKDBS 1800B4H nti Use as viewpoint Xp after rotation conversion Bit 1 al For Rotation Parameter A RBKDBS 1800B4H Bit 9 For Rotation Parameter B RxKDBS Coefficient Data Size 0 2 Words 1 Note: A or B is entered in the bit name for x. Coefficient table enable bit (RAKTE, RBKTE) Designates whether the coefficient table is used. 1 Word de RAKTE RBKTE RxKTE 0 1 Note: 1800B4H 1800B4H A or B is entered in the bit name for x. nfi Bit 0 Bit 8 Process For Rotation Parameter A For Rotation Parameter B Do not use coefficient table Use coefficient table • Coefficient Table Address Offset (Rotation Parameter A, B) KTAOF 1800B6H 15 ~ 7 ~ 14 ~ 6 ~ Co 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 RBKTAOS2 RBKTAOS1 RBKTAOS0 2 9 1 8 0 RAKTAOS2 RAKTAOS1 RAKTAOS0 Coefficient table address offset bit (RAKTAOS2 to RAKTAOS0, RBKTAOS2 to GA RBKTAOS0) Designates the lead address offset value of the coefficient table stored in the rotation parameter table. SE 366 RAKTAOS2~RAKTAOS0 1800B6H Bit 2~0 For Rotation Parameter A RBKTAOS2~RBKTAOS0 1800B6H Bit 10~8 For Rotation Parameter B • Screen-over Pattern Name (Rotation Parameter A) OVPNRA 1800B8H 15 14 13 12 11 10 nti9 RAOPN15 RAOPN14 RAOPN13 RAOPN12 RAOPN11 RAOPN10 RAOPN9 7 6 5 4 3 2 RAOPN7 RAOPN6 RAOPN5 RAOPN4 RAOPN3 RAOPN2 RAOPN1 al 1 8 RAOPN8 0 RAOPN0 • Screen-over Pattern Name (Rotation Parameter B) 15 14 13 12 11 10 9 8 OVPNRB RBOPN15 RBOPN14 RBOPN13 RBOPN12 RBOPN11 RBOPN10 RBOPN9 RBOPN8 1800BAH 7 6 5 4 de3 2 RBOPN7 RBOPN6 RBOPN5 RBOPN4 RBOPN3 RBOPN2 RBOPN1 Over pattern name bit (RAOPN15 to RAOPN0, RBOPN15 to RBOPN0) 1 Designates pattern name data when the screen-over process repeating the character pattern is set. 0 RBOPN0 RAOPN15~RAOPN0 RBOPN15~RBOPN0 1800B8H 1800BAH ~ ~ Bit 15~0 Bit 15~0 • Rotation Parameter Table Address (Rotation Parameter A, B) RPYAU 15 ~ 14 nfi 13 12 ~ 11 ~ For Rotation Parameter A For Rotation Parameter B 10 ~ 9 ~ 8 ~ 1800BCH 7 ~ Co 6 ~ 5 ~ 4 ~ 3 ~ • Rotation Parameter Table Address (Rotation Parameter A, B) RPTAL 15 RPTA15 14 RPTA14 13 RPTA13 12 RPTA12 11 RPTA11 2 RPTA18 10 RPTA10 1 RPTA17 9 RPTA9 0 RPTA16 8 RPTA8 1800BEH 7 6 5 4 3 2 1 0 RPTA7 RPTA6 RPTA5 RPTA4 RPTA3 RPTA2 RPTA1 ~ GA Rotation parameters table address bit (RPTA18 to RPTA1) Designates the lead address of rotation parameter tables. RPTA18~RPTA16 RPTA15~RPTA1 1800BCH 1800BEH Bit 2~0 Bit 15~1 SE ST-58-R2 367 • Window Position (W0, Horizontal Start Point) 15 14 13 12 11 10 9 8 WPSX0 1800C0H ~ 7 W0SX7 15 ~ 6 W0SX6 14 ~ 5 W0SX5 13 ~ 4 W0SX4 • Window Position (W0, Vertical Start Point) 12 ~ 3 W0SX3 11 nti ~ 2 W0SX2 10 al W0SX9 1 W0SX1 9 W0SX8 0 W0SX0 8 WPSY0 ~ ~ ~ ~ ~ ~ ~ W0SY8 1800C2H 7 6 5 4 3 2 1 0 W0SY7 W0SY6 W0SY5 W0SY4 W0SY3 W0SY2 W0SY1 W0SY0 • Window Position (W0, Horizontal End Point) WPEX0 1800C4H 15 ~ 7 W0EX7 14 ~ 6 W0EX6 13 ~ 5 W0EX5 12 ~ 4 W0EX4 de 11 ~ 3 W0EX3 10 ~ 2 W0EX2 9 W0EX9 1 W0EX1 8 W0EX8 0 W0EX0 • Window Position (W0, Vertical End Point) WPEY0 1800C6H 15 ~ 7 W0EY7 14 ~ 6 W0EY6 13 ~ 5 W0EY5 nfi 12 ~ 4 W0EY4 11 ~ 3 W0EY3 10 ~ 2 W0EY2 9 ~ 1 W0EY1 8 W0EY8 0 W0EY0 • Window Position (W1, Horizontal Start Point) WPSX1 1800C8H 15 ~ 7 W1SX7 14 ~ 6 W1SX6 Co13 ~ 5 W1SX5 12 ~ 4 W1SX4 11 ~ 3 W1SX3 10 ~ 2 W1SX2 9 W1SX9 1 W1SX1 8 W1SX8 0 W1SX0 • Window Position (W1, Vertical Start Point) WPSY1 1800CAH GA 15 ~ 7 W1SY7 14 ~ 6 W1SY6 13 ~ 5 W1SY5 12 ~ 4 W1SY4 • Window Position (W1, Horizontal End Point) 11 ~ 3 W1SY3 10 ~ 2 W1SY2 9 ~ 1 W1SY1 8 W1SY8 0 W1SY0 15 14 13 12 11 10 9 8 SE WPEX1 1800CCH ~ 7 W1EX7 ~ 6 W1EX6 ~ 5 W1EX5 ~ 4 W1EX4 ~ 3 W1EX3 ~ 2 W1EX2 W1EX9 1 W1EX1 W1EX8 0 W1EX0 368 • Window Position (W1, Vertical End Point) 15 14 13 12 11 10 9 8 WPEY1 1800CEH ~ 7 W1EY7 ~ 6 W1EY6 ~ 5 W1EY5 W0SX0, W0EX9 to W0EX0, W1SX9 to W1SX0, W1EX9 to W1EX0) ~ 4 W1EY4 nti ~ 3 W1EY3 al ~ 2 W1EY2 Window position bit (for horizontal coordinates): Window start/end X bit (W0SX9 to Designates the horizontal start and end coordinates. Designated coordinate value is ~ 1 W1EY1 W1EY8 0 W1EY0 the coordinate value (H counter value) on the TV screen W0SX9~W0SX0 1800C0H Bit 9~0 For W0 start point coordinates W0EX9~W0EX0 1800C4H Bit 9~0 For W0 end point coordinates W1SX9~W1SX0 W1EX9~W1EX0 Graphics Mode Normal Hi-Res Exclusive WxxX9 WxxX8 WxxX7 WxxX6 WxxX5 WxxX4 WxxX3 WxxX2 WxxX1 WxxX0 H8 H9 1800C8H 1800CCH H7 H8 Invalid H8 H6 H7 H7 Bit 9~0 Bit 9~0 H5 H6 H6 de H4 H5 H5 For W1 start point coordinates For W1 end point coordinates H3 H4 H4 H2 H3 H3 H1 H2 H2 H0 H1 H1 Invalid H0 H0 Normal Exclusive Hi-Res Note: Invalid H9 H8 nfi H7 H6 0S, 0E, 1S, or 1E is entered in bit name for xx. H5 H4 Window position bit (for vertical coordinates): Window start/end Y bit (W0SY8 to H3 H2 H1 W1SY8~W1SY0 W1EY8~W1EY0 Co W0SY0, W0EY8 to W0EY0, W1SY8 to W1SY0, W1EY8 to W1EY0) Designates the vertical start and end coordinates. The designated coordinate value is the coordinate value (V counter value) on the TV screen. W0SY8~W0SY0 W0EY8~W0EY0 1800C2H 1800C6H 1800CAH 1800CEH Bit 8~0 Bit 8~0 Bit 8~0 Bit 8~0 For W0 start point coordinates For W0 end point coordinates For W1 start point coordinates For W1 end point coordinates GA SE ST-58-R2 369 TV Screen WxxY8 WxxY7 WxxY6 WxxY5 WxxY4 WxxY3 WxxY2 WxxY1 WxxY0 (Interlace) Mode Normal, Hi-Res V8 V7 V6 V5 V4 V3 V2 V1 V0 (Non-interlace, Single-Density Interlace) Normal, Hi-Res (Double-Density Interlace) Exclusive Monitor Note: V7 V8 V6 V7 V5 V6 V4 V5 0S, 0E, 1S or 1E is entered in bit name for xx. V3 V4 V2 V3 nti V1 V2 al V0 V1 Invalid V0 • Window Control (NBG0, NBG1) 15 14 13 12 11 10 9 8 WCTLA 1800D0H N1LOG 7 N0LOG • Window Control (NBG2, NBG3) 15 ~ 6 ~ 14 N1SWE 5 N0SWE 13 N1SWA 4 N0SWA 12 de N1W1E 3 N0W1E 11 N1W1A 2 N0W1A 10 N1W0E 1 N0W0E 9 N1W0A 0 N0W0A 8 WCTLB 1800D2H N3LOG 7 N2LOG ~ 6 • Window Control (RBG0, Sprite) ~ N3SWE 5 N2SWE nfi N3SWA 4 N2SWA N3W1E 3 N2W1E N3W1A 2 N2W1A N3W0E 1 N2W0E N3W0A 0 N2W0A WCTLC 1800D4H 15 SPLOG 7 R0LOG 15 14 6 ~ ~ 14 Co 13 SPSWE 5 R0SWE 13 12 SPSWA 4 R0SWA • Window Control (Rotation Window, Color Calculation Window) 12 11 SPW1E 3 R0W1E 11 10 SPW1A 2 R0W1A 10 9 SPW0E 1 R0W0E 9 8 SPW0A 0 R0W0A 8 WCTLD CCLOG ~ CCSWE CCSWA CCW1E CCW1A CCW0E CCW0A 1800D6H 7 6 5 4 3 2 1 0 RPLOG, CCLOG) GA RPLOG ~ ~ ~ RPW1E Window logic bit: Logic bit (N0LOG, N1LOG, N2LOG, N3LOG, R0LOG, SPLOG, Designates the method of overlapping windows used in each screen. RPW1A RPW0E RPW0A SE 370 N0LOG 1800D0H Bit 7 Transparent Process Window for NBG0 (or RBG1) N1LOG 1800D0H Bit 15 Transparent Process Window for NBG1 (or EXBG) N2LOG 1800D2H Bit 7 Transparent Process Window for NBG2 nti N3LOG 1800D2H Bit 15 Transparent Process Window for NBG3 R0LOG 1800D4H Bit 7 Transparent Process Window for RBG0 SPLOG 1800D4H Bit 15 Transparent Process Window for Sprite RPLOG 1800D6H Bit 7 For Rotation Parameter Window CCLOG xxLOG 0 1 Note: 1800D6H Bit 15 al For Color Calculation Window Overlaid Logic OR AND N0, N1, N2, N3, R0, SP, RP or CC is entered in bit name for xx. Window enable bit (for W0): W0 enable bit (N0W0E, N1W0E, N2W0E, N3W0E, R0W0E, SPW0E, RPW0E, CCW0E) Designates whether to use the Normal window W0 in each screen. N0W0E N1W0E N2W0E N3W0E 1800D0H 1800D0H 1800D2H 1800D2H Bit 1 Bit 9 Bit 1 Bit 9 de Transparent Process Window for NBG0 (or RBG1) Transparent Process Window for NBG1 (or EXBG) Transparent Process Window for NBG2 Transparent Process Window for NBG3 R0W0E SPW0E RPW0E CCW0E xxW0E 0 1800D4H 1800D4H 1800D6H 1800D6H nfi Bit 1 Bit 9 Bit 1 Bit 9 Transparent Process Window for RBG0 Transparent Process Window for Sprite For Rotation Parameter Window For Color Calculation Window Process Does not use W0 window 1 Note: Co Uses W0 window N0, N1, N2, N3, R0, SP, RP, or CC is entered in bit name for xx. Window enable bit (for W1): W1 enable bit (N0W1E, N1W1E, N2W1E, N3W1E, R0W1E, SPW1E, RPW1E, CCW1E) Designates whether to use the Normal window W1 in each screen. GA SE ST-58-R2 371 N0W1E 1800D0H Bit 3 Transparent Process Window for NBG0 (or RBG1) N1W1E 1800D0H Bit 11 Transparent Process Window for NBG1 (or EXBG) N2W1E 1800D2H Bit 3 Transparent Process Window for NBG2 nti N3W1E 1800D2H Bit 11 Transparent Process Window for NBG3 R0W1E 1800D4H Bit 3 Transparent Process Window for RBG0 SPW1E 1800D4H Bit 11 Transparent Process Window for Sprite RPW1E 1800D6H Bit 3 For Rotation Parameter Window CCW1E xxW1E 0 1 Note: 1800D6H Bit 11 For Color Calculation Window Process Does not use W1 window Uses W1 window N0, N1, N2, N3, R0, SP, RP, or CC is entered in bit name for xx. Window enable bit (for SW): SW enable bit (N0SWE, N1SWE, N2SWE, N3SWE, al R0SWE, SPSWE, CCSWE) Designates whether to use the sprite window SW in each screen. N0SWE N1SWE N2SWE N3SWE 1800D0H 1800D0H 1800D2H 1800D2H Bit 5 Bit 13 Bit 5 Bit 13 de Transparent Process Window for NBG0 (or RBG1) Transparent Process Window for NBG1 (or EXBG) Transparent Process Window for NBG2 Transparent Process Window for NBG3 R0SWE SPSWE CCSWE xxSWE 0 1 1800D4H 1800D4H 1800D6H Bit 5 Bit 13 Bit 13 nfi Transparent Process Window for RBG0 Transparent Process Window for Sprite For Color Calculation Window Process Does not use SW window Uses SW window Note: Co N0, N1, N2, N3, R0, SP, or CC is entered in bit name for xx. Window area bit (for W0): W0 area bit (N0W0A, N1W0A, N2W0A, N3W0A, R0W0A, SPW0A, RPW0A, CCW0A) Designates which area is the valid area of the Normal window W0 used in each screen. GA SE 372 N0W0A 1800D0H Bit 0 Transparent Process Window for NBG0 (or RBG1) N1W0A 1800D0H Bit 8 Transparent Process Window for NBG1 (or EXBG) N2W0A 1800D2H Bit 0 Transparent Process Window for NBG2 nti N3W0A 1800D2H Bit 8 Transparent Process Window for NBG3 R0W0A 1800D4H Bit 0 Transparent Process Window for RBG0 SPW0A 1800D4H Bit 8 Transparent Process Window for Sprite RPW0A 1800D6H Bit 0 For Rotation Parameter Window CCW0A xxW0A 0 1 Note: 1800D6H Bit 8 al For Color Calculation Window Process Enables the inside of W0 window Enables the outside of W0 window N0, N1, N2, N3, R0, SP, RP, or CC is entered in bit name for xx. Window area bit (for W1): W1 area bit (N0W1A, N1W1A, N2W1A, N3W1A, R0W1A, SPW1A, RPW1A, CCW1A) de Designates which area is the valid area of the Normal window W1 used in each screen. N0W1A N1W1A N2W1A 1800D0H 1800D0H 1800D2H Bit 2 Bit 10 Bit 2 Transparent Process Window for NBG0 (or RBG1) Transparent Process Window for NBG1 (or EXBG) Transparent Process Window for NBG2 N3W1A R0W1A SPW1A RPW1A CCW1A xxW1A 1800D2H 1800D4H 1800D4H 1800D6H 1800D6H nfi Bit 10 Bit 2 Bit 10 Bit 2 Bit 10 Transparent Process Window for NBG3 Transparent Process Window for RBG0 Transparent Process Window for Sprite For Rotation Parameter Window For Color Calculation Window Process 0 1 Note: Co Enables the inside of W1 window Enables the outside of W1 window N0, N1, N2, N3, R0, SP, RP, or CC is entered in bit name for xx. Window area bit (for SW): SW area bit (N0SWA, N1SWA, N2SWA, N3SWA, R0SWA, SPSWA, CCSWA) Designates which area is the valid area of the sprite window SW used in each screen. GA SE ST-58-R2 373 N0SWA 1800D0H Bit 4 Transparent Process Window for NBG0 (or RBG1) N1SWA 1800D0H Bit 12 Transparent Process Window for NBG1 (or EXBG) N2SWA 1800D2H Bit 4 Transparent Process Window for NBG2 nti N3SWA 1800D2H Bit 12 Transparent Process Window for NBG3 R0SWA 1800D4H Bit 4 Transparent Process Window for RBG0 SPSWA 1800D4H Bit 12 Transparent Process Window for Sprite CCSWA 1800D6H Bit 12 For Color Calculation Window xxSWA 0 1 Note: Process al Enables the inside of SW window Enables the outside of SW window N0, N1, N2, N3, R0, SP or CC is entered in bit name for xx. • Line Window Table Address (W0) LWTA0U 1800D8H 15 W0LWE 7 ~ 14 ~ 6 ~ • Line Window Table Address (W0) 13 ~ 5 ~ 12 ~ 4 ~ de 11 ~ 3 ~ 10 ~ 2 W0LWTA18 9 ~ 1 W0LWTA17 8 ~ 0 W0LWTA16 LWTA0L 1800DAH 15 W0LWTA15 7 14 W0LWTA14 6 W0LWTA7 W0LWTA6 W0LWTA5 W0LWTA4 W0LWTA3 W0LWTA2 W0LWTA1 • Line Window Table Address (W1) 13 W0LWTA13 5 nfi 12 W0LWTA12 4 11 W0LWTA11 3 10 W0LWTA10 2 9 W0LWTA9 1 8 W0LWTA8 0 ~ LWTA1U 1800DCH 15 W1LWE 7 ~ 14 ~ 6 ~ • Line Window Table Address (W1) Co 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 ~ 2 W1LWTA18 9 ~ 1 W1LWTA17 8 ~ 0 W1LWTA16 15 14 13 12 11 10 9 8 GA LWTA1L W1LWTA15 W1LWTA14 W1LWTA13 W1LWTA12 W1LWTA11 W1LWTA10 W1LWTA9 W1LWTA8 1800DEH 7 6 5 4 3 2 1 0 W1LWTA7 W1LWTA6 W1LWTA5 W1LWTA4 W1LWTA3 W1LWTA2 W1LWTA1 ~ Line window enable bit (W0LWE, W1LWE) Designates whether to make the Normal window a line window. W0LWE 1800D8H Bit 15 For W0 W1LWE 1800DCH Bit 15 For W1 SE 374 WxLWE Process 0 Does not process Normal Window to Line Window 1 Processes Normal Window to Line Window Note: 0 or 1 is entered in bit name for x. Line window table address bit (W0LWTA18 to W0LWTA1, W1LWTA18 to W1LWTA1) Designates the lead address of the line window table in VRAM. W0LWTA18~W0LWTA16 W0LWTA15~W0LWTA1 W1LWTA18~W1LWTA16 1800D8H 1800DAH 1800DCH Bit 2~0 Bit 15~1 Bit 2~0 ntial For W0 For W0 For W1 W1LWTA15~W1LWTA1 1800DEH Bit 15~1 For W1 • Sprite Control SPCTL 1800E0H 15 ~ 7 ~ 14 ~ 6 ~ 13 12 de SPCCCS1 SPCCCS0 5 4 SPCLMD SPWINEN SPTYPE3 SPTYPE2 SPTYPE1 SPTYPE0 Sprite color calculation condition bit (SPCCCS1, SPCCCS0), bits 13, 12 Designates the color calculation condition of sprites. 11 ~ 3 10 SPCCN2 SPCCN1 SPCCN0 2 9 1 8 0 SPCCCS1 0 0 1 1 SPCCCS0 0 1 0 1 nfi Condition (Priority number) ≤ (Color calculation condition number) only (Priority number) = (Color calculation condition number) only (Priority number) ≥ (Color calculation condition number) only Only when Color Data MSB is 1 Co Sprite color calculation number bit (SPCCN2 to SPCCN0), bits 10 to 8 Designates the color calculation condition number of sprites. This value is ignored when the color calculation condition is set to perform color calculations only if the most significant bit of color data is 1. Sprite color mode bit (SPCLMD), bit 5 Designates the sprite color mode. GA SE ST-58-R2 375 SPCLMD Sprite Color Format Data 0 Sprite data is all in palette format 1 Sprite data is in palette format and RGB format Sprite window enable bit: SW enable bit (SPWINEN), bit 4 Designates whether to use the sprite window SW. SPWINEN 0 1 Process nti Does not use sprite window Uses sprite window al Sprite type bit (STYPE3 to STYPE0), bits 3 to 0 Designates the sprite type. STYPE3 STYPE2 STYPE1 STYPE0 Sprite Data Type 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 deType 0 Type 1 Type 2 Type 3 Type 4 Type 5 Type 6 Type 7 1 1 1 1 1 1 1 0 0 0 0 1 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 nfi Type 8 Type 9 Type A Type B Type C Type D Type E 1 SDCTL 1800E2H 1 • Shadow Control 15 ~ 7 14 ~ 6 1 Co 13 ~ 5 1 12 ~ 4 11 ~ 3 Type F 10 ~ 2 9 ~ 1 8 TPSDSL 0 ~ ~ BKSDEN R0SDEN N3SDEN N2SDEN N1SDEN N0SDEN GA Shadow enable bit (N0SDEN, N1SDEN, N2SDEN, N3SDEN, R0SDEN, BKSDEN) This bit designates in sprites of the Normal shadow and transparent shadow whether to use the shadow function for the scroll screen and back screen. SE 376 N0SDEN 1800E2H Bit 0 For NBG0 (or RBG1) N1SDEN 1800E2H Bit 1 For NBG1 (or EXBG) N2SDEN 1800E2H Bit 2 For NBG2 N3SDEN 1800E2H Bit 3 For NBG3 R0SDEN BKSDEN xxSDEN 0 1 Note: 1800E2H 1800E2H Bit 4 Bit 5 Process al For RBG0 For Back Does not use shadow function (shadow not added) Uses shadow function (shadow added) N0, N1, N2, N3, R0, or BK is entered in bit name for xx. nti Transparent shadow select bit (TPSDSL), bit 8 Designates whether to activate the sprite of the transparent shadow. TPSDSL 0 1 • Color RAM Address Offset (NBG0~NBG3) 15 14 13 12 de Process Disables transparent shadow sprite Enables transparent shadow sprite 11 10 9 8 CRAOFA 1800E4H ~ 7 ~ nfi N3CAOS2 N3CAOS1 N3CAOS0 6 5 N1CAOS2 N1CAOS1 N1CAOS0 • Color RAM Address Offset (RBG0, Sprite) 4 ~ 3 ~ N2CAOS2 N2CAOS1 N2CAOS0 2 1 0 N0CAOS2 N0CAOS1 N0CAOS0 CRAOFB 1800E6H 15 ~ 7 ~ Color RAM address offset bit (N0CAOS2 to N0CAOS0, N1CAOS2 to N1CAOS0, N2CAOS2 to N2CAOS0, N3CAOS2 to N3CAOS0, R0CAOS2 to R0CAOS0, SPCAOS2 to SPCAOS0) Co 14 ~ 6 13 ~ 5 12 ~ 4 SPCAOS2 SPCAOS1 SPCAOS0 11 ~ 3 ~ 10 ~ 2 9 ~ 1 8 ~ 0 R0CAOS2 R0CAOS1 R0CAOS0 Designates color RAM address offset values with respect to the sprite and each scroll screen. GA SE ST-58-R2 377 N0CAOS2~N0CAOS0 1800E4H Bit 2~0 For NBG0 (or RBG1) N1CAOS2~N1CAOS0 1800E4H Bit 6~4 For NBG1 (or EXBG) N2CAOS2~N2CAOS0 1800E4H Bit 10~8 For NBG2 N3CAOS2~N3CAOS0 1800E4H Bit 14~12 For NBG3 R0CAOS2~R0CAOS0 SPCAOS2~SPCAOS0 • Line Color Screen Enable LNCLEN 15 ~ 1800E6H 1800E6H 14 ~ 13 ~ Bit 2~0 Bit 6~4 12 ~ 11 ~ nti 10 ~ For RBG0 For Sprite al 9 ~ 8 ~ 1800E8H 7 6 5 4 3 2 1 0 ~ ~ SPLCEN R0LCEN N3LCEN N2LCEN N1LCEN N0LCEN Line color enable bit (N0LCEN, N1LCEN, N2LCEN, N3LCEN, R0LCEN, SPLCEN) Designates whether to insert the line color screen when each screen is a top image. N0LCEN N1LCEN N2LCEN N3LCEN 1800E8H 1800E8H 1800E8H 1800E8H Bit 0 Bit 1 Bit 2 Bit 3 de For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 R0LCEN SPLCEN xxLCEN 0 1 1800E8H 1800E8H nfi Bit 4 Bit 5 Process For RBG0 For Sprite Does not insert the line color screen when corresponding screen is top image Inserts the line color screen when corresponding Note: N0, N1, N2, N3, R0, or SP is entered in the bit name for xx. • Special Priority Mode SFPRMD 15 ~ 14 ~ 13 ~ Co 12 ~ 11 ~ screen is top image 10 ~ 9 8 R0SPRM1 R0SPRM0 1800EAH 7 6 5 4 3 2 1 0 N3SPRM1 N3SPRM0 N2SPRM1 N2SPRM0 N1SPRM1 N1SPRM0 N0SPRM1 N0SPRM0 GA Special priority mode bit (N0SPRM1, N0SPRM0, N1SPRM1, N1SPRM0, N2SPRM1, N2SPRM0, N3SPRM1, N3SPRM0, R0SPRM1, R0SPRM0) Designates the special priority function mode of each screen scroll. SE 378 N0SPRM1, N0SPRM0 1800EAH Bit 1,0 For NBG0 (or RBG1) N1SPRM1, N1SPRM0 1800EAH Bit 3,2 For NBG1 (or EXBG) N2SPRM1, N2SPRM0 1800EAH Bit 5,4 For NBG2 N3SPRM1, N3SPRM0 1800EAH Bit 7,6 For NBG3 R0SPRM1, R0SPRM0 xxSPRM1 0 0 1 1 xxSPRM0 0 1 0 1 1800EAH Mode Mode 0 Mode 1 Mode 2 - Bit 9,8 Process ntial For RBG0 Select the priority number LSB per each screen Select the priority number LSB per each character Select the priority number LSB per each dot Selection not allowed Note: N0, N1, N2, N3, or R0 is entered in bit name for xx. • Color Calculation Control CCCTL 1800ECH 15 BOKEN 7 ~ 14 BOKN2 6 SPCCEN Gradation enable bit (BOKEN), bit 15 13 BOKN1 5 LCCCEN Designates whether to use the gradation function. de 12 BOKN0 4 R0CCEN 11 ~ 3 N3CCEN 10 EXCCEN 2 N2CCEN 9 CCRTMD 1 N1CCEN 8 CCMD 0 N0CCEN BOKEN 0 1 nfi Process Do not use gradation calculation function Use gradation calculation function Gradation screen number bit: Gradation number bit (BOKN2 to BOKN0), bits 14 to 12 Designates the screen using the gradation (shading) calculation function BOKN2 0 0 0 0 1 BOKN1 0 0 1 1 0 Co BOKN0 0 1 0 1 0 Screen Using Gradation Calculation Function Sprite RBG0 NBG0 or RBG1 Invalid NBG1 or EXBG 1 0 1 NBG2 1 1 0 NBG3 1 1 1 Invalid GA SE ST-58-R2 379 Extended color calculation enable bit (EXCCEN), bit 10 Designates whether to use the extended color calculation function nti EXCCEN Process 0 Do not use extended color calculation 1 Use extended color calculation al Color calculation ratio mode bit (CCRTMD), bit 9 Designates the color calculation ratio mode. CCRTMD Mode Process 0 0 For color calculation ratio, select per top screen side 1 1 For color calculation ratio, select per second screen side Color calculation mode bit (CCMD), bit 8 Designates the color calculation mode. CCMD 0 1 Mode 0 1 Process de Add according to the color calculation register value Add as is Color calculation enable bit (N0CCEN, N1CCEN, N2CCEN, N3CCEN, R0CCEN, LCCCEN, SPCCEN) N2CCEN nfi Designates whether to perform color calculation (color calculation enable) N0CCEN N1CCEN N3CCEN 1800ECH 1800ECH 1800ECH 1800ECH Bit 0 Bit 1 Bit 2 Bit 3 For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 R0CCEN LCCCEN SPCCEN xxCCEN 0 1 Note : 1800ECH 1800ECH 1800ECH Co Bit 4 Bit 5 Bit 6 For RBG0 For LNCL For Sprite Process Does not color-calculate Color-calculates N0, N1, N2, N3, R0, LC, or SP is entered in bit name for xx. GA SE 380 • Special Color Calculation Mode 15 14 13 12 11 10 9 8 SFCCMD 1800EEH ~ 7 ~ 6 ~ 5 ~ 4 ~ 3 ~ 2 nti R0SCCM1 R0SCCM0 1 0 N3SCCM1 N3SCCM0 N2SCCM1 N2SCCM0 N1SCCM1 N1SCCM0 N0SCCM1 N0SCCM0 Special color calculation mode bit (N0SCCM1, N0SCCM0, N1SCCM1, N1SCCM0, N2SCCM1, N2SCCM0, N3SCCM1, N3SCCM0, R0SCCM1, R0SCCM0) al Designates the special color calculation function mode of each scroll screen. N0SCCM1, N0SCCM0 1800EEH Bit 1,0 For NBG0 (or RBG1) N1SCCM1, N1SCCM0 1800EEH Bit 3,2 For NBG1 (or EXBG) N2SCCM1, N2SCCM0 1800EEH Bit 5,4 For NBG2 N3SCCM1, N3SCCM0 R0SCCM1, R0SCCM0 xxSCCM1 0 0 1 xxSCCM0 0 1 0 1800EEH 1800EEH Mode 0 1 2 deBit 7,6 Bit 9,8 Process For NBG3 For RBG0 Select color calculation enable per screen Select color calculation enable per character Select color calculation enable per dot 1 Note: • Priority Number (Sprite 0, 1) PRISA N0, N1, N2, N3, or R0 is entered in bit name for xx. 15 ~ 1 14 ~ 3 nfi13 ~ Select color calculation enable with color data MSB 12 ~ 11 ~ 10 S1PRIN2 9 S1PRIN1 8 S1PRIN0 1800F0H 7 ~ Co 6 ~ • Priority Number (Sprite 2, 3) PRISB 15 ~ 14 ~ 5 ~ 13 ~ 4 ~ 12 ~ 3 ~ 11 ~ 2 S0PRIN2 10 S3PRIN2 1 S0PRIN1 9 S3PRIN1 0 S0PRIN0 8 S3PRIN0 1800F2H 7 6 5 4 3 2 1 0 ~ ~ ~ ~ ~ S2PRIN2 S2PRIN1 S2PRIN0 GA • Priority Number (Sprite 4, 5) PRISC 1800F4H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 S5PRIN2 2 S4PRIN2 9 S5PRIN1 1 S4PRIN1 8 S5PRIN0 0 S4PRIN0 SE ST-58-R2 381 • Priority Number (Sprite 6, 7) 15 14 13 12 11 10 9 8 PRISD 1800F6H ~ 7 ~ ~ 6 ~ ~ 5 ~ Sprite priority number bit (for sprite) (S0PRIN2 to S0PRIN0, S1PRIN2 to S1PRIN0, S2PRIN2 to S2PRIN0, S3PRIN2 to S3PRIN0, S4PRIN2 to S4PRIN0, S5PRIN2 to S5PRIN0, S6PRIN2 to S6PRIN0, S7PRIN2 to S7PRIN0) Designates the sprite priority number. ~ 4 ~ ~ 3 ~ nti S7PRIN2 2 S6PRIN2 al S7PRIN1 1 S6PRIN1 S7PRIN0 0 S6PRIN0 S0PRIN2~S0PRIN0 1800F0H Bit 2~0 For Sprite Register 0 S1PRIN2~S1PRIN0 1800F0H Bit 10~8 For Sprite Register 1 S2PRIN2~S2PRIN0 S3PRIN2~S3PRIN0 S4PRIN2~S4PRIN0 S5PRIN2~S5PRIN0 S6PRIN2~S6PRIN0 S7PRIN2~S7PRIN0 1800F2H 1800F2H 1800F4H 1800F4H 1800F6H 1800F6H • Priority Number (NBG0, NBG1) Bit 2~0 Bit 10~8 Bit 2~0 Bit 10~8 Bit 2~0 Bit 10~8 de For Sprite Register 2 For Sprite Register 3 For Sprite Register 4 For Sprite Register 5 For Sprite Register 6 For Sprite Register 7 PRINA 1800F8H 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 ~ nfi 12 ~ 4 ~ 11 ~ 3 ~ 10 N1PRIN2 2 N0PRIN2 9 N1PRIN1 1 N0PRIN1 8 N1PRIN0 0 N0PRIN0 • Priority Number (NBG2, NBG3) PRINB 1800FAH 15 ~ 7 ~ 14 ~ 6 ~ Co 13 ~ 5 ~ 12 ~ 4 ~ 11 ~ 3 ~ 10 N3PRIN2 2 N2PRIN2 9 N3PRIN1 1 N2PRIN1 8 N3PRIN0 0 N2PRIN0 • Priority Number (RBG0) 15 14 13 12 11 10 9 8 PRIR 1800FCH GA ~ 7 ~ ~ 6 ~ ~ 5 ~ ~ 4 ~ Priority number bit (for scroll screen) (N0PRIN2 to N0PRIN0, N1PRIN2 to N1PRIN0, N2PRIN2 to N2PRIN0, N3PRIN2 to N3PRIN0, R0PRIN2 to R0PRIN0) Designates the priority number of each screen scroll. ~ 3 ~ ~ 2 R0PRIN2 ~ 1 R0PRIN1 ~ 0 R0PRIN0 SE 382 N0PRIN2~N0PRIN0 1800F8H Bit 2~0 For NBG0 (or RBG1) N1PRIN2~N1PRIN0 1800F8H Bit 10~8 For NBG1 (or EXBG) N2PRIN2~N2PRIN0 1800FAH Bit 2~0 For NBG2 N3PRIN2~N3PRIN0 R0PRIN2~R0PRIN0 • Reserve 1800FEH 15 ~ 7 1800FAH 1800FCH 14 ~ 6 13 ~ 5 Bit 10~8 Bit 2~0 12 ~ 4 nti 11 ~ 3 al 10 ~ 2 For NBG3 For RBG0 9 ~ 1 8 ~ 0 ~ ~ ~ ~ ~ ~ ~ ~ • Color Calculation Ratio (Sprite 0, 1) CCRSA 180100H 15 7 ~ ~ 14 6 ~ ~ 13 5 ~ ~ • Color Calculation Ratio (Sprite 2, 3) de 12 8 S1CCRT4 S1CCRT3 S1CCRT2 S1CCRT1 S1CCRT0 4 11 3 10 2 9 1 0 S0CCRT4 S0CCRT3 S0CCRT2 S0CCRT1 S0CCRT0 CCRSB 180102H 15 7 ~ ~ 14 6 ~ ~ nfi 13 5 ~ ~ • Color Calculation Ratio (Sprite 4, 5) 12 8 S3CCRT4 S3CCRT3 S3CCRT2 S3CCRT1 S3CCRT0 4 11 3 10 2 9 1 0 S2CCRT4 S2CCRT3 S2CCRT2 S2CCRT1 S2CCRT0 CCRSC 180104H 15 ~ 7 ~ Co 14 ~ 6 ~ 13 ~ 5 ~ • Color Calculation Ratio (Sprite 6, 7) 12 8 S5CCRT4 S5CCRT3 S5CCRT2 S5CCRT1 S5CCRT0 4 11 3 10 2 9 1 0 S4CCRT4 S4CCRT3 S4CCRT2 S4CCRT1 S4CCRT0 15 14 13 12 11 10 9 8 GA CCRSD ~ ~ ~ S7CCRT4 S7CCRT3 S7CCRT2 S7CCRT1 S7CCRT0 180106H 7 6 5 4 3 2 1 0 ~ ~ ~ S6CCRT4 S6CCRT3 S6CCRT2 S6CCRT1 S6CCRT0 Sprite color calculation ratio bit (S0CCRT4 to S0CCRT0, S1CCRT4 to S1CCRT0, S2CCRT4 to S2CCRT0, S3CCRT4 to S3CCRT0, S4CCRT4 to S4CCRT0, S5CCRT4 to S5CCRT0, S6CCRT4 to S6CCRT0, S7CCRT4 to S7CCRT0) Designates the sprite color calculation ratio. The color calculation ratio is for a value 1/32 of RGB various color data. SE ST-58-R2 383 S0CCRT4~S0CCRT0 180100H Bit 4~0 For Sprite Register 0 S1CCRT4~S1CCRT0 180100H Bit 12~8 For Sprite Register 1 S2CCRT4~S2CCRT0 180102H Bit 4~0 For Sprite Register 2 nti S3CCRT4~S3CCRT0 180102H Bit 12~8 For Sprite Register 3 S4CCRT4~S4CCRT0 180104H Bit 4~0 For Sprite Register 4 S5CCRT4~S5CCRT0 180104H Bit 12~8 For Sprite Register 5 S6CCRT4~S6CCRT0 180106H Bit 4~0 For Sprite Register 6 S7CCRT4~S7CCRT0 7 ~ 180106H • Color Calculation Ratio (NBG0, NBG1) CCRNA 180108H 15 ~ 14 ~ 6 ~ 13 ~ 5 ~ Bit 12~8 12 4 11 3 10 2 al For Sprite Register 7 9 N1CCRT4 N1CCRT3 N1CCRT2 N1CCRT1 N1CCRT0 1 8 0 N0CCRT4 N0CCRT3 N0CCRT2 N0CCRT1 N0CCRT0 • Color Calculation Ratio (NBG2, NBG3) CCRNB 18010AH 15 ~ 7 14 ~ 6 13 ~ 5 12 11 de 10 9 8 N3CCRT4 N3CCRT3 N3CCRT2 N3CCRT1 N3CCRT0 4 3 2 1 0 • Color Calculation Ratio (RBG0) CCRR 18010CH ~ 15 ~ 7 ~ 14 ~ 6 ~ 13 ~ 5 nfi N2CCRT4 N2CCRT3 N2CCRT2 N2CCRT1 N2CCRT0 12 ~ 4 11 ~ 3 10 ~ 2 9 ~ 1 8 ~ 0 CCRLB 18010EH ~ 15 ~ 7 ~ 14 ~ 6 Co ~ 13 ~ 5 R0CCRT4 R0CCRT3 R0CCRT2 R0CCRT1 R0CCRT0 • Color Calculation Ratio (Line Color Screen, Back Screen) 12 11 10 9 8 BKCCRT4 BKCCRT3 BKCCRT2 BKCCRT1 BKCCRT0 4 3 2 1 0 ~ ~ ~ LCCCRT4 LCCCRT3 LCCCRT2 LCCCRT1 LCCCRT0 GA Color calculation ratio bit (for scroll screens): (N0CCRT4 to N0CCRT0, N1CCRT4 to N1CCRT0, N2CCRT4 to N2CCRT0, N3CCRT4 to N3CCRT0, R0CCRT4 to R0CCRT0, LCCCRT4 to LCCCRT0, BKCCRT4 to BKCCRT0) Designates the color calculation ratio of each scroll screen. The color calculation ratio corresponds to a value 1/32 times R,G,B color data. SE 384 N0CCRT4~NOCCRT0 180108H Bit 4~0 For NBG0 (or RBG1) N1CCRT4~N1CCRT0 180108H Bit 12~8 For NBG1 (or EXBG) N2CCRT4~N2CCRT0 18010AH Bit 4~0 For NBG2 N3CCRT4~N3CCRT0 18010AH Bit 12~8 For NBG3 R0CCRT4~R0CCRT0 LCCCRT4~LCCCRT0 BKCCRT4~BKCCRT0 xxCCRT4 0 0 xxCCRT3 0 0 18010CH 18010EH 18010EH xxCCRT2 0 0 xxCCRT1 0 0 Bit 4~0 Bit 4~0 Bit 12~8 xxCCRT0 0 1 ntial For RBG0 For LNCL For Back Color Calculation Ratio Top Image : Second Image 31:1 30:2 0 0 0 1 0 29:3 0 0 0 1 1 28:4 0 0 1 0 0 27:5 0 0 1 0 1 26:6 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 1 1 1 0 0 1 1 0 de 0 1 0 1 0 1 0 25:7 24:8 23:9 22:10 21:11 20:12 19:13 0 0 0 1 1 1 1 1 1 1 0 0 0 0 1 1 1 0 0 0 0 nfi0 1 1 0 0 1 1 1 0 1 0 1 0 1 18:14 17:15 16:16 15:17 14:18 13:19 12:20 1 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 Co 1 1 1 1 0 0 0 0 1 0 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 11:21 10:22 9:23 8:24 7:25 6:26 5:27 4:28 3:29 1 1 1 0 1 2:30 1 1 1 1 0 1:31 GA1 Note: 1 1 1 1 N0, N1, N2, N3, R0, LC, or BK is entered in bit name for xx. 0:32 SE ST-58-R2 385 • Color Offset Enable 15 14 13 12 11 10 9 8 nti CLOFEN ~ ~ ~ ~ ~ ~ ~ ~ 180110H 7 6 5 4 3 2 1 0 ~ SPCOEN BKCOEN R0COEN N3COEN N2COEN N1COEN N0COEN Color offset enable bit (N0COEN, N1COEN, N2COEN, N3COEN, R0COEN, BKCOEN, SPCOEN) Designates whether to use the color offset function. N0COEN N1COEN N2COEN N3COEN 180110H 180110H 180110H 180110H Bit 0 Bit 1 Bit 2 Bit 3 al For NBG0 (or RBG1) For NBG1 (or EXBG) For NBG2 For NBG3 R0COEN BKCOEN SPCOEN xxCOEN 0 1 180110H 180110H 180110H Bit 4 Bit 5 Bit 6 Process de For RBG0 For Back For Sprite Do not use color offset function Use color offset function Note: N0, N1, N2, N3, R0, BK, or SP is entered in bit name for xx. • Color Offset Select CLOFSL 15 ~ 14 ~ 13 ~ nfi 12 ~ 11 ~ 10 ~ 9 ~ 8 ~ 180112H BKCOSL, SPCOSL) 7 ~ 6 SPCOSL Co 5 BKCOSL 4 R0COSL N3COSL Color offset select bit (N0COSL, N1COSL, N2COSL, N3COSL, R0COSL, 3 2 N2COSL Designates the color offset register to use when using the color offset function. 1 N1COSL 0 N0COSL GA SE 386 N0COSL 180112H Bit 0 For NBG0 (or RBG1) N1COSL 180112H Bit 1 For NBG1 (or EXBG) N2COSL 180112H Bit 2 For NBG2 N3COSL R0COSL BKCOSL SPCOSL xxCOSL 0 1 180112H 180112H 180112H 180112H Bit 3 Bit 4 Bit 5 Bit 6 Process ntial Use color offset A value Use color offset B value For NBG3 For RBG0 For Back For Sprite Note: N0, N1, N2, N3, R0, BK, or SP is entered in bit name for xx. • Color Offset A (RED) COAR 180114H 15 ~ 7 COARD7 • Color Offset A (GREEN) 14 ~ 6 COARD6 13 ~ 5 COARD5 de 12 ~ 4 COARD4 11 ~ 3 COARD3 10 ~ 2 COARD2 9 ~ 1 COARD1 8 COARD8 0 COARD0 COAG 180116H 15 ~ 7 COAGR7 14 ~ 6 COAGR6 nfi 13 ~ 5 COAGR5 12 ~ 4 COAGR4 11 ~ 3 COAGR3 10 ~ 2 COAGR2 9 ~ 1 COAGR1 8 COAGR8 0 COAGR0 • Color Offset A (BLUE) COAB 180118H 15 ~ 7 COABL7 • Color Offset B (RED) Co 14 ~ 6 COABL6 13 ~ 5 COABL5 12 ~ 4 COABL4 11 ~ 3 COABL3 10 ~ 2 COABL2 9 ~ 1 COABL1 8 COABL8 0 COABL0 15 14 13 12 11 10 9 8 GA COBR 18011AH ~ 7 COBRD7 • Color Offset B (GREEN) 15 ~ 6 COBRD6 14 ~ 5 COBRD5 13 ~ 4 COBRD4 12 ~ 3 COBRD3 11 ~ 2 COBRD2 10 ~ 1 COBRD1 9 COBRD8 0 COBRD0 8 COBG ~ ~ ~ ~ ~ ~ ~ COBGR8 SE 18011CH 7 6 5 4 3 2 1 0 COBGR7 COBGR6 COBGR5 COBGR4 COBGR3 COBGR2 COBGR1 COBGR0 ST-58-R2 387 • Color Offset B (BLUE) 15 14 13 12 11 10 9 8 COBB 18011EH to COBBL0) ~ 7 COBBL7 ~ 6 COBBL6 ~ 5 COBBL5 ~ 4 COBBL4 ~ 3 COBBL3 ~ 2 nti COBBL2 al 1 COBBL1 Color offset value bit: Color offset data bit (COARD8 to COARD0, COAGR8 to COAGR0, COABL8 to COABL0, COBRD8 to COBRD0, COBGR8 to COBGR0, COBBL8 ~ Sets the RGB individual value of color offset A and color offset B. Negative COBBL8 0 COBBL0 numbers should be set by two complements. COARD8~COARD0 180114H Bit 8~0 For color offset A RED data COAGR8~COAGR0 COABL8~COABL0 COBRD8~COBRD0 COBGR8~COBGR0 COBBL8~COBBL0 180116H 180118H 18011AH 18011CH 18011EH Bit 8~0 Bit 8~0 Bit 8~0 Bit 8~0 Bit 8~0 de For color offset A GREEN data For color offset A BLUE data For color offset B RED data For color offset B GREEN data For color offset B BLUE data nfi Co GA SE 388 16.4 Table List The following tables are shown in the table list: (1) (2) (3) Character Pattern Tables Pattern Name Tables Bitmap Pattern Tables ntial (4) Line Scroll Tables (5) (6) (7) Vertical Cell Scroll Tables Rotation Parameter Tables Coefficient Tables de (8) (9) (10) Line Color Screen Tables Back Screen Tables Normal Line Window Tables nfi Co GA SE ST-58-R2 389 • Character Pattern Table Data Specifications Bit Count for 1 Dot Cell Data Boundary 4 bits/dot 8 bits/dot 16 bits/dot 32 bits/dot • Character Pattern Table (1) 4 bi ts/ dot (32 byt es/ cel l) 32 bytes/cell 64 bytes/cell 128 bytes/cell 256 bytes/cell nti 20H byte 20H byte 20H byte 20H byte al Cha ra ct er Pat ter n Ta bl e (V RA M) bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Dot 0- 0 Dat a Dot 0- 1 Da ta Dot 0- 2 Da ta Dot 0- 3 Da ta +00H +02H +1E H Do t 0-4 Dat a Do t 7-4 Dat a Dot 0-5 Dat a Dot 7- 5 Da ta Dot 0- 6 Da ta Do t 7-6 Dat a de Dot 0- 7 Da ta Dot 7- 7 Da ta Dot 0 Dot 0 1 +00 +04 1 2 +01 +05 3 4 +02 +06 5 6 +03 +07 nfi 7 2 3 4 5 6 7 + 0C + 1C +08 +10 +14 +18 +09 + 0D +11 +15 +19 + 1D Co +0A +0E +12 +16 +1A +1E +0B +0F +13 +17 +1B +1F Cel l Not e 1: The up pe r le ft not at ion in the cel l is dot 0- 0; to the rig ht ar e dot 0- 1, do t 0-2 , dot 0- 3, ... GA Not e 2: Num be rs in the cel ls ar e VRAM addr esses (Hexa de cim al ) of do t (2 do ts) da ta, wit h VRA M ad dr ess of dot 0- 0, 0- 1 dat a as the ref ere nce . SE 390 • Character Pattern Table (Continued) (2) 8 bi ts/ dot (64 byt es/ cel l) +00H +02H Bit 15 14 13 12 11 10 Dot 0- 0 Dat a Cha ra ct er Pat ter n Ta bl e (V RA M) Dot 0- 2 Da ta 9 8 7 6 5 4 3 2 Dot 0- 1 Dat a Do t 0-3 Dat a 1 nti 0 al +3E H Dot 7- 6 Da ta Dot 7- 7 Dat a Dot 0 Dot 0 1 2 1 2 3 4 5 +00 +01 +02 +03 +04 +05 +06 +07 +08 +09 +0A +0B +0C +0D +0E +0F +10 +11 +12 +13 +14 +15 +16 +17 6 de 7 3 4 5 6 7 nfi +18 +19 +1A +1B +1C +1D +1E +1F +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +2A +2B +2C +2D +2E +2F +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +3A +3B + 3C + 3D +3E +3F Cel l Co Not e 1: The uppe r lef t no tat ion in the ce l is dot 0- 0; to the rig ht ar e dot 0- 1, do t 0-2 , dot 0- 3, ... Not e 2: Num ber s in the cel ls ar e VRAM ad dr esse s (Hexad eci mal ) of do t da ta, with VRAM ad dr ess of dot 0- 0 dat a as the ref er en ce. GA SE ST-58-R2 391 • Character Pattern Table (Continued) (3) 16 bits/ do t (1 28 byt es/ ce l ) +00H +02H Bit 15 14 13 12 11 Cha ra ct er Pat ter n Ta bl e (V RA M) 10 9 8 7 Dot 0- 0 Dat a Dot 0- 1 Dat a 6 5 4 3 2 1 0 ntial +7 EH Dot 7- 7 Dat a Dot 0 Dot 0 1 2 3 +00 +02 +04 +06 +08 +0A +0C +0E 4 5 6 7 de 1 2 3 4 +10 +12 +14 +16 +18 +1A + 1C +1E +20 +22 +24 +26 +28 +2A + 2C +2E +30 +32 +34 +36 +38 +3A + 3C +3E +40 +42 +44 +46 +48 +4A + 4C +4E nfi Cel l Co 5 +50 +52 +54 +56 +58 +5A + 5C +5E 6 +60 +62 +64 +66 +68 +6A + 6C +6E 7 +70 +72 +74 +76 +78 +7A +7C +7E Not e 1: The upp er lef t no tat io n in the ce ll is dot 0- 0; to the righ t ar e do t 0-1 , dot 0- 2, dot 0- 3, ... Not e 2: Numb er s in the cel ls are VRAM add re sses (Hexa de cim al) of dot dat a, with VRAM ad dr ess of dot 0- 0 da ta as the re fer en ce. GA • Vertical Cell Scroll Table Data Bit Configuration Vertical Screen Scroll Value Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0H 11 bit integer part SE Bit 15 +2H 14 13 12 11 10 9 8 bit fractional part Note: Shaded area is ignored 8 7 6 5 4 3 2 1 0 392 • Character Pattern Table (Continued) (4) 32 bits/ do t (2 56 byt es/ ce l ) BIT 15 +00H +02H +0 4H 14 13 12 Cha ra ct er Pat ter n Ta bl e (V RA M) 11 10 9 8 7 6 5 4 Dot 0- 0 Da ta (M ost si gn if ica nt wor d) Dot 0- 0 Da ta (L ea st si gn ificant wor d) Dot 0- 1 Da ta (M ost si gn if ica nt wor d) 3 2 1 nti 0 al +FCH Dot 7- 7 Da ta (M ost si gn if ica nt wor d) +F EH Dot 7- 7 Da ta (L ea st si gn ificant wor d) Do t 0 Do t 0 1 2 3 4 +00 +04 +08 +0C +10 +14 +18 +1C 5 6 de 7 1 2 3 4 nfi +20 +24 +28 + 2C +30 +34 +38 +3C +40 +44 +48 + 4C +50 +54 +58 +5C +60 +64 +68 + 6C +70 +74 +78 +7C +80 +84 +88 + 8C +90 +94 +98 +9C 5 +A0 +A4 +A8 +AC +B0 +B4 +B8 +BC Cel l 7 Co 6 +C0 + C4 + C8 +CC + D0 +D4 +D8 +D C +E0 +E4 +E8 + EC +F 0 +F 4 +F 8 +F C Not e 1: The uppe r lef t no tat io n in the ce l is dot 0- 0; to the rig ht ar e dot 0- 1, do t 0-2 , dot 0- 3, ... Not e 2: Numb er s in the cel ls ar e VRAM addr esses (Hexadeci mal ) of do t da ta (M SW), with VRAM ad dr ess of dot 0- 0 da ta (MSW) as the ref ere nce . GA SE ST-58-R2 393 • Pattern Name Table Data Specifications Pattern Name Data Size Character Size Contents of 1 Page Boundary During VRAM 1 Word 2 Words • Pattern Name Table 1 H Cell X 1 V Cell 2 H Cells X 2 V Cells 1 H Cell X 1 V Cell 2 H Cells X 2 V Cells 8192 Bytes 2048 Bytes 16,384 Bytes 4096 Bytes Storage 2000H 800H nti 4000H 1000H al (1) Pat tern Nam e Dat a Size : 1 wor d Char act er Pat ter n Size : 1 H cel l X 1 V cel l Pattern Nam e Ta bl e (V RA M) Bit 15 +00 00H +00 02H +1F FEH 14 13 12 11 10 9 8 7 6 5 4 Cha ract er Pat ter n 0- 0 Pat ter n Name Dat a Char act er Patter n 0- 1 Pat ter n Na me Dat a Char act er Pattern 63- 63 Patter n Nam e Data 3 2 de 1 0 Ch ar act er Pattern 0 1 2 nfi 61 62 63 Co Char act er Pat ter n 0 +000 0 +0002 +000 4 +007A +007C +007E +0080 +0082 +0084 +00FA +00FC +00F E 1 Page 62 +1F0 0 +1F0 2 +1F0 4 +1F7 A +1F7 C +1F7 E 63 +1F8 0 +1F8 2 +1F8 4 +1F FA +1FFC +1F FE GA No te 1: The up per -lef t no tat ion in the page is ch ar act er pa ttern 0- 0; to the right ar e char act er pat terns 0-1 , 0-2 , 0-3 , ... No te 2: Num be rs in the pag es are VRAM adr esse s (He xad eci mal ) of pa ttern na me dat a of ch ar act er pa ttern s, with VRAM addr ess of cha ra ct er pat ter n 0-0 pat ter n nam e dat a as the ref er en ce. SE 394 • Pattern Name Table (Continued) (2) Pat tern Nam e Dat a Size : 1 wor d nti Char act er Pat ter n Size : 2 H cel ls X 2 V cel ls Pattern Nam e Ta bl e (V RA M) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00 0H +00 2H +7FE H Cha ract er Pat ter n 0- 0 Pat ter n Name Dat a Char act er Pattern 0-1 Pattern Nam e Da ta Cha ra ct er Pat ter n 31- 31 Pattern Nam e Da ta al Cha ract er Pat ter n 0 Cha ra ct er Pat ter n 0 1 +000 +040 1 +002 +042 2 +004 +044 de 29 +03A +07A 30 +03C +07C 31 +03E +07E 30 31 +780 +782 +784 nfi +7BA +7BC +7BE Pag e Co +7C0 +7C2 +7C4 +7FA +7FC +7FE No te 1: The up pe r- lef t no tat io n in the pag e is ch ar act er pa ttern 0- 0; to the righ t ar e cha ra ct er pat ter ns 0-1 , 0-2 , 0-3 , ... No te 2: Num be rs in the pag es are VRAM adr esse s (Hexad eci mal ) of pa ttern na me da ta of ch ar act er pa ttern s, with VRAM ad dr ess of char act er pat tern 0-0 pa tter n na me da ta as the re fere nce . GA SE ST-58-R2 395 • Pattern Name Table (Continued) (3) Pat tern Nam e Dat a Size : 2 wor ds nti Char act er Pat ter n Size : 1 H cel l X 1 V cel l Pattern Nam e Ta bl e (V RA M) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +000 0H Ch ar act er Pattern 0- 0 Patter n Nam e Data (Most sig ni fica nt word ) +000 2H Cha ract er Pat ter n 0- 0 Pat ter n Name Dat a (Le ast si gni fican t word ) +000 4H Char act er Pat ter n 0- 1 Pat ter n Name Dat a (Mo st si gni fican t wor d) +3F FCH Char act er Patter n 63 -6 3 Pat ter n Name Dat a (Most si gni fican t wor d) +3F FEH Char act er Pat ter n 63 -6 3 Pat ter n Name Dat a (Le ast sig ni fican t word ) Ch ar act er Pattern 0 1 2 61 62 de 63 Cha ra ct er +0000 +0004 +0008 Pat ter n 0 +0002 1 +0006 +000A +0100 +0104 +0102 +0106 +0108 +010A nfi+00F4 +00F8 +00FC +00F6 +00FA +00FE + 01 F 4 + 01 F 8 +01FC + 01 F 6 +01FA +01FE Pag e 62 63 +3E00 +3E04 +3E0 8 +3E02 +3E06 +3E0A +3F0 0 + 3F 04 +3F0 8 +3F0 2 + 3F 06 +3F0 A Co +3EF 4 +3EF8 +3EFC +3EF 6 +3EFA +3EFE +3FF4 +3F F8 +3FF C +3FF6 +3FFA +3F FE No te 1: The up pe r- lef t no tat io n in the pag e is ch ar act er pa ttern 0- 0; to the righ t ar e cha ra ct er pat ter ns 0-1 , 0-2 , 0-3 , ... No te 2: Num be rs in the pag es are VRAM adr esse s (Hexad eci mal ) of pa ttern na me da ta of ch ar act er pa ttern s, with VRAM ad dr ess of char act er pat tern 0-0 pa tter n na me da ta as the re fere nce . GA SE 396 • Pattern Name Table (Continued) (4) Pat tern Nam e Dat a Size : 2 wor ds nti Char act er Pat ter n Size : 2 H cel ls X 2 V cel ls Pattern Nam e Ta bl e (V RA M) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0 00 H +0 02 H +0 04 H +FFCH Cha ra ct er Pat ter n 0-0 Pat tern Nam e Dat a (Mo st si gn ificant wor d) Char act er Patter n 0- 0 Pat ter n Na me Dat a (Le ast si gni fica nt wo rd ) Ch ar act er Pattern 0- 1 Pat ter n Na me Data (Most sig ni fica nt word ) Ch ar act er Pattern 31 -3 1 Pat ter n Na me Dat a (Most si gni fican t word ) al +FFEH de Char act er Patter n 31 -3 1 Pat ter n Name Dat a (Le ast sig ni fica nt word ) Ch ar act er Pattern 0 1 2 29 30 31 Char act er Pat ter n 0 1 +000 +002 +080 +082 +004 +006 +084 +086 +008 +00A +088 +08A nfi +074 +076 + 0F 4 + 0F 6 +078 +07A +0F8 +0FA +07C +07E +0F C +0FE Pag e 30 31 + F0 0 + F0 2 +F8 0 +F8 2 + F0 4 + F0 6 + F8 4 + F8 6 Co + F0 8 +F0 A +F8 8 +F8 A cha ra ct er pat ter ns 0-1 , 0-2 , 0-3 , ... +F7 4 +F7 6 +F F4 +F F6 No te 2: Num be rs in the pag es are VRAM adr esse s (Hexad eci mal ) of pa ttern na me + F7 8 +F7 A +FF8 +F FA +F 7C +F7 E +F FC +F FE No te 1: The up pe r- lef t no tat io n in the pag e is ch ar act er pa ttern 0- 0; to the righ t ar e da ta of ch ar act er pa ttern s, with VRAM ad dr ess of char act er pat tern 0-0 pa tter n na me da ta as the re fere nce . GA SE ST-58-R2 397 • Bitmap Pattern Data Specifications Bitmap Size Bitmap Pattern Bitmap Color Count Size per Surface 512 H dots X 256 V dots 512 H dots X 512 V dots Data Size 4 bits/dot 8 bits/dot 16 bits/dot 32 bits/dot 4 bits/dot 8 bits/dot 16 bits/dot 16 colors 256 colors 2048 colors, 32,768 colors 16,770,000 colors 16 colors 256 colors 2048 colors, 32,768 colors nti 64K bytes 128K bytes 256K bytes al 512K bytes 128K bytes 256K bytes 512K bytes (512K bits) (1M bits) (2M bits) (4M bits) (1M bits) (2M bits) (4M bits) 32 bits/dot 16,770,000 colors 1024K bytes (8M bits) 4 bits/dot 16 colors 128K bytes (1M bits) 1024 H dots X 8 bits/dot 256 colors 256K bytes (2M bits) 256 V dots 16 bits/dot 2048 colors, 32,768 colors 512K bytes (4M bits) 1024 H dots X 512 V dots 32 bits/dot 4 bits/dot 8 bits/dot 16 bits/dot 16,770,000 colors 16 colors 256 colors de 2048 colors, 32,768 colors 1024K bytes 256K bytes 512K bytes 1024K bytes (8M bits) (2M bits) (4M bits) (8M bits) nfi Co GA SE 398 • Bitmap Pattern (1) Bit ma p Size : 512 H dot s X 25 6 V dot s nti Bit ma p Colo r Coun t : 4 bits/ dot (1 6 co lor s) Bit ma p Pat ter n (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0 00 0H +0 00 2H +FFFEH Dot 0- 0 Dot 0- 4 Dot 25 5- 50 8 Dot 0- 1 Dot 0- 5 Dot 25 5- 50 9 Dot 0- 2 Dot 0- 6 Dot 25 5- 51 0 Dot 0- 3 Dot 0- 7 Dot 25 5- 511 al Dot 0 Dot 0 1 + 00 00 +0100 1 2 +0001 +0101 3 50 8 de +00FE +01FE 50 9 51 0 +00F F +01FF 511 25 4 25 5 +F E0 0 +FE 01 nfi +FE FE +FE FE +FF FF Bitmap Co +F F0 0 +F F0 1 +FFF E Note 1: The upp er lef t not ation in the cel l is do t 0-0 ; to the righ t are do t 0-1 , dot 0- 2, do t 0-3 , ... Note 2: Nu mber s in the ce l s are VRAM ad dr esse s (h exa de cim al) of dot (2 dot s) dat a, with VRAM add re ss of do t 0-0 , 0-1 da ta as the refer en ce. GA SE ST-58-R2 399 Bitmap Pattern (Continued) (2 ) Bitmap Size : 512 H do ts X 25 6 V do ts nti Bitmap Col or Coun t : 8 bit s/ do t (25 6 co lor s) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +00 00 0H Dot 0- 0 Do t 0-1 +00 00 2H Do t 0-2 Do t 0-3 +1F FFEH Do t 255 -5 10 Do t 255 -5 11 Dot 0 Do t 0 1 1 2 3 +000 00 +0 000 1 +000 02 +0 000 3 +002 00 +0 020 1 +002 02 +0 020 3 508 509 510 de 511 +0 01F C +00 1F D +001 FE +0 01F F +0 03F C +00 3F D +003 FE +0 03F F 25 4 +1F C0 0 +1F C01 +1F C0 2 +1F C03 25 5 +1 FE0 0 +1F E01 +1 FE0 2 +1F E03 nfi +1F DF C +1 FD FD +1F DF E +1F DF F Bitmap Co +1F FFC +1F FF D +1 FF FE +1F FFF Note 1: The upp er lef t no tation in the cel l is do t 0-0 ; to the righ t are do t 0-1 , dot 0- 2, do t 0-3 , ... Note 2: Nu mb er s in the ce l s are VRAM add re sses (h exadeci mal ) of do t dat a, with VRAM add re ss of do t 0-0 da ta as the re fer ence. GA SE 400 • Bitmap Pattern (Continued) (3) Bit ma p Size : 512 H dot s X 25 6 V dot s nti Bit ma p Colo r Coun t : 16 bi ts/ dot (204 8 col or s, 327 68 col ors) Bitmap Pat ter n (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00 00 0H +00 00 2H +3F FFEH Dot 0- 0 Dot 0-1 Do t 255 -5 11 al Do t 0 Dot 0 1 2 3 +00 000 +000 02 +00 004 +000 06 50 8de 50 9 51 0 511 +0 03F 8 +0 03F A +003 FC +0 03F E 1 +00 400 +004 02 +00 404 +004 06 25 4 +3F 80 0 +3 F8 02 +3F 80 4 +3 F8 06 nfi +0 07F 8 +0 07F A +007 FC +0 07F E +3F BF8 +3F BFA +3 FBF C +3F BF E Bitmap Co 25 5 +3 FC 00 +3F C0 2 +3 FC 04 +3F C0 6 +3F FF8 +3F FFA +3 FF FC +3F FFE Not e 1: The upp er lef t no tat io n in the ce ll is dot 0- 0; to the righ t ar e do t 0-1 , dot 0- 2, dot 0- 3, ... Not e 2: Numb er s in the cel ls are VRAM add re sses (hexad eci mal ) of do t dat a, with VRAM ad dr ess of dot 0- 0 da ta as the re fer en ce. GA SE ST-58-R2 401 • Bitmap Pattern (Continued) (4) Bit ma p Size : 512 H dot s X 25 6 V dot s nti Bit ma p Colo r Coun t : 32 bi ts/ do t (16 ,77 0, 000 col ors) Bitmap Pat ter n (V RA M) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +0 00 00 H Dot 0-0 (upp er wor d) +0 00 02 H Dot 0- 0 (l ow er wo rd ) +0000 4H Dot 0-1 (upp er wor d) Do t 255 -5 11 (up pe r wo rd ) +7 FFFCH +7F FFEH Dot 0 1 2 Dot 25 5- 511 (lo wer wor d) 3 508 509 510 de 511 Dot 0 1 +0 000 0 +00 004 +0 000 8 +0 000 C +0 080 0 +00 804 +0 080 8 +0 080 C nfi +007 F0 +00 7F 4 +007 F8 +007 FC +0 0F F0 +00 FF 4 +0 0F F8 +0 0F FC Bitma p 254 255 +7 F0 00 +7F 004 +7 F0 08 +7 F0 0C +7 F8 00 +7F 804 +7 F8 08 +7 F8 0C Co +7F 7F 0 +7F 7F 4 +7 F7 F8 +7 F7 FC +7 FF F0 +7F FF 4 +7 FF F8 +7 FF FC No te 1: The up per left not ation in the cel l is do t 0-0 ; to the ri gh t are dot 0-1, dot 0- 2, do t 0-3 , ... No te 2: Num be rs in the ce lls ar e VRA M ad dr esse s (h exa de cim al) of dot dat a (up pe r wo rd) , with VRAM ad dr ess of dot 0- 0 da ta (uppe r wor d) as the ref ere nce . GA SE 402 • Bitmap Pattern (Continued) (5 ) Bitmap Size : 512 H do ts X 51 2 V do ts nti Bitmap Col or Coun t : 4 bit s/ do t (16 col ors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0 00 00H +0 00 02H +1F FFEH Do t 0-0 Do t 0-4 Do t 511- 50 8 Do t 0-1 Do t 0-5 Do t 511- 50 9 Do t 0-2 Do t 0-6 Do t 511- 51 0 Do t 0-3 Do t 0-7 Do t 511- 511 al Dot 0 Do t 0 +00000 +00100 1 2 +00001 +00101 3 50 8 de +000FE +001FE 50 9 51 0 +000FF +001FF 511 510 1 +1F E0 0 +1F E0 1 nfi +1F EFE + 1F EF F Bitmap Co 511 +1FF0 0 +1FF0 1 + 1F FFE +1FFFF Not e 1: The upp er lef t no tat io n in the ce l is dot 0- 0; to the right ar e do t 0- 1, dot 0-2, dot 0- 3, ... Not e 2: Numb er s in the cel ls ar e VRAM add re sses (hexadeci mal ) of do t (2 dot s) dat a, with VRAM ad dr ess of dot 0- 0, 0- 1 da ta as the ref erence . GA SE ST-58-R2 403 • Bitmap Pattern (Continued) (6) Bitmap Size : 512 H dots X 512 V dots nti Bitmap Color Count : 8 bits/dot (256 colors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00000H +00002H +3FFFEH Dot 0-0 Dot 0-2 Dot 511-510 Dot 0-1 Dot 0-3 Dot 511-511 al Dot 0 Dot 0 1 2 3 +00000 +00001 +00002 +00003 +00200 +00201 +00202 +00203 508 509 510 de +001FC +001FD +001FE +001FF +003FC +003FD +003FE +003FF 511 510 1 +3FC00 +3FC01 +3FC02 +3FC03 nfi +3FDFC +3FDFD +3FDFE +3FDFF Bitmap Co 511 +3FE00 +3FE01 +3FE02 +3FE03 +3FFFC +3FFFD +3FFFE +3FFFF Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA SE 404 • Bitmap Pattern (Continued) (7) Bitmap Size : 512 H dots X 512 V dots nti Bitmap Color Count : 16 bits/dot (2048 colors, 32768 colors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +00000H Dot 0-0 +00002H Dot 0-1 +7FFFEH Dot 511-511 Dot 0 1 Dot 0 1 2 +00000 +00002 +00004 +00006 +00400 +00402 +00404 +00406 3 508 de 509 510 +003F8 +003FA +003FC +003FE +007F8 +007FA +007FC +007FE 511 510 511 +7F800 +7F802 +7F804 +7F806 +7FC00 +7FC02 +7FC04 +7FC06 nfi +7FBF8 +7FBFA +7FBFC +7FBFE +7FFF8 +7FFFA +7FFFC +7FFFE Bitmap Co Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA SE ST-58-R2 405 • Bitmap Pattern (Continued) (8) Bitmap Size : 512 H dots X 512 V dots nti Bitmap Color Count : 32 bits/dot (16,770,000 colors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +00000H Dot 0-0 (upper word) +00002H Dot 0-0 (lower word) +00004H Dot 0-1 (upper word) +FFFFCH Dot 511-511 (upper word) +FFFFEH Dot 0 1 2 3 Dot 511-511 (lower word) 508 509 510 de 511 Dot 0 1 +00000 +00004 +00008 +0000C +00800 +00804 +00808 +0080C nfi +007F0 +007F4 +007F8 +007FC +00FF0 +00FF4 +00FF8 +00FFC Bitmap 510 511 +FF000 +FF004 +FF008 +FF00C +FF800 +FF804 +FF808 +FF80C Co +FF7F0 +FF7F4 +FF7F8 +FF7FC +FFFF0 +FFFF4 +FFFF8 +FFFFC Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data (upper word), with VRAM address of dot 0-0 data (upper word) as the reference. GA SE 406 • Bitmap Pattern (Continued) (9) Bitmap Size : 1024 H dots X 256 V dots nti Bitmap Color Count : 4 bits/dot (16 colors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +00000H Dot 0-0 Dot 0-1 Dot 0-2 Dot 0-3 +00002H Dot 0-4 Dot 0-5 Dot 0-6 Dot 0-7 +1FFFEH Dot 255-1020 Dot 255-1021 Dot 255-1022 Dot 255-1023 Dot 0 Dot 0 1 +00000 +00200 1 2 +00001 +00201 3 1020 de +001FE +003FE 1021 1022 +001FF +003FF 1023 254 +1FC00 +1FC01 nfi +1FDFE +1FDFF Bitmap Co 255 +1FE00 +1FE01 +1FFFE +1FFFF Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot (2 dots) data, with VRAM address of dot 0-0, 0-1 data as the reference. GA SE ST-58-R2 407 • Bitmap Pattern (Continued) (10) Bitmap Size : 1024 H dots X 256 V dots nti Bitmap Color Count : 8 bits/dot (256 colors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +00000H Dot 0-0 Dot 0-1 +00002H Dot 0-2 Dot 0-3 +3FFFEH Dot 255-1022 Dot 255-1023 Dot 0 1 Dot 0 1 2 3 +00000 +00001 +00002 +00003 +00400 +00401 +00402 +00403 1020 1021 1022 de +003FC +003FD +003FE +003FF +007FC +007FD +007FE +007FF 1023 254 255 +3F800 +3F801 +3F802 +3F803 nfi +3FBFC +3FBFD +3FBFE +3FBFF Bitmap Co +3FC00 +3FC01 +3FC02 +3FC03 +3FFFC +3FFFD +3FFFE +3FFFF Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA SE 408 • Bitmap Pattern (Continued) (11) Bitmap Size : 1024 H dots X 256 V dots nti Bitmap Color Count : 16 bits/dot (2048 colors, 32768 colors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +00000H Dot 0-0 +00002H Dot 0-1 +7FFFEH Dot 255-1023 Dot 0 1 Dot 0 1 2 +00000 +00002 +00004 +00006 +00800 +00802 +00804 +00806 3 1020 de 1021 1022 +007F8 +007FA +007FC +007FE +00FF8 +00FFA +00FFC +00FFE 1023 254 255 +7F000 +7F002 +7F004 +7F006 nfi +7F7F8 +7F7FA +7F7FC +7F7FE Bitmap Co +7F800 +7F802 +7F804 +7F806 +7FFF8 +7FFFA +7FFFC +7FFFE Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA SE ST-58-R2 409 • Bitmap Pattern (Continued) (12) Bitmap Size : 1024 H dots X 256 V dots nti Bitmap Color Count : 32 bits/dot (16,770,000 colors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +00000H +00002H +00004H +FFFFCH Dot 0-0 (upper word) Dot 0-0 (lower word) Dot 0-1 (upper word) Dot 255-1023 (upper word) al +FFFFEH Dot 0 1 2 Dot 255-1023 (lower word) 3 1020 1021 1022 de 1023 Dot 0 1 +00000 +00004 +00008 +0000C +01000 +01004 +01008 +0100C nfi +00FF0 +00FF4 +00FF8 +00FFC +01FF0 +01FF4 +01FF8 +01FFC Bitmap 254 255 +FE000 +FE004 +FE008 +FE00C +FF000 +FF004 +FF008 +FF00C Co +FEFF0 +FEFF4 +FEFF8 +FEFFC +FFFF0 +FFFF4 +FFFF8 +FFFFC Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data (upper word), with VRAM address of dot 0-0 data (upper word) as the reference. GA SE 410 • Bitmap Pattern (Continued) (13) Bitmap Size : 1024 H dots X 512 V dots nti Bitmap Color Count : 4 bits/dot (16 colors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +00000H Dot 0-0 Dot 0-1 Dot 0-2 Dot 0-3 +00002H Dot 0-4 Dot 0-5 Dot 0-6 Dot 0-7 +3FFFEH Dot 511-1020 Dot 511-1021 Dot 511-1022 Dot 511-1023 Dot 0 1 Dot 0 +00000 +00200 1 2 +00001 +00201 3 1020 de +001FE +003FE 1021 1022 +001FF +003FF 1023 510 511 +3FC00 +3FC01 nfi +3FDFE +3FDFF +3FFFF Bitmap Co +3FE00 +3FE01 +3FFFE Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot (2 dots) data, with VRAM address of dot 0-0, 0-1 data as the reference. GA SE ST-58-R2 411 • Bitmap Pattern (Continued) (14) Bitmap Size : 1024 H dots X 512 V dots nti Bitmap Color Count : 8 bits/dot (256 colors) Bitmap Pattern (VRAM) Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 al +00000H Dot 0-0 Dot 0-1 +00002H Dot 0-2 Dot 0-3 +7FFFEH Dot 511-1022 Dot 511-1023 Dot 0 Dot 0 1 2 +00000 +00001 +00002 +00003 +00400 +00401 +00402 +00403 3 1020 1021 1022 de +003FC +003FD +003FE +003FF +007FC +007FD +007FE +007FF 1023 510 1 +7F800 +7F801 +7F802 +7F803 nfi +7FBFC +7FBFD +7FBFE +7FBFF Bitmap Co 511 +7FC00 +7FC01 +7FC02 +7FC03 +7FFFC +7FFFD +7FFFE +7FFFF Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA SE 412 • Bitmap Pattern (Continued) (15) Bitmap Size : 1024 H dots X 512 V dots Bitmap Color Count : 16 bits/dot (2048 colors, 32768 colors) Bit 15 +00000H +00002H 14 13 12 11 Bitmap Pattern (VRAM) 10 9 8 7 Dot 0-0 Dot 0-1 6 5 4 3 2 nti1 al 0 +FFFFEH Dot 511-1023 Dot 0 Dot 0 1 2 +00000 +00002 +00004 +00006 +00800 +00802 +00804 +00806 3 1020 de 1021 1022 +007F8 +007FA +007FC +007FE +00FF8 +00FFA +00FFC +00FFE 1023 510 1 +FF000 +FF002 +FF004 +FF006 nfi +FF7F8 +FF7FA +FF7FC +FF7FE Bitmap Co 511 +FF800 +FF802 +FF804 +FF806 +FFFF8 +FFFFA +FFFFC +FFFFE Note 1: The upper left notation in the cell is dot 0-0; to the right are dot 0-1, dot 0-2, dot 0-3, ... Note 2: Numbers in the cells are VRAM addresses (hexadecimal) of dot data, with VRAM address of dot 0-0 data as the reference. GA SE ST-58-R2 413 • Line Scroll Table Data Bit Configuration Hor izon tal , Vert ica l Scr ee n Scro ll Va lue +OH +2H Bit 15 Bit 15 14 13 12 11 14 13 12 11 10 9 10 9 Fr act iona l Part : 8 bit s 8 8 7 7 6 6 5 3 2 Intege r Part : 11 b its 5 4 4 3 2 1 1 0 0 ntial Hor izon tal Coo rdi na te Incr em en t Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0H Integ er Part : 3 bi ts +2H Bit 15 14 13 12 11 10 9 Fr act iona l Part : 8 bi ts No te: Shad ed ar ea s ar e ig no re d 8 7 6 5 4 3 2 1 de 0 nfi Co GA SE 414 • Example of Line Scroll Table When selecting horizontal and vertical screen scroll values and nti horizontal coordinate increment for every 1 line. Bit 15 Line Scroll Table (VRAM) 0 Line Scroll Table +00H Line 1 Horiz. Screen Scroll Value (Integer Part) Address al +02H Line 1 Horiz. Screen Scroll Value (Fractional Part) +04H Line 1 Vertical Screen Scroll Value (Integer Part) +06H Line 1 Vertical Screen Scroll Value (Fractional Part) +08H Line 1 Horiz. Coordinate Increment (Integer Part) +0AH Line 1 Horiz. Coordinate Increment (Fractional Part) +0CH Line 2 Horiz. Screen Scroll Value (Integer Part) +0EH Line 2 Horiz. Screen Scroll Value (Fractional Part) +10H Line 2 Vertical Screen Scroll Value (Integer Part) increment for every 2 lines (no horizontal line scroll). de +12H Line 2 Vertical Screen Scroll Value (Fractional Part) +14H Line 2 Horiz. Coordinate Increment (Integer Part) +16H Line 2 Horiz. Coordinate Increment (Fractional Part) When selecting vertical screen scroll value and horizontal coordinate Line Scroll Table Address Bit 15 nfi Line Scroll Table (VRAM) +00H Line 1 Vertical Screen Scroll Value (Integer Part) +02H Line 1 Vertical Screen Scroll Value (Fractional Part) +04H Line 1, 2 Horiz. Coordinate Increment (Integer Part) +06H Line 1, 2 Horiz. Coordinate Increment (Fractional Part) +08H Line 3 Vertical Screen Scroll Value (Integer Part) 0 Co +0AH Line 3 Vertical Screen Scroll Value (Fractional Part) +0CH Line 3, 4 Horiz. Coordinate Increment (Integer Part) +0EH Line 3, 4 Horiz. Coordinate Increment (Fractional Part) Note: Display coordinates in the vertical direction for lines not specified are obtained by adding coordinate increments in the vertical direction to the vertical screen scroll values for the lines specified. When selecting horizontal screen scroll value and horizontal coordinate increment for every 4 lines (no horizontal line scroll). GA Line Scroll Table Address Bit 15 Line Scroll Table (VRAM) +00H Line 1~4 Horiz. Screen Scroll Value (Integer Part) +02H Line 1~4 Horiz. Screen Scroll Value (Fractional Part) +04H Line 1~4 Horiz. Coordinate Increment (Integer Part) +06H Line 1~4 Horiz. Coordinate Increment (Fractional Part) +08H Line 5~8 Horiz. Screen Scroll Value (Integer Part) +0AH Line 5~8 Horiz. Screen Scroll Value (Fractional Part) 0 +0CH Line 5~8 Lines Horiz. Coordinate Increment (Integer Part) SE +0EH Line 5~8 Lines Horiz. Coordinate Increment (Fractional Part) ST-58-R2 415 • Vertical Cell Scroll Table Data Bit Configuration Vertical Screen Scroll Value +0H Bit 15 +2H Bit 15 14 14 13 12 11 13 12 11 10 9 10 8 bit fractional part Note: Shaded area is ignored 9 8 8 7 7 6 5 4 11 bit integer part 6 5 4 3 3 2 2 1 1 0 0 ntial de nfi Co GA SE 416 • Example of Vertical Cell Scroll Table NBG0 Vertical Cell Scroll Vertical Cell Scroll Table Address Bit 15 Vertical Cell Scroll Table (VRAM) nti +00H NBG0 1st cell vertical screen scroll value (integer part) +02H NBG0 1st cell vertical screen scroll value (fractional part) al +04H NBG0 2nd cell vertical screen scroll value (integer part) +06H NBG0 2nd cell vertical screen scroll value (fractional part) +08H NBG0 3rd cell vertical screen scroll value (integer part) +0AH NBG0 3rd cell vertical screen scroll value (fractional part) 0 +0CH NBG0 4th cell vertical screen scroll value (integer part) +0EH NBG0 4th cell vertical screen scroll value (fractional part) +10H NBG0 5th cell vertical screen scroll value (integer part) NBG1 Vertical Cell Scroll Vertical Cell Scroll Table Address de +12H NBG0 5th cell vertical screen scroll value (fractional part) Bit 15 +00H +02H +04H Vertical Cell Scroll Table (VRAM) NBG1 1st cell vertical screen scroll value (integer part) NBG1 1st cell vertical screen scroll value (fractional part) NBG1 2nd cell vertical screen scroll value (integer part) 0 +06H +08H nfi NBG1 2nd cell vertical screen scroll value (fractional part) NBG1 3rd cell vertical screen scroll value (integer part) +0AH NBG1 3rd cell vertical screen scroll value (fractional part) +0CH NBG1 4th cell vertical screen scroll value (integer part) +0EH NBG1 4th cell vertical screen scroll value (fractional part) +10H NBG1 5th cell vertical screen scroll value (integer part) Vertical Cell Scroll Co +12H NBG0 and NBG1 Vertical Cell Scroll Table Address Bit 15 NBG1 5th cell vertical screen scroll value (fractional part) Vertical Cell Scroll Table (VRAM) +00H NBG0 1st cell vertical screen scroll value (integer part) +02H NBG0 1st cell vertical screen scroll value (fractional part) 0 +04H NBG1 1st cell vertical screen scroll value (integer part) +06H NBG1 1st cell vertical screen scroll value (fractional part) GA +08H NBG0 2nd cell vertical screen scroll value (integer part) +0AH NBG0 2nd cell vertical screen scroll value (fractional part) +0CH NBG1 2nd cell vertical screen scroll value (integer part) +0EH NBG1 2nd cell vertical screen scroll value (fractional part) +10H NBG0 3rd cell vertical screen scroll value (integer part) +12H NBG0 3rd cell vertical screen scroll value (fractional part) SE ST-58-R2 417 • Rotation Parameter Table +00H Screen Start Coordinate Xst (Integer Part) +02H +04H +06H +08H +0AH +0CH +0EH +10H Screen Start Coordinate Yst Screen Start Coordinate Zst Screen Vertical Coordinate Increment ∆Xst Screen Vertical Coordinate Increment ∆Yst (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) ntial +12H (Fractional Part) +14H Screen Horiz. Coordinate Increment ∆X (Integer Part) +16H (Fractional Part) Screen Horiz. Coordinate Increment ∆Y +18H +1AH +1CH +1EH +20H +22H +24H Rotation Matrix Parameter A Rotation Matrix Parameter B Rotation Matrix Parameter C (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) de +26H +28H +2AH +2CH +2EH +30H +32H Rotation Matrix Parameter D Rotation Matrix Parameter E Rotation Matrix Parameter F (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) (Integer Part) (Fractional Part) nfi +34H +36H +38H +3AH +3CH +3EH +40H +42H Viewpoint Coordinate Px Viewpoint Coordinate Py Viewpoint Coordinate Pz This data is ignored Center Point Coordinate Cx Center Point Coordinate Cy Center Point Coordinate Cz This data is ignored Co (Integer Part) (Integer Part) (Integer Part) (Integer Part) (Integer Part) (Integer Part) +44H Horizontal Shift Mx (Integer Part) +46H (Fractional Part) GA +48H Horizontal Shift My (Integer Part) +4AH (Fractional Part) +4CH Scaling Coefficient kx (Integer Part) +4EH (Fractional Part) +50H Scaling Coefficient ky (Integer Part) +52H (Fractional Part) +54H Coefficient Table Start Address KAst (Integer Part) +56H (Fractional Part) +58H Coefficient Table Vertical Address Increment ∆KAst (Integer Part) SE +5AH (Fractional Part) +5CH Coefficient Table Horiz. Address Increment ∆KAx (Integer Part) +5EH (Fractional Part) 418 Mode 0: Used as Scale Coefficients kx and ky Mode 1: Used as Scale Coefficients coefficient kx Mode 2: Used as Scale Coefficients coefficient ky Mode 3: Used as viewpoint coordinate Xp after rotation conversion • Coefficient Table Data Bit Configuration Coe ffici en t Dat a Mod e 0~2 Coe ffici en t Dat a Size : 2 wor ds Bit 15 Tra nsp ar en cy 14 13 12 11 10 9 8 7 6 5 4 3 2 nti 1 al 0 +0 H 7 bi t line col or scre en da ta Sign 7 bi t integ er par t Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 16 bi t fra ct ion al par t +2 H Coe ffici en t Dat a Size : 1 wor d Bit 15 +0 H Tra nsp ar en cy 14 13 12 11 10 Sign 4 bit int ege r pa rt 9 8 7 6 5 de 4 3 2 10 bi t fra ct ion al pa rt No te: The MS B are si gn -e xpa nd ed by 3 bit s an d the LS B are 0- exp an de d 1 0 Coe ffici ent Dat a Size : 2 wo rds Bit 15 +0 H nfi by 6 bi ts to be of equ al to the num ber of bi ts as in the case of 2 wo rd s. Coe ffici ent Dat a Mod e 3 Tr an spa re ncy 14 13 12 11 10 9 7 bi t line col or scre en da ta 8 7 Sign 6 5 4 3 2 1 Integ er par t MSB 7 bits 0 +2 H Bit 15 14 13 12 11 10 9 Int eg er pa rt LS B 8 bi ts Coe ffici ent Dat a Size : 1 wo rd Bit 15 Tr an spa re ncy 14 13 12 11 Co 10 9 8 8 7 7 6 6 5 5 4 3 2 1 8 bi t fra ct ion al par t 4 3 2 1 0 0 +0 H Sign 12 bit int ege r pa rt 2 bit fract iona l pa rt GA Not e: The MSB ar e sig n- exp an de d by 3 bi ts and the LSB ar e 0-expa nd ed by 6 bits to be of eq ua l to the nu mbe r of bits as in the ca se of 2 wor ds. SE ST-58-R2 419 • Line Color Screen Table Data Bit Configuration Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 MSB of the address is ignored. 11 bit color Ram address Note: Shaded are is ignored. Also, when color RAM is in mode 0 or mode 2, the • Line Color Screen Table Non-interlace and double-density interlace mode ntial Bit 15 Line Color Screen Table (VRAM) 0 +00H 1st Line Color RAM Address +02H 2nd Line Color RAM Address +04H 3rd Line Color RAM Address +06H +08H +0AH 4th Line Color RAM Address 5th Line Color RAM Address 6th Line Color RAM Address Note: In the case of single color, the 1st line color RAM address is used in the entire line color screen. In the case of de double-density interlace, line data of odd and even fields are stored together. Single-density interlace mode Bit 15 +00H Line Color Screen Table (VRAM) 0 nfi Co 1st and 2nd Line Color Ram Address +02H 3rd and 4th Line Color Ram Address +04H 5th and 6th Line Color Ram Address +06H 7th and 8th Line Color Ram Address +08H 9th and 10th Line Color Ram Address +0AH 11th and 12th Line Color Ram Address Note: In the case of single color, the 1st and 2nd line color RAM addresses are used in the entire line color screen. GA SE 420 • Back Screen Table Data Bit Configuration Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 nti 5 bit Blue Data 5 bit Green Data 5 bit Red Data Note: Shaded area is ignored. Add 0 bit 3 bits at a time to the lower bits of RGB to make 8 bits. • Back Screen Table Non-interlace and double-density interlace mode Bit 15 +00H +02H +04H Back Screen Table (VRAM) 1st Line RGB Data 2nd Line RGB Data 3rd Line RGB Data 0 al +06H +08H +0AH 4th Line RGB Data 5th Line RGB Data 6th Line RGB Data Note: In the case of single color, the 1st line RGB data is used in the entire line color screen. In the case of double-density de Single-density interlace mode nfi interlace, line data of odd and even fields are stored together. Bit 15 +00H Back Screen Table (VRAM) 1st and 2nd Line RGB Data 0 +02H +04H +06H +08H +0AH Co 3rd and 4th Line RGB Data 5th and 6th Line RGB Data 7th and 8th Line RGB Data 9th and 10th Line RGB Data 11th and 12th Line RGB Data Note: In the case of single color, the 1st and 2nd line RGB data are used in the entire line color screen. GA SE ST-58-R2 421 • Normal Line Window Table Data Bit Configuration Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 +0H Bit 15 +2H 14 13 12 • Normal Line Window Table 11 10 Note: Shaded areas are ignored Horizontal Start Point Coordinates (10 bits) 9 8 7 6 5 4 3 2 1 Horizontal End Point Coordinates (10 bits) 0 ntial Non-interlace or double-density interlace Bit 15 Line Window Table (VRAM) 0 +00H +02H +04H +06H +08H 1st line horizontal start point coordinates 1st line horizontal end point coordinates 2nd line horizontal start point coordinates 2nd line horizontal end point coordinates 3rd line horizontal start point coordinates +0AH 3rd line horizontal end point coordinates de Bit 15 both even and odd fields. nfi Note: In the case of double-density interlace, store line data of Single-density interlace Line Window Table (VRAM) 0 +00H +02H +04H +06H +08H Co 1st & 2nd line horizontal start point coordinates 1st & 2nd line horizontal end point coordinates 3rd & 4th line horizontal start point coordinates 3rd & 4th line horizontal end point coordinates 5th & 6th line horizontal start point coordinates +0AH 5th & 6th line horizontal end point coordinates GA SE 422