Exemplo n.º 1
0
/* RR (HL) */
void Z80::Opc_cbxx_1e()
{
	env.wr8( getHL(), rr8( getHLi()));
	cycleCount += 15;
}
Exemplo n.º 2
0
/* RR A */
void Z80::Opc_cbxx_1f()
{
	A = rr8( A );
	cycleCount += 8;
}
Exemplo n.º 3
0
/* RR H */
void Z80::Opc_cbxx_1c()
{
	H = rr8( H );
	cycleCount += 8;
}
Exemplo n.º 4
0
/* RR L */
void Z80::Opc_cbxx_1d()
{
	L = rr8( L );
	cycleCount += 8;
}
Exemplo n.º 5
0
/* RR E */
void Z80::Opc_cbxx_1b()
{
	E = rr8( E );
	cycleCount += 8;
}
Exemplo n.º 6
0
/* RR D */
void Z80::Opc_cbxx_1a()
{
	D = rr8( D );
	cycleCount += 8;
}
Exemplo n.º 7
0
/* RR C */
void Z80::Opc_cbxx_19()
{
	C = rr8( C );
	cycleCount += 8;
}
Exemplo n.º 8
0
/* RR B */
void Z80::Opc_cbxx_18()
{
	B = rr8( B );
	cycleCount += 8;
}
Exemplo n.º 9
0
    r8(0), t8(1), r8(0), t8(1), r8(0), t8(1), r8(0), t8(1),
    r8(0), t8(1), r8(0), t8(1), r8(0), t8(1), r8(0), t8(1),
    r8(0), t8(1), r8(0), t8(1), r8(0), t8(1), r8(0), t8(1),
};

#define rr8(a,b,c,d,e,f,g,h)\
  a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h,\
  a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h,\
  a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h,\
  a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h,\
  a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h,\
  a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h,\
  a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h,\
  a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h, a,b,c,d,e,f,g,h
const byte byte_bit_run_length_5[256] = {
    rr8(0, 0, 0, 0, 1, 1, 2, 11)
};
const byte byte_bit_run_length_6[256] = {
    rr8(0, 0, 1, 10, 0, 0, 1, 10)
};
const byte byte_bit_run_length_7[256] = {
    rr8(0, 9, 0, 9, 0, 9, 0, 9)
};

/* Pointer tables indexed by bit number. */

const byte *const byte_bit_run_length[8] = {
    byte_bit_run_length_0, byte_bit_run_length_1,
    byte_bit_run_length_2, byte_bit_run_length_3,
    byte_bit_run_length_4, byte_bit_run_length_5,
    byte_bit_run_length_6, byte_bit_run_length_7