@@ -97,7 +97,7 @@ Agnus::scheduleFirstBplEvent()
9797void
9898Agnus::scheduleNextBplEvent (isize hpos)
9999{
100- assert (hpos >= 0 && hpos < HPOS_CNT_NTSC );
100+ assert (hpos >= 0 && hpos < HPOS_CNT );
101101
102102 u8 next = sequencer.nextBplEvent [hpos];
103103 scheduleRel<SLOT_BPL>(DMA_CYCLES (next - pos.h ), sequencer.bplEvent [next]);
@@ -106,7 +106,7 @@ Agnus::scheduleNextBplEvent(isize hpos)
106106void
107107Agnus::scheduleBplEventForCycle (isize hpos)
108108{
109- assert (hpos >= pos.h && hpos < HPOS_CNT_NTSC );
109+ assert (hpos >= pos.h && hpos < HPOS_CNT );
110110
111111 if (sequencer.bplEvent [hpos] != EVENT_NONE) {
112112 scheduleRel<SLOT_BPL>(DMA_CYCLES (hpos - pos.h ), sequencer.bplEvent [hpos]);
@@ -188,8 +188,8 @@ Agnus::scheduleStrobe2Event()
188188void
189189Agnus::serviceREGEvent (Cycle until)
190190{
191- assert (pos.type != PAL || pos.h <= HPOS_CNT_PAL );
192- assert (pos.type == PAL || pos.h <= HPOS_CNT_NTSC );
191+ assert (pos.type != FORMAT_PAL || pos.h <= PAL::HPOS_CNT );
192+ assert (pos.type != FORMAT_NTSC || pos.h <= NTSC::HPOS_CNT );
193193
194194 if (syncEvent) {
195195
@@ -734,7 +734,7 @@ Agnus::serviceDASEvent(EventID id)
734734
735735 case DAS_EOL:
736736
737- assert (pos.h == HPOS_MAX_PAL || pos.h == HPOS_MAX_NTSC );
737+ assert (pos.h == PAL::HPOS_MAX || pos.h == NTSC::HPOS_MAX );
738738
739739 if (pos.h == PAL::HPOS_MAX && pos.lol ) {
740740
0 commit comments