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

« back to all changes in this revision

Viewing changes to src/maincpu.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2005-02-01 11:30:26 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050201113026-6gy97mcqlg2ykg4z
Tags: upstream-1.16
ImportĀ upstreamĀ versionĀ 1.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
362
362
#define ROM_TRAP_HANDLER() \
363
363
   traps_handler()
364
364
 
365
 
#define JAM()                                                       \
366
 
   do {                                                             \
367
 
      unsigned int tmp;                                             \
368
 
                                                                    \
369
 
      EXPORT_REGISTERS();                                           \
370
 
      tmp = machine_jam("   " CPU_STR ": JAM at $%04X   ", reg_pc); \
371
 
      switch (tmp) {                                                \
372
 
        case JAM_RESET:                                             \
373
 
          DO_INTERRUPT(IK_RESET);                                   \
374
 
          break;                                                    \
375
 
        case JAM_HARD_RESET:                                        \
376
 
          mem_powerup();                                            \
377
 
          DO_INTERRUPT(IK_RESET);                                   \
378
 
          break;                                                    \
379
 
        case JAM_MONITOR:                                           \
380
 
          caller_space = e_comp_space;                              \
381
 
          monitor_startup();                                        \
382
 
          IMPORT_REGISTERS();                                       \
383
 
          break;                                                    \
384
 
        default:                                                    \
385
 
          CLK++;                                                    \
386
 
      }                                                             \
387
 
   } while (0)
 
365
#define JAM()                                                         \
 
366
    do {                                                              \
 
367
        unsigned int tmp;                                             \
 
368
                                                                      \
 
369
        EXPORT_REGISTERS();                                           \
 
370
        tmp = machine_jam("   " CPU_STR ": JAM at $%04X   ", reg_pc); \
 
371
        switch (tmp) {                                                \
 
372
          case JAM_RESET:                                             \
 
373
            DO_INTERRUPT(IK_RESET);                                   \
 
374
            break;                                                    \
 
375
          case JAM_HARD_RESET:                                        \
 
376
            mem_powerup();                                            \
 
377
            DO_INTERRUPT(IK_RESET);                                   \
 
378
            break;                                                    \
 
379
          case JAM_MONITOR:                                           \
 
380
            caller_space = e_comp_space;                              \
 
381
            monitor_startup();                                        \
 
382
            IMPORT_REGISTERS();                                       \
 
383
            break;                                                    \
 
384
          default:                                                    \
 
385
            CLK++;                                                    \
 
386
        }                                                             \
 
387
    } while (0)
388
388
 
389
389
#define CALLER e_comp_space
390
390
 
394
394
 
395
395
#include "6510core.c"
396
396
 
 
397
        maincpu_int_status->num_dma_per_opcode = 0;
 
398
#if 0
 
399
        if (CLK > 246171754)
 
400
            debug.maincpu_traceflg = 1;
 
401
#endif
397
402
    }
398
403
}
399
404
 
450
455
 
451
456
    /* FIXME: This is a mighty kludge to prevent VIC-II from stealing the
452
457
       wrong number of cycles.  */
453
 
    maincpu_rmw_flag = -1;
 
458
    maincpu_rmw_flag = 0;
454
459
 
455
460
    /* XXX: Assumes `CLOCK' is the same size as a `DWORD'.  */
456
461
    if (0