wprt0.as 862 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. movl %esp,__stkptr
  9. call _FPC_EXE_Entry
  10. .globl _WinMainCRTStartup
  11. _WinMainCRTStartup:
  12. movb $0,U_SYSTEM_ISCONSOLE
  13. movl %esp,__stkptr
  14. call _FPC_EXE_Entry
  15. .globl asm_exit
  16. asm_exit:
  17. pushl %eax
  18. call exitprocess
  19. .text
  20. .globl exitprocess
  21. exitprocess:
  22. jmp *.L10
  23. .balign 4,144
  24. .text
  25. .balign 4,144
  26. .section .idata$2
  27. .rva .L7
  28. .long 0,0
  29. .rva .L6
  30. .rva .L8
  31. .section .idata$4
  32. .L7:
  33. .rva .L9
  34. .long 0
  35. .section .idata$5
  36. .L8:
  37. .section .idata$5
  38. .L10:
  39. .rva .L9
  40. .long 0
  41. .section .idata$6
  42. .L9:
  43. .short 0
  44. .ascii "ExitProcess\000"
  45. .balign 2,0
  46. .section .idata$7
  47. .L6:
  48. .ascii "kernel32.dll\000"
  49. .bss
  50. .comm __stkptr,4