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

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.5   root       23: extern Uint32 BusAddressLocation;
                     24: extern Uint32 BusErrorPC;
1.1.1.6 ! root       25: extern BOOL bBusErrorReadWrite;
        !            26: 
        !            27: 
        !            28: /*-----------------------------------------------------------------------*/
        !            29: /*
        !            30:   Add CPU cycles.
        !            31:   NOTE: All times are rounded up to nearest 4 cycles.
        !            32: */
        !            33: static inline void M68000_AddCycles(int cycles)
        !            34: {
        !            35:   cycles = (cycles + 3) & ~3;
        !            36:   PendingInterruptCount -= cycles;
        !            37:   SoundCycles += cycles;
        !            38: }
1.1.1.5   root       39: 
1.1       root       40: extern void M68000_Reset(BOOL bCold);
                     41: extern void M68000_MemorySnapShot_Capture(BOOL bSave);
1.1.1.6 ! root       42: extern void M68000_BusError(unsigned long addr, BOOL bReadWrite);
1.1       root       43: extern void M68000_AddressError(unsigned long addr);
1.1.1.6 ! root       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.