Previous 15994 Revisions Next

r2800 Monday 2nd June, 2008 at 05:21:52 UTC by Miodrag Milanović
[I8275] small fix
[src/mess/video]i8275.c

src/mess/video/i8275.c
r2799r2800
164164      i8275->status_reg &= ~I8275_STATUS_DMA_UNDERRUN;
165165      i8275->status_reg &= ~I8275_STATUS_IMPROPER_COMMAND;
166166      i8275->status_reg &= ~I8275_STATUS_LIGHT_PEN;
167      i8275->status_reg &= ~I8275_STATUS_INTERRUPT_REQUEST;
167      i8275->status_reg &= ~I8275_STATUS_INTERRUPT_REQUEST;     
168168   }
169169   else
170170   {
r2799r2800
332332   UINT8 lten = 0;
333333   UINT8 fifo_read = 0;
334334   for(line=0;line<=i8275->lines_per_row;line++) {
335      if (i8275->undeline_line_num & 0x08) {
336         vsp = (line==0 || line==i8275->lines_per_row) ? 1 : 0;
337      }
338335      // If line counter is 1 then select right values
339336      lc = (i8275->line_counter_mode==1) ? (line - 1) % i8275->lines_per_row : line;
340337      fifo_read = 0;
341338      for(xpos=0;xpos<=i8275->chars_per_row;xpos++) {
342339         UINT8 chr =   (i8275->buffer_used==0) ? i8275->row_buffer_2[xpos] : i8275->row_buffer_1[xpos];
340         if (i8275->undeline_line_num & 0x08) {
341            vsp = (line==0 || line==i8275->lines_per_row) ? 1 : 0;
342         }
343343
344344         if ((chr & 0x80)==0x80) {
345345            if ((chr & 0xc0)==0xc0) {
r2799r2800
388388            i8275->gpa,  // general purpose attribute code
389389            i8275->hlgt  // highlight
390390         );
391      }
391         vsp = 0;
392      }     
392393      i8275->ypos++;
393394   }
394395   i8275->current_row++;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team