1*1ea4df81Saymeric /* $NetBSD: grfabs_ccglb.c,v 1.11 2002/01/28 09:56:57 aymeric Exp $ */ 2ec77f0b3Scgd 37bb75ba6Schopps /* 47bb75ba6Schopps * Copyright (c) 1994 Christian E. Hopps 57bb75ba6Schopps * All rights reserved. 67bb75ba6Schopps * 77bb75ba6Schopps * Redistribution and use in source and binary forms, with or without 87bb75ba6Schopps * modification, are permitted provided that the following conditions 97bb75ba6Schopps * are met: 107bb75ba6Schopps * 1. Redistributions of source code must retain the above copyright 117bb75ba6Schopps * notice, this list of conditions and the following disclaimer. 127bb75ba6Schopps * 2. Redistributions in binary form must reproduce the above copyright 137bb75ba6Schopps * notice, this list of conditions and the following disclaimer in the 147bb75ba6Schopps * documentation and/or other materials provided with the distribution. 157bb75ba6Schopps * 3. All advertising materials mentioning features or use of this software 167bb75ba6Schopps * must display the following acknowledgement: 177bb75ba6Schopps * This product includes software developed by Christian E. Hopps. 187bb75ba6Schopps * 4. The name of the author may not be used to endorse or promote products 197bb75ba6Schopps * derived from this software without specific prior written permission 207bb75ba6Schopps * 217bb75ba6Schopps * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 227bb75ba6Schopps * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 237bb75ba6Schopps * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 247bb75ba6Schopps * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 257bb75ba6Schopps * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 267bb75ba6Schopps * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 277bb75ba6Schopps * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 287bb75ba6Schopps * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 297bb75ba6Schopps * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 307bb75ba6Schopps * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 317bb75ba6Schopps */ 327bb75ba6Schopps 33b30a4d19Sis #include "opt_amigaccgrf.h" 34b30a4d19Sis 35*1ea4df81Saymeric #include <sys/cdefs.h> 36*1ea4df81Saymeric __KERNEL_RCSID(0, "$NetBSD: grfabs_ccglb.c,v 1.11 2002/01/28 09:56:57 aymeric Exp $"); 37*1ea4df81Saymeric 387bb75ba6Schopps #include <sys/types.h> 39e9dc4428Schopps #include <sys/queue.h> 40e9dc4428Schopps 417bb75ba6Schopps #include <amiga/amiga/cc.h> 427bb75ba6Schopps #include <amiga/dev/grfabs_reg.h> 437bb75ba6Schopps #include <amiga/dev/grfabs_ccreg.h> 447bb75ba6Schopps 457bb75ba6Schopps /* the custom thips monitor */ 467bb75ba6Schopps monitor_t *cc_monitor; 477bb75ba6Schopps 487bb75ba6Schopps cop_t std_copper_list[] = { 492b6ece67Smhitch {{{ CI_WAIT (0, 12), 0xfffe }}}, 505dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 51d64a1b73Schopps #if defined (GRF_AGA) 522b6ece67Smhitch {{{ R_FMODE, 0x0000 }}}, 53d64a1b73Schopps #endif 542b6ece67Smhitch {{{ R_BEAMCON0, 0x0000 }}}, 552b6ece67Smhitch {{{ R_BPLCON3, 0x0020 }}}, /* enable border blank */ 567bb75ba6Schopps #endif 577bb75ba6Schopps /* bit plane pointers */ 582b6ece67Smhitch {{{ R_BPL0PTH, 0x0000 }}}, {{{ R_BPL0PTL, 0x0000 }}}, 592b6ece67Smhitch {{{ R_BPL1PTH, 0x0000 }}}, {{{ R_BPL1PTL, 0x0000 }}}, 602b6ece67Smhitch {{{ R_BPL2PTH, 0x0000 }}}, {{{ R_BPL2PTL, 0x0000 }}}, 612b6ece67Smhitch {{{ R_BPL3PTH, 0x0000 }}}, {{{ R_BPL3PTL, 0x0000 }}}, 622b6ece67Smhitch {{{ R_BPL4PTH, 0x0000 }}}, {{{ R_BPL4PTL, 0x0000 }}}, 632b6ece67Smhitch {{{ R_BPL5PTH, 0x0000 }}}, {{{ R_BPL5PTL, 0x0000 }}}, 642b6ece67Smhitch {{{ R_BPL6PTH, 0x0000 }}}, {{{ R_BPL6PTL, 0x0000 }}}, 652b6ece67Smhitch {{{ R_BPL7PTH, 0x0000 }}}, {{{ R_BPL7PTL, 0x0000 }}}, 667bb75ba6Schopps /* view specific stuff. */ 672b6ece67Smhitch {{{ R_BPL1MOD, 0x0000 }}}, 682b6ece67Smhitch {{{ R_BPL2MOD, 0x0000 }}}, 692b6ece67Smhitch {{{ R_DIWSTRT, 0xffff }}}, 702b6ece67Smhitch {{{ R_BPLCON0, 0x0000 }}}, 712b6ece67Smhitch {{{ R_DIWSTOP, 0x0000 }}}, 725dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 732b6ece67Smhitch {{{ R_DIWHIGH, 0x0000 }}}, 747bb75ba6Schopps #endif 752b6ece67Smhitch {{{ R_DDFSTRT, 0x0000 }}}, 762b6ece67Smhitch {{{ R_DDFSTOP, 0x0000 }}}, 772b6ece67Smhitch {{{ R_BPLCON1, 0x0000 }}}, 787bb75ba6Schopps /* colors */ 792b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 802b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 812b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 822b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 832b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 842b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 852b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 862b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 872b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 882b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 892b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 902b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 912b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 922b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 932b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 942b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 952b6ece67Smhitch {{{ R_COP1LCH, 0x0000 }}}, {{{ R_COP1LCL, 0x0000 }}}, 962b6ece67Smhitch {{{ 0xffff, 0xfffe }}}, {{{ 0xffff, 0xfffe }}} /* COPEND, COPEND */ 977bb75ba6Schopps }; 987bb75ba6Schopps 997bb75ba6Schopps /* standard custom chips copper list. */ 1007bb75ba6Schopps int std_copper_list_len = sizeof (std_copper_list) / sizeof (cop_t); 1017bb75ba6Schopps int std_copper_list_size = sizeof (std_copper_list); 1027bb75ba6Schopps 1037bb75ba6Schopps 104d64a1b73Schopps #ifdef GRF_AGA 105d64a1b73Schopps cop_t aga_copper_list[] = { 1062b6ece67Smhitch {{{ CI_WAIT (0, 12), 0xfffe }}}, 1072b6ece67Smhitch {{{ R_FMODE, 0x0000 }}}, 1082b6ece67Smhitch {{{ R_HTOTAL, 0x0071 }}}, 1092b6ece67Smhitch {{{ R_HBSTRT, 0x0008 }}}, 1102b6ece67Smhitch {{{ R_HBSTOP, 0x001c }}}, 1112b6ece67Smhitch {{{ R_HSSTRT, 0x000c }}}, 1122b6ece67Smhitch {{{ R_HSSTOP, 0x001e }}}, 1132b6ece67Smhitch {{{ R_HCENTER, 0x0046 }}}, 1142b6ece67Smhitch {{{ R_VSSTRT, 0x0001 }}}, 1152b6ece67Smhitch {{{ R_VSSTOP, 0x0003 }}}, 1162b6ece67Smhitch {{{ R_VBSTRT, 0x0000 }}}, 1172b6ece67Smhitch {{{ R_VBSTOP, 0x000f }}}, 1182b6ece67Smhitch {{{ R_VTOTAL, 0x020c }}}, 1192b6ece67Smhitch {{{ R_BEAMCON0, 0x0000 }}}, 12055713234Schopps /* bit plane pointers */ 1212b6ece67Smhitch {{{ R_BPL0PTH, 0x0000 }}}, {{{ R_BPL0PTL, 0x0000 }}}, 1222b6ece67Smhitch {{{ R_BPL1PTH, 0x0000 }}}, {{{ R_BPL1PTL, 0x0000 }}}, 1232b6ece67Smhitch {{{ R_BPL2PTH, 0x0000 }}}, {{{ R_BPL2PTL, 0x0000 }}}, 1242b6ece67Smhitch {{{ R_BPL3PTH, 0x0000 }}}, {{{ R_BPL3PTL, 0x0000 }}}, 1252b6ece67Smhitch {{{ R_BPL4PTH, 0x0000 }}}, {{{ R_BPL4PTL, 0x0000 }}}, 1262b6ece67Smhitch {{{ R_BPL5PTH, 0x0000 }}}, {{{ R_BPL5PTL, 0x0000 }}}, 1272b6ece67Smhitch {{{ R_BPL6PTH, 0x0000 }}}, {{{ R_BPL6PTL, 0x0000 }}}, 1282b6ece67Smhitch {{{ R_BPL7PTH, 0x0000 }}}, {{{ R_BPL7PTL, 0x0000 }}}, 12955713234Schopps /* view specific stuff. */ 1302b6ece67Smhitch {{{ R_BPL1MOD, 0x0000 }}}, 1312b6ece67Smhitch {{{ R_BPL2MOD, 0x0000 }}}, 1322b6ece67Smhitch {{{ R_DIWSTRT, 0xffff }}}, 1332b6ece67Smhitch {{{ R_BPLCON0, 0x0000 }}}, 1342b6ece67Smhitch {{{ R_DIWSTOP, 0x0000 }}}, 1352b6ece67Smhitch {{{ R_DIWHIGH, 0x0000 }}}, 1362b6ece67Smhitch {{{ R_DDFSTRT, 0x0000 }}}, 1372b6ece67Smhitch {{{ R_DDFSTOP, 0x0000 }}}, 1382b6ece67Smhitch {{{ R_BPLCON1, 0x0000 }}}, 139d64a1b73Schopps /* colors - bank 0 high */ 1402b6ece67Smhitch {{{ R_BPLCON3, 0x0020 }}}, 1412b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 1422b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 1432b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 1442b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 1452b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 1462b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 1472b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 1482b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 1492b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 1502b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 1512b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 1522b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 1532b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 1542b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 1552b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 1562b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 157d64a1b73Schopps /* colors - bank 0 low */ 1582b6ece67Smhitch {{{ R_BPLCON3, 0x0220 }}}, 1592b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 1602b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 1612b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 1622b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 1632b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 1642b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 1652b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 1662b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 1672b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 1682b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 1692b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 1702b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 1712b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 1722b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 1732b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 1742b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 175d64a1b73Schopps /* colors - bank 1 high */ 1762b6ece67Smhitch {{{ R_BPLCON3, 0x2020 }}}, 1772b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 1782b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 1792b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 1802b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 1812b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 1822b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 1832b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 1842b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 1852b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 1862b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 1872b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 1882b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 1892b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 1902b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 1912b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 1922b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 193d64a1b73Schopps /* colors - bank 1 low */ 1942b6ece67Smhitch {{{ R_BPLCON3, 0x2220 }}}, 1952b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 1962b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 1972b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 1982b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 1992b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 2002b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 2012b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 2022b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 2032b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 2042b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 2052b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 2062b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 2072b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 2082b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 2092b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 2102b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 211d64a1b73Schopps /* colors - bank 2 high */ 2122b6ece67Smhitch {{{ R_BPLCON3, 0x4020 }}}, 2132b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 2142b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 2152b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 2162b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 2172b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 2182b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 2192b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 2202b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 2212b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 2222b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 2232b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 2242b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 2252b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 2262b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 2272b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 2282b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 229d64a1b73Schopps /* colors - bank 2 low */ 2302b6ece67Smhitch {{{ R_BPLCON3, 0x4220 }}}, 2312b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 2322b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 2332b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 2342b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 2352b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 2362b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 2372b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 2382b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 2392b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 2402b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 2412b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 2422b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 2432b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 2442b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 2452b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 2462b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 247d64a1b73Schopps /* colors - bank 3 high */ 2482b6ece67Smhitch {{{ R_BPLCON3, 0x6020 }}}, 2492b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 2502b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 2512b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 2522b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 2532b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 2542b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 2552b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 2562b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 2572b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 2582b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 2592b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 2602b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 2612b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 2622b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 2632b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 2642b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 265d64a1b73Schopps /* colors - bank 3 low */ 2662b6ece67Smhitch {{{ R_BPLCON3, 0x6220 }}}, 2672b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 2682b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 2692b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 2702b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 2712b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 2722b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 2732b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 2742b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 2752b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 2762b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 2772b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 2782b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 2792b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 2802b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 2812b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 2822b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 283d64a1b73Schopps /* colors - bank 4 high */ 2842b6ece67Smhitch {{{ R_BPLCON3, 0x8020 }}}, 2852b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 2862b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 2872b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 2882b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 2892b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 2902b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 2912b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 2922b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 2932b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 2942b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 2952b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 2962b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 2972b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 2982b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 2992b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 3002b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 301d64a1b73Schopps /* colors - bank 4 low */ 3022b6ece67Smhitch {{{ R_BPLCON3, 0x8220 }}}, 3032b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 3042b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 3052b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 3062b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 3072b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 3082b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 3092b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 3102b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 3112b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 3122b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 3132b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 3142b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 3152b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 3162b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 3172b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 3182b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 319d64a1b73Schopps /* colors - bank 5 high */ 3202b6ece67Smhitch {{{ R_BPLCON3, 0xa020 }}}, 3212b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 3222b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 3232b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 3242b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 3252b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 3262b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 3272b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 3282b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 3292b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 3302b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 3312b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 3322b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 3332b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 3342b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 3352b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 3362b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 337d64a1b73Schopps /* colors - bank 5 low */ 3382b6ece67Smhitch {{{ R_BPLCON3, 0xa220 }}}, 3392b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 3402b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 3412b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 3422b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 3432b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 3442b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 3452b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 3462b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 3472b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 3482b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 3492b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 3502b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 3512b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 3522b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 3532b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 3542b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 355d64a1b73Schopps /* colors - bank 6 high */ 3562b6ece67Smhitch {{{ R_BPLCON3, 0xc020 }}}, 3572b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 3582b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 3592b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 3602b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 3612b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 3622b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 3632b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 3642b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 3652b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 3662b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 3672b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 3682b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 3692b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 3702b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 3712b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 3722b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 373d64a1b73Schopps /* colors - bank 6 low */ 3742b6ece67Smhitch {{{ R_BPLCON3, 0xc220 }}}, 3752b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 3762b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 3772b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 3782b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 3792b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 3802b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 3812b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 3822b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 3832b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 3842b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 3852b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 3862b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 3872b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 3882b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 3892b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 3902b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 391d64a1b73Schopps /* colors - bank 7 high */ 3922b6ece67Smhitch {{{ R_BPLCON3, 0xe020 }}}, 3932b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 3942b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 3952b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 3962b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 3972b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 3982b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 3992b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 4002b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 4012b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 4022b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 4032b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 4042b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 4052b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 4062b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 4072b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 4082b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 409d64a1b73Schopps /* colors - bank 7 low */ 4102b6ece67Smhitch {{{ R_BPLCON3, 0xe220 }}}, 4112b6ece67Smhitch {{{ R_COLOR00, 0x0779 }}}, {{{ R_COLOR01, 0x0000 }}}, 4122b6ece67Smhitch {{{ R_COLOR02, 0x0FFF }}}, {{{ R_COLOR03, 0x068B }}}, 4132b6ece67Smhitch {{{ R_COLOR04, 0x000f }}}, {{{ R_COLOR05, 0x0f0f }}}, 4142b6ece67Smhitch {{{ R_COLOR06, 0x00ff }}}, {{{ R_COLOR07, 0x0fff }}}, 4152b6ece67Smhitch {{{ R_COLOR08, 0x0620 }}}, {{{ R_COLOR09, 0x0e50 }}}, 4162b6ece67Smhitch {{{ R_COLOR0A, 0x09f1 }}}, {{{ R_COLOR0B, 0x0eb0 }}}, 4172b6ece67Smhitch {{{ R_COLOR0C, 0x055f }}}, {{{ R_COLOR0D, 0x092f }}}, 4182b6ece67Smhitch {{{ R_COLOR0E, 0x00f8 }}}, {{{ R_COLOR0F, 0x0ccc }}}, 4192b6ece67Smhitch {{{ R_COLOR10, 0x0e44 }}}, {{{ R_COLOR11, 0x0e44 }}}, 4202b6ece67Smhitch {{{ R_COLOR12, 0x0000 }}}, {{{ R_COLOR13, 0x0eec }}}, 4212b6ece67Smhitch {{{ R_COLOR14, 0x0444 }}}, {{{ R_COLOR15, 0x0555 }}}, 4222b6ece67Smhitch {{{ R_COLOR16, 0x0666 }}}, {{{ R_COLOR17, 0x0777 }}}, 4232b6ece67Smhitch {{{ R_COLOR18, 0x0888 }}}, {{{ R_COLOR19, 0x0999 }}}, 4242b6ece67Smhitch {{{ R_COLOR1A, 0x0aaa }}}, {{{ R_COLOR1B, 0x0bbb }}}, 4252b6ece67Smhitch {{{ R_COLOR1C, 0x0ccc }}}, {{{ R_COLOR1D, 0x0ddd }}}, 4262b6ece67Smhitch {{{ R_COLOR1E, 0x0eee }}}, {{{ R_COLOR1F, 0x0fff }}}, 427d64a1b73Schopps /* colors - whew! */ 4282b6ece67Smhitch {{{ R_BPLCON3, 0x0020 }}}, /* enable border blank */ 4292b6ece67Smhitch {{{ R_COP1LCH, 0x0000 }}}, {{{ R_COP1LCL, 0x0000 }}}, 4302b6ece67Smhitch {{{ 0xffff, 0xfffe }}}, {{{ 0xffff, 0xfffe }}} /* COPEND, COPEND */ 431d64a1b73Schopps }; 432d64a1b73Schopps 433d64a1b73Schopps /* AGA custom chips copper list. */ 434d64a1b73Schopps int aga_copper_list_len = sizeof (aga_copper_list) / sizeof (cop_t); 435d64a1b73Schopps int aga_copper_list_size = sizeof (aga_copper_list); 436d64a1b73Schopps #endif 437d64a1b73Schopps 4387bb75ba6Schopps #if defined (GRF_A2024) 4397bb75ba6Schopps cop_t std_dlace_copper_list[] = { 4402b6ece67Smhitch {{{ CI_WAIT(0,12), 0xfffe }}}, /* WAIT (0, 12) */ 4415dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 4422b6ece67Smhitch {{{ R_BEAMCON0, 0x0000 }}}, 4432b6ece67Smhitch {{{ R_BPLCON3, 0x0020 }}}, /* enable border blank */ 4447bb75ba6Schopps #endif 4457bb75ba6Schopps /* colors */ 4462b6ece67Smhitch {{{ R_COLOR00, 0x0000 }}}, {{{ R_COLOR01, 0x0000 }}}, 4472b6ece67Smhitch {{{ R_COLOR02, 0x0000 }}}, {{{ R_COLOR03, 0x0000 }}}, 4482b6ece67Smhitch {{{ R_COLOR04, 0x0000 }}}, {{{ R_COLOR05, 0x0000 }}}, 4492b6ece67Smhitch {{{ R_COLOR06, 0x0000 }}}, {{{ R_COLOR07, 0x0000 }}}, 4502b6ece67Smhitch {{{ R_COLOR08, 0x0000 }}}, {{{ R_COLOR09, 0x0000 }}}, 4512b6ece67Smhitch {{{ R_COLOR0A, 0x0000 }}}, {{{ R_COLOR0B, 0x0000 }}}, 4522b6ece67Smhitch {{{ R_COLOR0C, 0x0000 }}}, {{{ R_COLOR0D, 0x0000 }}}, 4532b6ece67Smhitch {{{ R_COLOR0E, 0x0000 }}}, {{{ R_COLOR0F, 0x0000 }}}, 4542b6ece67Smhitch {{{ R_COLOR10, 0x0009 }}}, {{{ R_COLOR11, 0x0009 }}}, 4552b6ece67Smhitch {{{ R_COLOR12, 0x0001 }}}, {{{ R_COLOR13, 0x0809 }}}, 4562b6ece67Smhitch {{{ R_COLOR14, 0x0009 }}}, {{{ R_COLOR15, 0x0009 }}}, 4572b6ece67Smhitch {{{ R_COLOR16, 0x0001 }}}, {{{ R_COLOR17, 0x0809 }}}, 4582b6ece67Smhitch {{{ R_COLOR18, 0x0008 }}}, {{{ R_COLOR19, 0x0008 }}}, 4592b6ece67Smhitch {{{ R_COLOR1A, 0x0000 }}}, {{{ R_COLOR1B, 0x0808 }}}, 4602b6ece67Smhitch {{{ R_COLOR1C, 0x0089 }}}, {{{ R_COLOR1D, 0x0089 }}}, 4612b6ece67Smhitch {{{ R_COLOR1E, 0x0081 }}}, {{{ R_COLOR1F, 0x0889 }}}, 4627bb75ba6Schopps /* set the registers up. */ 4632b6ece67Smhitch {{{ R_DIWSTRT, 0xffff }}}, 4642b6ece67Smhitch {{{ R_BPLCON0, 0x0000 }}}, 4652b6ece67Smhitch {{{ R_DIWSTOP, 0x0000 }}}, 4665dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 4672b6ece67Smhitch {{{ R_DIWHIGH, 0x0000 }}}, 4687bb75ba6Schopps #endif 4692b6ece67Smhitch {{{ R_DDFSTRT, 0x0000 }}}, 4702b6ece67Smhitch {{{ R_DDFSTOP, 0x0000 }}}, 4712b6ece67Smhitch {{{ R_BPLCON1, 0x0000 }}}, 4727bb75ba6Schopps /* view specific stuff. */ 4732b6ece67Smhitch {{{ R_BPL1MOD, 0x0000 }}}, 4742b6ece67Smhitch {{{ R_BPL2MOD, 0x0000 }}}, 4757bb75ba6Schopps /* bit plane pointers */ 4762b6ece67Smhitch {{{ R_BPL0PTH, 0x0000 }}}, {{{ R_BPL0PTL, 0x0000 }}}, 4772b6ece67Smhitch {{{ R_BPL1PTH, 0x0000 }}}, {{{ R_BPL1PTL, 0x0000 }}}, 4782b6ece67Smhitch {{{ R_BPL2PTH, 0x0000 }}}, {{{ R_BPL2PTL, 0x0000 }}}, 4792b6ece67Smhitch {{{ R_BPL3PTH, 0x0000 }}}, {{{ R_BPL3PTL, 0x0000 }}}, 480d64a1b73Schopps #if defined (GRF_AGA) 4812b6ece67Smhitch {{{ R_FMODE, 0x0000}}}, 482d64a1b73Schopps #endif 4832b6ece67Smhitch {{{ R_COP1LCH, 0x0000 }}}, {{{ R_COP1LCL, 0x0000 }}}, 4842b6ece67Smhitch {{{ 0xffff, 0xfffe }}}, {{{ 0xffff, 0xfffe }}} /* COPEND, COPEND */ 4857bb75ba6Schopps }; 4867bb75ba6Schopps int std_dlace_copper_list_len = sizeof (std_dlace_copper_list) / sizeof (cop_t); 4877bb75ba6Schopps int std_dlace_copper_list_size = sizeof (std_dlace_copper_list); 4887bb75ba6Schopps 4897bb75ba6Schopps cop_t std_a2024_copper_list[] = { 4902b6ece67Smhitch {{{ CI_WAIT(0,12), 0xfffe }}}, /* WAIT (0, 12) */ 4915dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 4922b6ece67Smhitch {{{ R_BEAMCON0, 0x0000 }}}, 4937bb75ba6Schopps #endif 4947bb75ba6Schopps /* hedley card init setup section */ 4952b6ece67Smhitch {{{ R_COLOR00, 0x0f00 }}}, 4962b6ece67Smhitch {{{ R_BPL0PTH, 0x0000 }}}, {{{ R_BPL0PTL, 0x0000 }}}, /* init plane of 1's with first set for centering */ 4972b6ece67Smhitch {{{ R_DIWSTRT, 0x1561 }}}, {{{ R_DIWSTOP, 0x16d1 }}}, 4985dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 4992b6ece67Smhitch {{{ R_DIWHIGH, 0x2000 }}}, 5007bb75ba6Schopps #endif 5012b6ece67Smhitch {{{ R_DDFSTRT, 0x0040 }}}, {{{ R_DDFSTOP, 0x00d0 }}}, 5022b6ece67Smhitch {{{ R_BPLCON0, 0x9200 }}}, 5037bb75ba6Schopps /* actual data that will be latched by hedley card. */ 5042b6ece67Smhitch {{{ R_COLOR01, 0x0001 }}}, /* Stuff1 */ 5052b6ece67Smhitch {{{ CI_WAIT(126,21), 0xfffe }}}, {{{ R_COLOR01, 0x0001 }}}, /* Display Quadrent */ 5062b6ece67Smhitch {{{ CI_WAIT(158,21), 0xfffe }}}, {{{ R_COLOR01, 0x08f0 }}}, /* Stuff */ 5072b6ece67Smhitch {{{ CI_WAIT(190,21), 0xfffe }}}, {{{ R_COLOR01, 0x0ff1 }}}, /* Stuff2 */ 5082b6ece67Smhitch {{{ CI_WAIT(0,22), 0xfffe }}}, 5092b6ece67Smhitch {{{ R_COLOR00, 0x0000 }}}, {{{ R_BPLCON0, 0x0000 }}}, 5102b6ece67Smhitch {{{ CI_WAIT(0,43), 0xfffe }}}, 5117bb75ba6Schopps /* set the registers up. */ 5122b6ece67Smhitch {{{ R_COLOR00, 0x0009 }}}, {{{ R_COLOR01, 0x0001 }}}, 5132b6ece67Smhitch {{{ R_COLOR02, 0x0008 }}}, {{{ R_COLOR03, 0x0000 }}}, 5142b6ece67Smhitch {{{ R_COLOR04, 0x0809 }}}, {{{ R_COLOR05, 0x0801 }}}, 5152b6ece67Smhitch {{{ R_COLOR06, 0x0808 }}}, {{{ R_COLOR07, 0x0800 }}}, 5162b6ece67Smhitch {{{ R_COLOR08, 0x0089 }}}, {{{ R_COLOR09, 0x0081 }}}, 5172b6ece67Smhitch {{{ R_COLOR0A, 0x0088 }}}, {{{ R_COLOR0B, 0x0080 }}}, 5182b6ece67Smhitch {{{ R_COLOR0C, 0x0889 }}}, {{{ R_COLOR0D, 0x0881 }}}, 5192b6ece67Smhitch {{{ R_COLOR0E, 0x0888 }}}, {{{ R_COLOR0F, 0x0880 }}}, 5202b6ece67Smhitch {{{ R_COLOR10, 0x0009 }}}, {{{ R_COLOR11, 0x0009 }}}, 5212b6ece67Smhitch {{{ R_COLOR12, 0x0001 }}}, {{{ R_COLOR13, 0x0809 }}}, 5222b6ece67Smhitch {{{ R_COLOR14, 0x0009 }}}, {{{ R_COLOR15, 0x0009 }}}, 5232b6ece67Smhitch {{{ R_COLOR16, 0x0001 }}}, {{{ R_COLOR17, 0x0809 }}}, 5242b6ece67Smhitch {{{ R_COLOR18, 0x0008 }}}, {{{ R_COLOR19, 0x0008 }}}, 5252b6ece67Smhitch {{{ R_COLOR1A, 0x0000 }}}, {{{ R_COLOR1B, 0x0808 }}}, 5262b6ece67Smhitch {{{ R_COLOR1C, 0x0089 }}}, {{{ R_COLOR1D, 0x0089 }}}, 5272b6ece67Smhitch {{{ R_COLOR1E, 0x0081 }}}, {{{ R_COLOR1F, 0x0889 }}}, 5287bb75ba6Schopps /* window size. */ 5292b6ece67Smhitch {{{ R_DIWSTRT, 0x2c81 }}}, {{{ R_BPLCON0, 0x0000 }}}, 5302b6ece67Smhitch {{{ R_DIWSTOP, 0xf481 }}}, 5317bb75ba6Schopps /* datafetch */ 5322b6ece67Smhitch {{{ R_DDFSTRT, 0x0038 }}}, {{{ R_DDFSTOP, 0x00b8 }}}, 5332b6ece67Smhitch {{{ R_BPLCON1, 0x0000 }}}, 5342b6ece67Smhitch {{{ R_BPL1MOD, 0x00bc }}}, {{{ R_BPL2MOD, 0x00bc }}}, 5357bb75ba6Schopps /* bitplanes */ 5362b6ece67Smhitch {{{ R_BPL0PTH, 0x0000 }}}, {{{ R_BPL0PTL, 0x0000 }}}, 5372b6ece67Smhitch {{{ R_BPL1PTH, 0x0000 }}}, {{{ R_BPL1PTL, 0x0000 }}}, 5382b6ece67Smhitch {{{ R_BPL2PTH, 0x0000 }}}, {{{ R_BPL2PTL, 0x0000 }}}, 5392b6ece67Smhitch {{{ R_BPL3PTH, 0x0000 }}}, {{{ R_BPL3PTL, 0x0000 }}}, 5405dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 5412b6ece67Smhitch {{{ R_DIWHIGH, 0x2000 }}}, 542d64a1b73Schopps #if defined (GRF_AGA) 5432b6ece67Smhitch {{{ R_FMODE, 0x0000}}}, 544d64a1b73Schopps #endif 5457bb75ba6Schopps #endif 5462b6ece67Smhitch {{{ R_COP1LCH, 0x0000 }}}, {{{ R_COP1LCL, 0x0000 }}}, 5472b6ece67Smhitch {{{ 0xffff, 0xfffe }}}, {{{ 0xffff, 0xfffe }}} /* COPEND, COPEND */ 5487bb75ba6Schopps }; 5497bb75ba6Schopps int std_a2024_copper_list_len = sizeof (std_a2024_copper_list) / sizeof (cop_t); 5507bb75ba6Schopps int std_a2024_copper_list_size = sizeof (std_a2024_copper_list); 5517bb75ba6Schopps 5527bb75ba6Schopps cop_t std_pal_a2024_copper_list[] = { 5532b6ece67Smhitch {{{ CI_WAIT(0,20), 0xfffe }}}, /* WAIT (0, 12) */ 5545dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 5552b6ece67Smhitch {{{ R_BEAMCON0, STANDARD_PAL_BEAMCON }}}, 5567bb75ba6Schopps #endif 5577bb75ba6Schopps /* hedley card init setup section */ 5582b6ece67Smhitch {{{ R_COLOR00, 0x0f00 }}}, 5592b6ece67Smhitch {{{ R_BPL0PTH, 0x0000 }}}, {{{ R_BPL0PTL, 0x0000 }}}, /* init plane of 1's with first set for centering */ 5602b6ece67Smhitch {{{ R_DIWSTRT, 0x1d61 }}}, {{{ R_DIWSTOP, 0x1ed1 }}}, 5615dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 5622b6ece67Smhitch {{{ R_DIWHIGH, 0x2000 }}}, 5637bb75ba6Schopps #endif 5642b6ece67Smhitch {{{ R_DDFSTRT, 0x0040 }}}, {{{ R_DDFSTOP, 0x00d0 }}}, 5652b6ece67Smhitch {{{ R_BPLCON0, 0x9200 }}}, 5667bb75ba6Schopps /* actual data that will be latched by hedley card. */ 5672b6ece67Smhitch {{{ R_COLOR01, 0x0001 }}}, /* Stuff1 */ 5682b6ece67Smhitch {{{ CI_WAIT(126,29), 0xfffe }}}, {{{ R_COLOR01, 0x0001 }}}, /* Display Quadrent */ 5692b6ece67Smhitch {{{ CI_WAIT(158,29), 0xfffe }}}, {{{ R_COLOR01, 0x08f0 }}}, /* Stuff */ 5702b6ece67Smhitch {{{ CI_WAIT(190,29), 0xfffe }}}, {{{ R_COLOR01, 0x0ff1 }}}, /* Stuff2 */ 5712b6ece67Smhitch {{{ CI_WAIT(0,30), 0xfffe }}}, 5722b6ece67Smhitch {{{ R_COLOR00, 0x0000 }}}, {{{ R_BPLCON0, 0x0000 }}}, 5732b6ece67Smhitch {{{ CI_WAIT(0,43), 0xfffe }}}, 5747bb75ba6Schopps 5757bb75ba6Schopps /* set the registers up. */ 5762b6ece67Smhitch {{{ R_COLOR00, 0x0009 }}}, {{{ R_COLOR01, 0x0001 }}}, 5772b6ece67Smhitch {{{ R_COLOR02, 0x0008 }}}, {{{ R_COLOR03, 0x0000 }}}, 5782b6ece67Smhitch {{{ R_COLOR04, 0x0809 }}}, {{{ R_COLOR05, 0x0801 }}}, 5792b6ece67Smhitch {{{ R_COLOR06, 0x0808 }}}, {{{ R_COLOR07, 0x0800 }}}, 5802b6ece67Smhitch {{{ R_COLOR08, 0x0089 }}}, {{{ R_COLOR09, 0x0081 }}}, 5812b6ece67Smhitch {{{ R_COLOR0A, 0x0088 }}}, {{{ R_COLOR0B, 0x0080 }}}, 5822b6ece67Smhitch {{{ R_COLOR0C, 0x0889 }}}, {{{ R_COLOR0D, 0x0881 }}}, 5832b6ece67Smhitch {{{ R_COLOR0E, 0x0888 }}}, {{{ R_COLOR0F, 0x0880 }}}, 5842b6ece67Smhitch {{{ R_COLOR10, 0x0009 }}}, {{{ R_COLOR11, 0x0009 }}}, 5852b6ece67Smhitch {{{ R_COLOR12, 0x0001 }}}, {{{ R_COLOR13, 0x0809 }}}, 5862b6ece67Smhitch {{{ R_COLOR14, 0x0009 }}}, {{{ R_COLOR15, 0x0009 }}}, 5872b6ece67Smhitch {{{ R_COLOR16, 0x0001 }}}, {{{ R_COLOR17, 0x0809 }}}, 5882b6ece67Smhitch {{{ R_COLOR18, 0x0008 }}}, {{{ R_COLOR19, 0x0008 }}}, 5892b6ece67Smhitch {{{ R_COLOR1A, 0x0000 }}}, {{{ R_COLOR1B, 0x0808 }}}, 5902b6ece67Smhitch {{{ R_COLOR1C, 0x0089 }}}, {{{ R_COLOR1D, 0x0089 }}}, 5912b6ece67Smhitch {{{ R_COLOR1E, 0x0081 }}}, {{{ R_COLOR1F, 0x0889 }}}, 5927bb75ba6Schopps /* window size. */ 5932b6ece67Smhitch {{{ R_DIWSTRT, 0x2c81 }}}, {{{ R_BPLCON0, 0x0000 }}}, 5942b6ece67Smhitch {{{ R_DIWSTOP, 0x2c81 }}}, 5957bb75ba6Schopps /* datafetch */ 5962b6ece67Smhitch {{{ R_DDFSTRT, 0x0038 }}}, {{{ R_DDFSTOP, 0x00b8 }}}, 5972b6ece67Smhitch {{{ R_BPLCON1, 0x0000 }}}, 5982b6ece67Smhitch {{{ R_BPL1MOD, 0x00bc }}}, {{{ R_BPL2MOD, 0x00bc }}}, 5997bb75ba6Schopps /* bitplanes */ 6002b6ece67Smhitch {{{ R_BPL0PTH, 0x0000 }}}, {{{ R_BPL0PTL, 0x0000 }}}, 6012b6ece67Smhitch {{{ R_BPL1PTH, 0x0000 }}}, {{{ R_BPL1PTL, 0x0000 }}}, 6022b6ece67Smhitch {{{ R_BPL2PTH, 0x0000 }}}, {{{ R_BPL2PTL, 0x0000 }}}, 6032b6ece67Smhitch {{{ R_BPL3PTH, 0x0000 }}}, {{{ R_BPL3PTL, 0x0000 }}}, 6045dcc668eSchopps #if defined (GRF_ECS) || defined (GRF_AGA) 6052b6ece67Smhitch {{{ R_DIWHIGH, 0x2100 }}}, 606d64a1b73Schopps #if defined (GRF_AGA) 6072b6ece67Smhitch {{{ R_FMODE, 0x0000}}}, 608d64a1b73Schopps #endif 6097bb75ba6Schopps #endif 6102b6ece67Smhitch {{{ R_COP1LCH, 0x0000 }}}, {{{ R_COP1LCL, 0x0000 }}}, 6112b6ece67Smhitch {{{ 0xffff, 0xfffe }}}, {{{ 0xffff, 0xfffe }}} /* COPEND, COPEND */ 6127bb75ba6Schopps }; 6137bb75ba6Schopps int std_pal_a2024_copper_list_len = sizeof (std_pal_a2024_copper_list) / sizeof (cop_t); 6147bb75ba6Schopps int std_pal_a2024_copper_list_size = sizeof (std_pal_a2024_copper_list); 6157bb75ba6Schopps 6167bb75ba6Schopps /* color tables for figuring color regs for 2024 */ 6177bb75ba6Schopps u_short a2024_color_value_line0[4] = { 6187bb75ba6Schopps A2024_L0_BLACK, 6197bb75ba6Schopps A2024_L0_DGREY, 6207bb75ba6Schopps A2024_L0_LGREY, 6217bb75ba6Schopps A2024_L0_WHITE 6227bb75ba6Schopps }; 6237bb75ba6Schopps 6247bb75ba6Schopps u_short a2024_color_value_line1[4] = { 6257bb75ba6Schopps A2024_L1_BLACK, 6267bb75ba6Schopps A2024_L1_DGREY, 6277bb75ba6Schopps A2024_L1_LGREY, 6287bb75ba6Schopps A2024_L1_WHITE 6297bb75ba6Schopps }; 6307bb75ba6Schopps 6317bb75ba6Schopps #endif /* GRF_A2024 */ 6327bb75ba6Schopps 6337bb75ba6Schopps u_short cc_default_colors[32] = { 6347bb75ba6Schopps 0xAAA, 0x000, 0x68B, 0xFFF, 6357bb75ba6Schopps 0x369, 0x963, 0x639, 0x936, 6367bb75ba6Schopps 0x000, 0x00F, 0x0F0, 0xF00, 6377bb75ba6Schopps 0x0FF, 0xFF0, 0xF0F, 0xFFF, 6387bb75ba6Schopps 0x000, 0x111, 0x222, 0x333, 6397bb75ba6Schopps 0x444, 0x555, 0x666, 0x777, 6407bb75ba6Schopps 0x888, 0x999, 0xAAA, 0xBBB, 6417bb75ba6Schopps 0xCCC, 0xDDD, 0xEEE, 0xFFF 6427bb75ba6Schopps }; 6437bb75ba6Schopps #if defined (GRF_A2024) 6447bb75ba6Schopps u_short cc_a2024_default_colors[4] = { 64578bd633dSchopps 0x2, /* LGREY */ 6467bb75ba6Schopps 0x0, /* BLACK */ 6477bb75ba6Schopps 0x3, /* WHITE */ 6487bb75ba6Schopps 0x1 /* DGREY */ 6497bb75ba6Schopps }; 6507bb75ba6Schopps #endif /* GRF_A2024 */ 651