Lines Matching refs:cx4

18 	uint32_t oamptr = cx4.ram[0x626] << 2;  in CX4_op00_00()
32 cx4.ram[i] = 0xe0; in CX4_op00_00()
38 oamptr2 = 0x200 + (cx4.ram[0x626] >> 2); in CX4_op00_00()
40 if(!cx4.ram[0x620]) in CX4_op00_00()
45 sprcount = 128 - cx4.ram[0x626]; in CX4_op00_00()
46 offset = (cx4.ram[0x626] & 3) * 2; in CX4_op00_00()
50 for(i = cx4.ram[0x620]; i > 0 && sprcount > 0; i--, srcptr += 16) in CX4_op00_00()
56 sprname = cx4.ram[srcptr + 5]; in CX4_op00_00()
57 sprattr = cx4.ram[srcptr + 4] | cx4.ram[srcptr + 6]; in CX4_op00_00()
81 cx4.ram[oamptr ] = (uint8_t)x; in CX4_op00_00()
82 cx4.ram[oamptr + 1] = (uint8_t)y; in CX4_op00_00()
83 cx4.ram[oamptr + 2] = sprname + space.read_byte(spraddr + 3); in CX4_op00_00()
84 cx4.ram[oamptr + 3] = sprattr ^ (space.read_byte(spraddr) & 0xc0); in CX4_op00_00()
85 cx4.ram[oamptr2] &= ~(3 << offset); in CX4_op00_00()
88 cx4.ram[oamptr2] |= 1 << offset; in CX4_op00_00()
92 cx4.ram[oamptr2] |= 2 << offset; in CX4_op00_00()
107 cx4.ram[oamptr ] = (uint8_t)sprx; in CX4_op00_00()
108 cx4.ram[oamptr + 1] = (uint8_t)spry; in CX4_op00_00()
109 cx4.ram[oamptr + 2] = sprname; in CX4_op00_00()
110 cx4.ram[oamptr + 3] = sprattr; in CX4_op00_00()
111 cx4.ram[oamptr2] &= ~(3 << offset); in CX4_op00_00()
114 cx4.ram[oamptr2] |= 3 << offset; in CX4_op00_00()
118 cx4.ram[oamptr2] |= 2 << offset; in CX4_op00_00()
143 cx4.C4WFX2Val = CX4_read(0x1f83); in CX4_op00_05()
144 cx4.C4WFY2Val = CX4_read(0x1f86); in CX4_op00_05()
145 cx4.C4WFDist = CX4_read(0x1f89); in CX4_op00_05()
146 cx4.C4WFScale = CX4_read(0x1f8c); in CX4_op00_05()
151 cx4.C4WFXVal = CX4_readw(ptr + 1); in CX4_op00_05()
152 cx4.C4WFYVal = CX4_readw(ptr + 5); in CX4_op00_05()
153 cx4.C4WFZVal = CX4_readw(ptr + 9); in CX4_op00_05()
157 CX4_writew(machine, ptr + 1, cx4.C4WFXVal + 0x80); in CX4_op00_05()
158 CX4_writew(machine, ptr + 5, cx4.C4WFYVal + 0x50); in CX4_op00_05()
172 cx4.C4WFXVal = CX4_readw((CX4_read(ptr + 0) << 4) + 1); in CX4_op00_05()
173 cx4.C4WFYVal = CX4_readw((CX4_read(ptr + 0) << 4) + 5); in CX4_op00_05()
174 cx4.C4WFX2Val = CX4_readw((CX4_read(ptr + 1) << 4) + 1); in CX4_op00_05()
175 cx4.C4WFY2Val = CX4_readw((CX4_read(ptr + 1) << 4) + 5); in CX4_op00_05()
177 CX4_writew(machine, ptr2 + 0x600, cx4.C4WFDist ? cx4.C4WFDist : 1); in CX4_op00_05()
178 CX4_writew(machine, ptr2 + 0x602, cx4.C4WFXVal); in CX4_op00_05()
179 CX4_writew(machine, ptr2 + 0x605, cx4.C4WFYVal); in CX4_op00_05()
228 uint8_t pixel = (j & 1) ? (cx4.ram[srcptr] >> 4) : (cx4.ram[srcptr]); in CX4_op00_0b()
232 if(pixel & 1) cx4.ram[index ] |= mask; in CX4_op00_0b()
233 if(pixel & 2) cx4.ram[index + 1] |= mask; in CX4_op00_0b()
234 if(pixel & 4) cx4.ram[index + 16] |= mask; in CX4_op00_0b()
235 if(pixel & 8) cx4.ram[index + 17] |= mask; in CX4_op00_0b()