Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. Var
  2. LogoTimer: LongWord = 0;
  3.  
  4.  
  5. Procedure CreditScreen7A707C; stdcall;
  6. Begin
  7.  
  8. asm
  9.  
  10. cmp ecx,0
  11. jne @Start
  12.  
  13. mov LogoTimer, 0
  14.  
  15.  
  16. @START:
  17.  
  18. cmp ecx,4
  19. je @LogoPart1
  20. jmp @Label1
  21.  
  22.  
  23. @LogoPart1:
  24.  
  25. push $FF
  26. mov eax,$7AB81C // display main logo
  27. call eax
  28. add esp,$04
  29.  
  30. cmp LogoTimer, 180 // 60 frames * 3 seconds
  31. jne @EndofExternalFunc
  32.  
  33. push $20
  34. push $140
  35. push $198
  36. push $A0
  37. mov eax,$7AA820
  38. call eax
  39. add esp,$10
  40. mov eax,$7AC6F8
  41. call eax
  42. push $04
  43. mov eax,$7AA84D
  44. call eax
  45. add esp,$04
  46. mov [$F4F410],5 // set part 5
  47. mov LogoTimer, 0
  48.  
  49. jmp @EndofExternalFunc
  50.  
  51. @LABEL1:
  52.  
  53. cmp ecx,5
  54. je @LogoPart2
  55. jmp @End
  56.  
  57. @LogoPart2:
  58.  
  59. push $FF
  60. mov eax,$7AB81C // display main logo
  61. call eax
  62. add esp,$04
  63. mov eax, $7AC6F8 // display "square" text etc
  64. call eax
  65.  
  66. cmp LogoTimer, 960 // 60 frames * 16 seconds
  67. jne @EndofExternalFunc
  68.  
  69. mov ecx,[$F4F424]
  70. push ecx
  71. mov edx,[$F4F420]
  72. push edx
  73. mov eax,[$F4F41C]
  74. push eax
  75. mov ecx,[$F4F418]
  76. push ecx
  77. mov eax, $7AA820
  78. call eax
  79. add esp,$10
  80. push $0A
  81. mov eax, $7AA870
  82. call eax
  83. add esp,$04
  84. push 00
  85. push 00
  86. push 00
  87. push 00
  88. push 00
  89. push 00
  90. push 00
  91. push $3C
  92. push $C1
  93. mov eax, $740D80 // fade out music
  94. call eax
  95. add esp,$24
  96. mov [$F4F410],6 // Set part 6
  97. mov LogoTimer, 0
  98.  
  99. //jmp @EndofExternalFunc
  100.  
  101.  
  102. @EndofExternalFunc:
  103.  
  104. inc LogoTimer
  105. mov eax,$7A74EA // jump to end - this is outside of this function
  106. jmp eax
  107.  
  108.  
  109. @END:
  110. jmp dword ptr [ecx*4+$7A751A] // this will again jump outside of this function to the correct credit screen part.
  111.  
  112. { ECX of
  113. 0: Begin credit screen (set up music etc)
  114. 1: Credit screen fading in
  115. 2: Credit screen staff text
  116. 3: Explosion FMV playing
  117. 4: Logo without Square text
  118. 5: Logo with square text
  119. 6: Logo and square text fading out}
  120. end;
  121.  
  122. End;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement