home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
mint
/
mntlib16.lzh
/
MNTLIB16
/
SYSVAR.C
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-03
|
491b
|
25 lines
#include <osbind.h>
long get_sysvar(void *var)
{
long ret;
long save_ssp;
save_ssp = Super(0L);
/* note: dont remove volatile, otherwise gcc will reorder these
statements and we get bombs
*/
ret = *((volatile long *)var);
(void)Super(save_ssp);
return ret;
}
void set_sysvar_to_long(void *var, long val)
{
long save_ssp;
save_ssp = Super(0L);
*((volatile long *)var) = val;
(void)Super(save_ssp);
}