home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 August / PCWorld_2000-08_cd.bin / Software / TemaCD / xbasic / xbpro.exe / xb / xxx / xstart.xxx < prev    next >
Text File  |  1995-10-09  |  1KB  |  45 lines

  1. ;
  2. ; ########################
  3. ; #####  xstart.xxx  #####
  4. ; ########################
  5. ;
  6. ; PROGRAM "xstart.xxx"    ' Startup code for standalone programs
  7. ; VERSION "0.0000"        ' read in by XBasic to create <standalone>.s file
  8. ;
  9. ; Max Reason
  10. ; Copyright 1993
  11. ; Coral Reef Development
  12. ; 1295 S. Kihei Rd, Suite 408
  13. ; Kihei, Maui, Hawaii  96753  USA
  14. ; (808) 875-8758
  15. ;
  16. .text
  17. .globl    _main            ; C entry label
  18. .globl    _WinMain        ; Windows entry label
  19. .globl    _WinMain@16        ; Windows entry label ???
  20. ;
  21. ;
  22. ; ########################
  23. ; #####  WinMain ()  #####
  24. ; ########################
  25. ;
  26. .align    8
  27. _main:                ; C entry label
  28. _WinMain:            ; Windows entry label
  29. _WinMain@16:            ; Windows entry label ???
  30. push    0x00000000        ; arg9 = reserved
  31. push    %_StartApplication    ; arg8 = %_StartApplication
  32. push    [ebp+20]        ; arg7 = nCmdShow
  33. push    [ebp+16]        ; arg6 = lpszCmdLine
  34. push    [ebp+12]        ; arg5 = hPrevInstance
  35. push    [ebp+ 8]        ; arg4 = hInstance
  36. push    _WinMain        ; arg3 = &WinMain() ===>> ##CODE
  37. push    [ebp-16]        ; arg2 = *envp[]
  38. push    [ebp-20]        ; arg1 = **argv[]
  39. push    [ebp-24]        ; arg0 = argc
  40. call    _XxxMain        ; XxxMain() is in xlib.s in xb.dll
  41. ret                ; arguments removed by WinMain() ???
  42. ;
  43. ;
  44. ;
  45.