Mercurial > repos > blastem
comparison vdp.c @ 476:5d7bc113653b
Clear the low 2 bits of CD when a register is written to
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 15 Sep 2013 23:49:09 -0700 |
parents | 50e0cb475294 |
children | 7fe655d4e2b7 |
comparison
equal
deleted
inserted
replaced
475:50e0cb475294 | 476:5d7bc113653b |
---|---|
1487 context->double_res = (value & (BIT_INTERLACE | BIT_DOUBLE_RES)) == (BIT_INTERLACE | BIT_DOUBLE_RES); | 1487 context->double_res = (value & (BIT_INTERLACE | BIT_DOUBLE_RES)) == (BIT_INTERLACE | BIT_DOUBLE_RES); |
1488 if (!context->double_res) { | 1488 if (!context->double_res) { |
1489 context->framebuf = context->oddbuf; | 1489 context->framebuf = context->oddbuf; |
1490 } | 1490 } |
1491 } | 1491 } |
1492 context->cd &= 0x3C; | |
1492 } | 1493 } |
1493 } else { | 1494 } else { |
1494 context->flags |= FLAG_PENDING; | 1495 context->flags |= FLAG_PENDING; |
1495 context->address = (context->address &0xC000) | (value & 0x3FFF); | 1496 context->address = (context->address &0xC000) | (value & 0x3FFF); |
1496 context->cd = (context->cd &0x3C) | (value >> 14); | 1497 context->cd = (context->cd &0x3C) | (value >> 14); |