-
Notifications
You must be signed in to change notification settings - Fork 2
/
sstart_export.h
66 lines (52 loc) · 1.86 KB
/
sstart_export.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**************************************************
*** Project Title: Super Start (sstart) ***
*** Author: Greg Dietsche ***
*** Date: 11/21/2002 ***
*** Platforms: TI-89, TI89T, TI-92p, V200 ***
*** Supported Hardware Revisions: 1, 2, 3 ***
*** Description: An Application designed to ***
*** Simplify the launching of ppg ***
*** programs as well as normal ***
*** asm and TI-BASIC programs ***
***************************************************/
// $Id$
/*
This file is part of Super Start.
Super Start is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
You may use portions of the Super Start source code for your own projects
if you give me credit and a link to my website: http://calc.gregd.org/
in the project source code and documentation.
*/
#ifndef _SUPER_START_H_
#define _SUPER_START_H_
#ifndef _TIAMS_H
#error Please include tiams.h before this header file
#endif
#define TT_UNPACK(obj, src, dest) \
((unsigned short(*const)(char*,char*))OO_GetAppAttr(obj,OO_FIRST_APP_ATTR + 0))(src,dest)
/*
See the documentation for the FDL compiler (ghostware) to learn how to use these functions in a project
casting a pointer to a function is simple:
((return_type (* const)(parameter_1_type, parameter_2_type, ...))
*/
/*
//to make TT_UNPACK work in a tigcc project, use this:
//This requires a current version of TIGCC such as Version 0.94 Beta 19
#undef OO_GetAppAttr
#define OO_GetAppAttr _rom_call(void*,(short,unsigned long),3FC)
#undef OO_FIRST_APP_ATTR
#define OO_FIRST_APP_ATTR 0x10000
HANDLE sstart_appid=TIOS_EV_getAppID("sstart");
if(sstart_appid)
{
TT_UNPACK(sstart_appid, src, dest);
}
else
{
//sstart flash app not installed
}
MIN_AMS should be set to at least 204
*/
#endif