diff --git a/libmacos/macos/quickdraw.h b/libmacos/macos/quickdraw.h index b995e5e..b205a35 100644 --- a/libmacos/macos/quickdraw.h +++ b/libmacos/macos/quickdraw.h @@ -9,7 +9,6 @@ #include #include - struct BitMap { void* baseAddr; int16_t rowBytes; @@ -143,5 +142,15 @@ static inline void InitGraf(void * port) " addq.l #4, %%sp" :: "g" (port) : "%%d0", UNPRESERVED_REGS); } + +static inline void SetEntries(short start, short count, CSpecArray aTable) +{ + asm("move.l %0, %%d0\n" + "move.l %1, %%d1\n" + "move.l %2, %%a0\n" + Trap(_SetEntries) + :: "g" (start), "g" (count), "g" (aTable) : + UNPRESERVED_REGS); +} #endif /* __mc68000__ */ #endif /* __MACOS_QUICKDRAW_H__ */ diff --git a/libmacos/macos/traps.h b/libmacos/macos/traps.h index ff40a5f..3d32bff 100644 --- a/libmacos/macos/traps.h +++ b/libmacos/macos/traps.h @@ -29,6 +29,7 @@ #define _HWPriv 0xA098 #define _SCSIDispatch 0xA815 #define _SysError 0xA9C9 +#define _SetEntries 0xAA3F /* * Inside Macintosh Volume I, I-94: Register Saving Conventions */