~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to src/drive/drivecpu.c

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.1.7 upstream) (9.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090331003715-i5yisvcfv7mgz3eh
Tags: 2.1.dfsg-1
* New major upstream release (closes: #495937).
* Add desktop files (closes: #501181).

Show diffs side-by-side

added added

removed removed

Lines of Context:
427
427
 
428
428
    /* If an opcode changes the I flag from 1 to 0, the 6510 needs
429
429
       one more opcode before it triggers the IRQ routine.  */
430
 
    if (cpu_clk >= irq_clk && !OPINFO_ENABLES_IRQ(*cs->last_opcode_info_ptr))
431
 
        return 1;
432
 
 
 
430
    if (cpu_clk >= irq_clk) {
 
431
        if (!OPINFO_ENABLES_IRQ(*cs->last_opcode_info_ptr)) {
 
432
            return 1;
 
433
        } else {
 
434
            cs->global_pending_int |= IK_IRQPEND;
 
435
        }
 
436
    }
433
437
    return 0;
434
438
}
435
439