Mercurial > repos > blastem
comparison vdp.c @ 1869:dc94354eab66
Fix accuracy bugs used by Novedicus to detect BlastEm/Exodus
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 24 Jun 2019 23:47:16 -0700 |
parents | 84f16a804ce5 |
children | e75b788caedd |
comparison
equal
deleted
inserted
replaced
1868:bfacedbae5f0 | 1869:dc94354eab66 |
---|---|
3629 | 3629 |
3630 context->cd = VRAM_READ8; | 3630 context->cd = VRAM_READ8; |
3631 return context->prefetch; | 3631 return context->prefetch; |
3632 } | 3632 } |
3633 | 3633 |
3634 uint16_t vdp_test_port_read(vdp_context * context) | |
3635 { | |
3636 //TODO: Find out what actually gets returned here | |
3637 return context->test_port; | |
3638 } | |
3639 | |
3640 void vdp_adjust_cycles(vdp_context * context, uint32_t deduction) | 3634 void vdp_adjust_cycles(vdp_context * context, uint32_t deduction) |
3641 { | 3635 { |
3642 context->cycles -= deduction; | 3636 context->cycles -= deduction; |
3643 if (context->pending_vint_start >= deduction) { | 3637 if (context->pending_vint_start >= deduction) { |
3644 context->pending_vint_start -= deduction; | 3638 context->pending_vint_start -= deduction; |