home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
MM1
/
GRAPHICS
/
ssaver.lzh
/
SRC
/
calls.c
next >
Wrap
Text File
|
1995-11-04
|
2KB
|
103 lines
/* Screen Saver calls for the MM/1 & K-Windows */
/* 4/13/95 - bgp */
#if 0
#include <types.h>
#include <machine/reg.h>
#define I_SetStt 0x8e
#define I_GetStt 0x8d
#define DS_CurrScr 0xAF
/* Get current interactive device's window number
* - path = path to currently active window */
_gs_currscr(path,num)
int path, *num;
{
REGISTERS reg;
reg.d[0] = path;
reg.d[1] = DS_CurrScr;
if ((_osk(I_GetStt,®)) == -1)
return(-1);
*num = reg.d[2];
return(0);
}
#endif
#if 0
/* Get key sense bitmask */
#asm
_ss_select:
link a5,#0
movem.l d1-d2/a0,-(sp) this is for _sysret
move.l d1,d2 move x to d2
move.w #$8A,d1 DS_Select 0x8A
os9 I$SetStt do the call
bra _sysret
#endasm
#endif
#if 0
#asm
_gs_currscr:
link a5,#0
movem.l d1-d2/a0,-(sp) this is for _sysret
moveq.l #0,d2 zero out d2
move.w #$AF,d1 DS_CurScr 0xAF
os9 I$GetStt do the call
bcs.b deverr if error
move.l (sp),a0 get address of int off stack
move.l d2,(a0) stuff ret value into address
deverr
bra _sysret
#endasm
#endif
/* _gs_active() */
/* 4/13/95 - bgp */
#if 0
#include <machine/reg.h>
#define I_SetStt 0x8e
#define I_GetStt 0x8d
#define DS_Active 0xB0
/* Get active flag
* - path = path to currently active window */
_gs_active(path)
int path;
{
REGISTERS reg;
reg.d[0] = path;
reg.d[1] = DS_Active;
if ((_osk(I_GetStt,®)) == -1)
return(-1);
return(reg.d[2]);
}
#endif
#if 0
#asm
_gs_active:
link a5,#0
movem.l d1-d2/a0,-(sp) this is for _sysret
moveq.l #0,d2 zero out d2
move.w #$B0,d1 DS_CurScr 0xAF
os9 I$GetStt do the call
bra _sysret
#endasm
#endif