EXTERN InstallHook ;This is the application header definition area required for all apps. SEGMENT Header ;Field: Program length DB 080h,0Fh ;Length=0 (N/A for unsigned apps) DB 00h,00h,00h,00h ;Field: Program type DB 080h,012h DB 01h,04h ;Field: App ID DB 080h,021h ;Id = 1 DB 01h ;Field: App Build DB 080h,031h ;Build = 4 DB 0A4h ;Field: App Name DB 080h,048h ;App Name = APPNAME DB AppName ;Field: App Pages DB 080h,081h DB NumPages IFDEF NOSPLASH ;No default splash screen DB 080h,090h ENDIF ;Field: Date stamp - 5/12/1999 DB 003h,026h,009h,004h,004h,06Fh,01Bh,080h ;Dummy encrypted TI date stamp signature DB 002h ,00Dh ,040h DB 0A1h ,06Bh ,099h ,0F6h ,059h ,0BCh ,067h DB 0F5h ,085h ,09Ch ,009h ,06Ch ,00Fh ,0B4h ,003h ,09Bh ,0C9h DB 003h ,032h ,02Ch ,0E0h ,003h ,020h ,0E3h ,02Ch ,0F4h ,02Dh DB 073h ,0B4h ,027h ,0C4h ,0A0h ,072h ,054h ,0B9h ,0EAh ,07Ch DB 03Bh ,0AAh ,016h ,0F6h ,077h ,083h ,07Ah ,0EEh ,01Ah ,0D4h DB 042h ,04Ch ,06Bh ,08Bh ,013h ,01Fh ,0BBh ,093h ,08Bh ,0FCh DB 019h ,01Ch ,03Ch ,0ECh ,04Dh ,0E5h ,075h ;Field: Program Image length DB 80h,7Fh DB 0,0,0,0 ;Length=0, N/A DB 0,0,0,0 ;Reserved DB 0,0,0,0 ;Reserved DB 0,0,0,0 ;Reserved DB 0,0,0,0 ;Reserved IFDEF NOSPLASH ;The nosplash bytes from above are the padding we need ELSE ;We don't have nosplash bytes, so pad the application by two more bytes DB 0,0 ENDIF ;4080h jp StartApp ;4083h DB 0,0,0,0 ;4087h Header DB 96h,0E2h,0,1 DW InterfaceTable ;408Dh: Hard-coded routine table jr InstallHook InterfaceTable: DW (InterfaceTableEnd-InterfaceTable-1)/4 DW 0001h, RunAppLibData ;Type 0001h, RunAppLib data InterfaceTableEnd: RunAppLibData: DW (RunAppLibEntryPointsEnd-RunAppLibEntryPoints)/10 RunAppLibEntryPoints: DB "InstHook" DW InstallHook RunAppLibEntryPointsEnd: