Page 1 of 1

Solve the problem of Mirroring of IO

Posted: Mon Aug 21, 2006 6:39 am
by dreampeppers99
This solve the problem of mirror of the IO registers ?

if (endereco >= 0x2000 && endereco <= 0x2007) //Resolvendo o segundo problema. Quando estou escrevendo nos I/O.
{
memoria[endereco >> 8,endereco % V256] = dado;
for (int i = 0; i < 0x3FFF; i += 8) //fazendo o espelhamento somente no byte que se escreve.
{
memoria[(endereco + i) >> 8,(endereco + i) % V256] = dado;
}
}

Posted: Mon Aug 21, 2006 1:34 pm
by 85cocoa
Portuguese(?)-language discussion should probably go in the NESdev International forum section, but somebody might be able to help you here if you explain what your variable names/comments mean.