Previous 199869 Revisions Next

r17463 Saturday 25th August, 2012 at 12:45:03 UTC by Wilbert Pol
Added BGx mode selection register (nw)
[src/emu/video]huc6272.c huc6272.h

trunk/src/emu/video/huc6272.c
r17462r17463
208208            m_page_setting = data;
209209            break;
210210
211         //
212         // xxxx ---- ---- ---- BG3 mode setting
213         // ---- xxxx ---- ---- BG2 mode setting
214         // ---- ---- xxxx ---- BG1 mode setting
215         // ---- ---- ---- xxxx BG0 mode setting
216         //
217         // 0001 - 4 color palette
218         // 0010 - 16 color palette
219         // 0011 - 256 color palette
220         // 0100 - 64k color
221         // 0101 - 16M color
222         // 1001 - 4 color palette block mode
223         // 1010 - 16 color palette block mode
224         // 1011 - 256 color palette block mode
225         // others - unused/invalid
226         case 0x10:
227            m_bgmode[0] = data & 0x0f;
228            m_bgmode[1] = ( data >> 4 ) & 0x0f;
229            m_bgmode[2] = ( data >> 8 ) & 0x0f;
230            m_bgmode[3] = ( data >> 12 ) & 0x0f;
231            break;
232
211233         case 0x13:
212234            m_micro_prg.addr = data & 0xf;
213235            break;
trunk/src/emu/video/huc6272.h
r17462r17463
5252   UINT16 m_kram_inc_r,m_kram_inc_w;
5353   UINT8 m_kram_page_r,m_kram_page_w;
5454   UINT32 m_page_setting;
55   UINT8 m_bgmode[4];
5556
5657   struct{
5758      UINT8 addr;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team