mirror of
https://github.com/garrettsworkshop/MacIIROMDiskDriver.git
synced 2024-12-25 21:29:29 +00:00
Add volatile to pointer dereference in RDiskIsAPressed and RDiskIsRPressed
This commit is contained in:
parent
67c594b82b
commit
3cc7abb7f4
4
rdisk.h
4
rdisk.h
@ -14,8 +14,8 @@ OSErr RDiskReadXPRAM(short numBytes, short whichByte, Ptr dest) = {0x4840, 0x300
|
||||
#pragma parameter __D0 RDiskAddDrive(__D1, __D0, __A0)
|
||||
OSErr RDiskAddDrive(short drvrRefNum, short drvNum, DrvQElPtr dq) = {0x4840, 0x3001, 0xA04E};
|
||||
|
||||
static inline char RDiskIsRPressed() { return *((char*)0x175) & 0x80; }
|
||||
static inline char RDiskIsAPressed() { return *((char*)0x174) & 0x01; }
|
||||
static inline char RDiskIsRPressed() { return *((volatile char*)0x175) & 0x80; }
|
||||
static inline char RDiskIsAPressed() { return *((volatile char*)0x174) & 0x01; }
|
||||
|
||||
//#define RDISK_COMPRESS_ICON_ENABLE
|
||||
#define RDISK_ICON_SIZE (285)
|
||||
|
Loading…
Reference in New Issue
Block a user