EMILE/libmacos/macos/lowmem.h

38 lines
1.2 KiB
C
Raw Normal View History

2005-11-08 02:02:16 +00:00
/*
*
* (c) 2004, 2005 Laurent Vivier <Laurent@lvivier.info>
2005-11-08 02:02:16 +00:00
*
*/
#ifndef __MACOS_LOWMEM_H__
#define __MACOS_LOWMEM_H__
#include <macos/osutils.h>
#define VIA1Base (*(unsigned long*)0x01D4)
#define SCCRd (*(unsigned long*)0x01d8)
#define SCCWr (*(unsigned long*)0x01dc)
#define ScrnBase (*(unsigned long*)0x0824)
#define ROMBase (*(short**)0x02ae)
#define HWCfgFlags (*(unsigned long*)0x0B22)
#define SCSIBase (*(unsigned long*)0x0C00)
#define ASCBase (*(unsigned long*)0x0CC0)
#define VIA2Base (*(unsigned long*)0x0CEC)
#define PMgrBase (*(unsigned long*)0x0D18)
#define UnivROMBits (*(unsigned long*)0x0DD4)
#define TimeVIADB (*(unsigned short*)0x0cea)
#define TimeDBRA (*(unsigned short*)0x0D00)
#define MemTop (*(unsigned long*)0x0108)
#define Time (*(unsigned long*)0x020C)
#define KeyLast (*(unsigned short*)0x0184)
#define KeyTime (*(unsigned long*)0x0186)
#define KeyRepTime (*(unsigned long*)0x018A)
#define Ticks (*(unsigned long*)0x016A)
#define LMGetUnitTableEntryCount() (*(short*)0x1d2)
#define LMGetUTableBase() (*(unsigned long*)0x11c)
2007-09-29 21:26:08 +00:00
#define LMGetDrvQHdr() ((QHdrPtr)0x0308)
#define LMGetMainDevice() (*(GDHandle*)0x08A4)
#define LMGetBootDrive() (*(short*)0x0210)
2005-11-08 02:02:16 +00:00
#endif /* __MACOS_LOWMEM_H__ */