runtime.golden 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. # runtime.golden -- full FCML disassembly of the runtime's code region.
  2. #
  3. # GENERATED by tests/check_runtime.py --bless, then READ THE DIFF and commit.
  4. # Every line is "OFFSET BYTES MNEMONIC". This file is a deliberate
  5. # tripwire: any edit to Runtime.mod invalidates it, because inserting an
  6. # instruction renumbers everything after it, so you are forced to look at the
  7. # whole new listing and confirm you meant every change. See the "Re-baselining
  8. # the golden" section of check_runtime.py.
  9. #
  10. # Region: bytes 0..codeEnd of the runtime image (see the code/data split in
  11. # EmitData). Relative targets are absolute offsets within the runtime, which
  12. # the compiler adds to the runtime's load address when it emits a CALL.
  13. 0000 8B F0 mov si,ax
  14. 0002 8B 54 04 mov dx,word ptr [si+4h]
  15. 0005 8B 4C 06 mov cx,word ptr [si+6h]
  16. 0008 39 D1 cmp cx,dx
  17. 000A 76 0D jbe 19h
  18. 000C 89 D7 mov di,dx
  19. 000E 31 C0 xor ax,ax
  20. 0010 89 05 mov word ptr [di],ax
  21. 0012 83 C7 02 add di,2h
  22. 0015 39 CF cmp di,cx
  23. 0017 72 F5 jb 0eh
  24. 0019 1E push ds
  25. 001A 07 pop es
  26. 001B C3 ret
  27. 001C 31 C0 xor ax,ax
  28. 001E B4 4C mov ah,4ch
  29. 0020 CD 21 int 21h
  30. 0022 C3 ret
  31. 0023 C3 ret
  32. 0024 55 push bp
  33. 0025 8B EC mov bp,sp
  34. 0027 8B 46 04 mov ax,word ptr [bp+4h]
  35. 002A 83 F8 00 cmp ax,0h
  36. 002D 7D 0A jnl 39h
  37. 002F 50 push ax
  38. 0030 B2 2D mov dl,2dh
  39. 0032 B4 02 mov ah,2h
  40. 0034 CD 21 int 21h
  41. 0036 58 pop ax
  42. 0037 F7 D8 neg ax
  43. 0039 B9 0A 00 mov cx,0ah
  44. 003C BB 70 01 mov bx,170h
  45. 003F 89 DE mov si,bx
  46. 0041 31 D2 xor dx,dx
  47. 0043 F7 F1 div ax,cx
  48. 0045 80 C2 30 add dl,30h
  49. 0048 4E dec si
  50. 0049 88 14 mov byte ptr [si],dl
  51. 004B 83 F8 00 cmp ax,0h
  52. 004E 75 F1 jne 41h
  53. 0050 39 DE cmp si,bx
  54. 0052 74 09 je 5dh
  55. 0054 8A 14 mov dl,byte ptr [si]
  56. 0056 B4 02 mov ah,2h
  57. 0058 CD 21 int 21h
  58. 005A 46 inc si
  59. 005B EB F3 jmp 50h
  60. 005D 89 EC mov sp,bp
  61. 005F 5D pop bp
  62. 0060 C3 ret
  63. 0061 8B EC mov bp,sp
  64. 0063 8A 56 02 mov dl,byte ptr [bp+2h]
  65. 0066 89 EC mov sp,bp
  66. 0068 B4 02 mov ah,2h
  67. 006A CD 21 int 21h
  68. 006C C3 ret
  69. 006D 8B EC mov bp,sp
  70. 006F 83 7E 02 00 cmp word ptr [bp+2h],0h
  71. 0073 89 EC mov sp,bp
  72. 0075 75 05 jne 7ch
  73. 0077 BA 76 01 mov dx,176h
  74. 007A EB 03 jmp 7fh
  75. 007C BA 70 01 mov dx,170h
  76. 007F B4 09 mov ah,9h
  77. 0081 CD 21 int 21h
  78. 0083 C3 ret
  79. 0084 BA 80 01 mov dx,180h
  80. 0087 B4 09 mov ah,9h
  81. 0089 CD 21 int 21h
  82. 008B C3 ret
  83. 008C BA 7D 01 mov dx,17dh
  84. 008F B4 09 mov ah,9h
  85. 0091 CD 21 int 21h
  86. 0093 C3 ret
  87. 0094 5B pop bx
  88. 0095 31 C9 xor cx,cx
  89. 0097 8A 0F mov cl,byte ptr [bx]
  90. 0099 43 inc bx
  91. 009A B4 02 mov ah,2h
  92. 009C E3 07 jcxz 0a5h
  93. 009E 8A 07 mov al,byte ptr [bx]
  94. 00A0 CD 21 int 21h
  95. 00A2 43 inc bx
  96. 00A3 E2 F9 loop 9eh
  97. 00A5 FF E3 jmp bx
  98. 00A7 55 push bp
  99. 00A8 8B EC mov bp,sp
  100. 00AA 50 push ax
  101. 00AB 53 push bx
  102. 00AC 51 push cx
  103. 00AD 52 push dx
  104. 00AE 57 push di
  105. 00AF E8 B1 00 call 163h
  106. 00B2 3C 20 cmp al,20h
  107. 00B4 74 F9 je 0afh
  108. 00B6 3C 09 cmp al,9h
  109. 00B8 74 F5 je 0afh
  110. 00BA 3C 0D cmp al,0dh
  111. 00BC 74 F1 je 0afh
  112. 00BE 3C 0A cmp al,0ah
  113. 00C0 74 ED je 0afh
  114. 00C2 31 C9 xor cx,cx
  115. 00C4 3C 2D cmp al,2dh
  116. 00C6 75 06 jne 0ceh
  117. 00C8 41 inc cx
  118. 00C9 E8 97 00 call 163h
  119. 00CC EB 07 jmp 0d5h
  120. 00CE 3C 2B cmp al,2bh
  121. 00D0 75 03 jne 0d5h
  122. 00D2 E8 8E 00 call 163h
  123. 00D5 31 FF xor di,di
  124. 00D7 3C 30 cmp al,30h
  125. 00D9 72 1C jb 0f7h
  126. 00DB 3C 39 cmp al,39h
  127. 00DD 77 18 jnbe 0f7h
  128. 00DF 2C 30 sub al,30h
  129. 00E1 88 C6 mov dh,al
  130. 00E3 8B C7 mov ax,di
  131. 00E5 BB 0A 00 mov bx,0ah
  132. 00E8 F7 E3 mul bx
  133. 00EA 89 C7 mov di,ax
  134. 00EC B4 00 mov ah,0h
  135. 00EE 8A C6 mov al,dh
  136. 00F0 01 C7 add di,ax
  137. 00F2 E8 6E 00 call 163h
  138. 00F5 EB E0 jmp 0d7h
  139. 00F7 83 F9 00 cmp cx,0h
  140. 00FA 74 02 je 0feh
  141. 00FC F7 DF neg di
  142. 00FE 8B 5E 04 mov bx,word ptr [bp+4h]
  143. 0101 89 1D mov word ptr [di],bx
  144. 0103 5F pop di
  145. 0104 5A pop dx
  146. 0105 59 pop cx
  147. 0106 5B pop bx
  148. 0107 58 pop ax
  149. 0108 89 EC mov sp,bp
  150. 010A 5D pop bp
  151. 010B C3 ret
  152. 010C 55 push bp
  153. 010D 8B EC mov bp,sp
  154. 010F 50 push ax
  155. 0110 53 push bx
  156. 0111 E8 4F 00 call 163h
  157. 0114 88 C2 mov dl,al
  158. 0116 8B 5E 04 mov bx,word ptr [bp+4h]
  159. 0119 88 17 mov byte ptr [bx],dl
  160. 011B 5B pop bx
  161. 011C 58 pop ax
  162. 011D 89 EC mov sp,bp
  163. 011F 5D pop bp
  164. 0120 C3 ret
  165. 0121 55 push bp
  166. 0122 8B EC mov bp,sp
  167. 0124 50 push ax
  168. 0125 53 push bx
  169. 0126 51 push cx
  170. 0127 E8 39 00 call 163h
  171. 012A 31 C9 xor cx,cx
  172. 012C 3C 54 cmp al,54h
  173. 012E 74 12 je 142h
  174. 0130 3C 74 cmp al,74h
  175. 0132 74 0E je 142h
  176. 0134 3C 59 cmp al,59h
  177. 0136 74 0A je 142h
  178. 0138 3C 79 cmp al,79h
  179. 013A 74 06 je 142h
  180. 013C 3C 31 cmp al,31h
  181. 013E 74 02 je 142h
  182. 0140 EB 01 jmp 143h
  183. 0142 41 inc cx
  184. 0143 8B 5E 04 mov bx,word ptr [bp+4h]
  185. 0146 89 0F mov word ptr [bx],cx
  186. 0148 59 pop cx
  187. 0149 5B pop bx
  188. 014A 58 pop ax
  189. 014B 89 EC mov sp,bp
  190. 014D 5D pop bp
  191. 014E C3 ret
  192. 014F 50 push ax
  193. 0150 E8 10 00 call 163h
  194. 0153 3C 0D cmp al,0dh
  195. 0155 74 0A je 161h
  196. 0157 3C 0A cmp al,0ah
  197. 0159 74 06 je 161h
  198. 015B 3C 1A cmp al,1ah
  199. 015D 74 02 je 161h
  200. 015F EB EF jmp 150h
  201. 0161 58 pop ax
  202. 0162 C3 ret
  203. 0163 B4 08 mov ah,8h
  204. 0165 CD 21 int 21h
  205. 0167 C3 ret