wprt0_10.as 806 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. //Startup code for WIN32 port of FPK-Pascal 0.9.98
  2. //Written by P.Ozerski
  3. //1998
  4. // modified by Pierre Muller
  5. .text
  6. .globl _mainCRTStartup
  7. _mainCRTStartup:
  8. movb $1,U_SYSWIN32_ISCONSOLE
  9. call _FPC_EXE_Entry
  10. .globl _WinMainCRTStartup
  11. _WinMainCRTStartup:
  12. movb $0,U_SYSWIN32_ISCONSOLE
  13. call _FPC_EXE_Entry
  14. .globl asm_exit
  15. asm_exit:
  16. pushl %eax
  17. call exitprocess
  18. .text
  19. .globl exitprocess
  20. exitprocess:
  21. jmp *.L10
  22. .balign 4,144
  23. .text
  24. .balign 4,144
  25. .section .idata$2
  26. .rva .L7
  27. .long 0,0
  28. .rva .L6
  29. .rva .L8
  30. .section .idata$4
  31. .L7:
  32. .rva .L9
  33. .long 0
  34. .section .idata$5
  35. .L8:
  36. .section .idata$5
  37. .L10:
  38. .rva .L9
  39. .long 0
  40. .section .idata$6
  41. .L9:
  42. .short 0
  43. .ascii "ExitProcess\000"
  44. .balign 2,0
  45. .section .idata$7
  46. .L6:
  47. .ascii "kernel32.dll\000"