Mercurial > repos > blastem
comparison vdp.c @ 1173:d0f67c59b756
Fix H32 inconsistency
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Mon, 16 Jan 2017 22:30:21 -0800 |
parents | 14eb8ff4fb03 |
children | 500d8deea802 |
comparison
equal
deleted
inserted
replaced
1172:14eb8ff4fb03 | 1173:d0f67c59b756 |
---|---|
1958 memset(context->linebuf, 0, LINEBUF_SIZE); | 1958 memset(context->linebuf, 0, LINEBUF_SIZE); |
1959 render_sprite_cells(context); | 1959 render_sprite_cells(context); |
1960 CHECK_LIMIT | 1960 CHECK_LIMIT |
1961 case 132: | 1961 case 132: |
1962 render_sprite_cells(context); | 1962 render_sprite_cells(context); |
1963 if (context->flags & FLAG_DMA_RUN) { | |
1964 run_dma_src(context, -1); | |
1965 } | |
1966 context->hslot++; | |
1967 context->cycles += slot_cycles; | |
1963 vdp_advance_line(context); | 1968 vdp_advance_line(context); |
1964 if (context->vcounter == context->inactive_start) { | 1969 if (context->vcounter == context->inactive_start) { |
1965 context->hslot++; | |
1966 context->cycles += slot_cycles; | |
1967 return; | 1970 return; |
1968 } | 1971 } |
1969 CHECK_LIMIT | 1972 CHECK_ONLY |
1970 } | 1973 } |
1971 default: | 1974 default: |
1972 context->hslot++; | 1975 context->hslot++; |
1973 context->cycles += MCLKS_SLOT_H32; | 1976 context->cycles += MCLKS_SLOT_H32; |
1974 } | 1977 } |