wprt0.as 995 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. //Startup code for WIN32 port of Free Pascal
  2. //Written by P.Ozerski 1998
  3. // modified by Pierre Muller
  4. .text
  5. .globl _mainCRTStartup
  6. _mainCRTStartup:
  7. movb $1,U_SYSTEM_ISCONSOLE
  8. call _FPC_EXE_Entry
  9. .globl _WinMainCRTStartup
  10. _WinMainCRTStartup:
  11. movb $0,U_SYSTEM_ISCONSOLE
  12. call _FPC_EXE_Entry
  13. .globl asm_exit
  14. asm_exit:
  15. pushl %eax
  16. call exitprocess
  17. .text
  18. .globl exitprocess
  19. exitprocess:
  20. jmp *.L10
  21. .balign 4,144
  22. .text
  23. .balign 4,144
  24. .section .idata$2
  25. .rva .L7
  26. .long 0,0
  27. .rva .L6
  28. .rva .L8
  29. .section .idata$4
  30. .L7:
  31. .rva .L9
  32. .long 0
  33. .section .idata$5
  34. .L8:
  35. .section .idata$5
  36. .L10:
  37. .rva .L9
  38. .long 0
  39. .section .idata$6
  40. .L9:
  41. .short 0
  42. .ascii "ExitProcess\000"
  43. .balign 2,0
  44. .section .idata$7
  45. .L6:
  46. .ascii "kernel32.dll\000"
  47. // $Log$
  48. // Revision 1.4 2002-11-30 18:17:35 carl
  49. // + profiling support
  50. //
  51. // Revision 1.3 2002/07/28 20:43:51 florian
  52. // * several fixes for linux/powerpc
  53. // * several fixes to MT
  54. //
  55. //