Annotation of frontvm/m68000.h, revision 1.1

1.1     ! root        1: #ifndef _M68K_H
        !             2: #define _M68K_H
        !             3: 
        !             4: typedef unsigned int u32;
        !             5: typedef unsigned short u16;
        !             6: typedef unsigned char u8;
        !             7: typedef signed int s32;
        !             8: typedef signed short s16;
        !             9: typedef signed char s8;
        !            10: 
        !            11: typedef void (*HOSTCALL) ();
        !            12: extern HOSTCALL hcalls [];
        !            13: 
        !            14: extern char *STRam;
        !            15: extern int line_no;
        !            16: 
        !            17: extern int Init680x0 ();
        !            18: extern void Start680x0 ();
        !            19: extern void FlagException (int num);
        !            20: extern int GetReg (int reg);
        !            21: extern void SetReg (int reg, int val);
        !            22: extern unsigned int exception_handlers[32];
        !            23: 
        !            24: #define STMemory_ReadByte      MemReadByte
        !            25: #define STMemory_ReadWord      MemReadWord
        !            26: #define STMemory_ReadLong      MemReadLong
        !            27: #define STMemory_WriteByte     MemWriteByte
        !            28: #define STMemory_WriteWord     MemWriteWord
        !            29: #define STMemory_WriteLong     MemWriteLong
        !            30: 
        !            31: #define STRAM_ADDR(Var)  ((u32)STRam+((u32)Var&0x00ffffff))
        !            32: 
        !            33: extern char MemReadByte (unsigned int pos);
        !            34: extern short MemReadWord (unsigned int pos);
        !            35: extern int MemReadLong (unsigned int pos);
        !            36: extern void MemWriteByte (unsigned int pos, int val);
        !            37: extern void MemWriteWord (unsigned int pos, int val);
        !            38: extern void MemWriteLong (unsigned int pos, int val);
        !            39: 
        !            40: extern int GetXFlag ();
        !            41: extern int GetZFlag ();
        !            42: extern int GetNFlag ();
        !            43: extern int GetVFlag ();
        !            44: extern int GetCFlag ();
        !            45: 
        !            46: #endif /* _M68K_H */

unix.superglobalmegacorp.com