Texas Instruments TI89 Developer Guide - Page 87
Example, defined by macro
UPC - 033317198566
View all Texas Instruments TI89 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 87 highlights
Chapter 7: Flash Application Layout 45 This method is optional. The system implementation of this method displays the application's internal name, revision number, and date when its certificate was signed. 7.3.1.3.19. Attribute OO_APPSTRING (0x1000 and up) char const * Applications store pointers to their strings beginning with selector number 0x1000 defined by macro OO_APPSTRING. The menu system and language localizers expect application string numbers to be defined in the range 0x1000 - 0x17FF. 7.3.1.4. Example C source file pipes.c: #include "tiams.h" #include "pipesr.h" #include "pipes.h" /* Prototypes of functions in this source file */ void main(pFrame, PEvent); static short sabs(short); static short random(short, short); FRAME(pipesFrame, OO_SYSTEM_FRAME, 0, OO_APP_FLAGS, 6) ATTR(OO_APP_FLAGS, APP_INTERACTIVE) /* This is an interactive app */ ATTR(OO_APP_NAME, "Pipes") /* Name in [APPS] menu */ ATTR(OO_APP_PROCESS_EVENT, &main) /* Address of event handler */ ATTR(OO_APP_DEFAULT_MENU, &pipesMenu) /* Menu defined in pipesr.r */ /* Strings used in menu */ ATTR(OO_FIRST_STRING+P_Tools, "Tools") ATTR(OO_FIRST_STRING+P_Clear, "Clear") ENDFRAME pFrame PipesFrame = (pFrame)&pipesFrame;/* Pointer to object frame */ #define BOX_DIMENSION (15) #define MAX_BOX (25) WINDOW w; SCR_COORDS width, height; WIN_RECT box; /* Event handler - the OS calls this routine when an event has occurred */ void main(pFrame self, PEvent event) { static short deltaX = 1, deltaY = 1; static short boxcount = -1; TI-89 / TI-92 Plus Developer Guide Not for Distribution Beta Version January 26, 2001