Annotation of frontvm/m68000.h, revision 1.1.1.2

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

unix.superglobalmegacorp.com