Annotation of hatari/src/includes/m68000.h, revision 1.1.1.7

1.1       root        1: /*
1.1.1.5   root        2:   Hatari - m68000.h
                      3: 
                      4:   This file is distributed under the GNU Public License, version 2 or at
                      5:   your option any later version. Read the file gpl.txt for details.
1.1       root        6: */
                      7: 
1.1.1.5   root        8: #ifndef HATARI_M68000_H
                      9: #define HATARI_M68000_H
                     10: 
1.1.1.6   root       11: #include "sound.h"     /* for SoundCycles */
                     12: #include "sysdeps.h"
                     13: #include "memory.h"
                     14: #include "newcpu.h"    /* for regs */
                     15: 
                     16: #define Regs regs.regs  /* Ugly hack to glue the WinSTon sources to the UAE CPU core. */
                     17: #define SR regs.sr      /* Don't forget to call MakeFromSR() and MakeSR() */
                     18: 
                     19: 
                     20: extern void *PendingInterruptFunction;
                     21: extern short int PendingInterruptCount;
                     22: 
1.1.1.7 ! root       23: extern Uint32 BusErrorAddress;
1.1.1.5   root       24: extern Uint32 BusErrorPC;
1.1.1.6   root       25: extern BOOL bBusErrorReadWrite;
1.1.1.7 ! root       26: extern int nCpuFreqShift;
1.1.1.6   root       27: 
                     28: 
                     29: /*-----------------------------------------------------------------------*/
                     30: /*
                     31:   Add CPU cycles.
                     32:   NOTE: All times are rounded up to nearest 4 cycles.
                     33: */
                     34: static inline void M68000_AddCycles(int cycles)
                     35: {
1.1.1.7 ! root       36:        cycles = ((cycles + 3) & ~3) >> nCpuFreqShift;
        !            37:        PendingInterruptCount -= cycles;
        !            38:        SoundCycles += cycles;
1.1.1.6   root       39: }
1.1.1.5   root       40: 
1.1       root       41: extern void M68000_Reset(BOOL bCold);
                     42: extern void M68000_MemorySnapShot_Capture(BOOL bSave);
1.1.1.6   root       43: extern void M68000_BusError(unsigned long addr, BOOL bReadWrite);
                     44: extern void M68000_Exception(Uint32 ExceptionVector);
                     45: extern void M68000_WaitState(void);
1.1.1.5   root       46: 
                     47: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.