home *** CD-ROM | disk | FTP | other *** search
/ develop, the CD; issue 1 / Apple_Develop_1989.bin / Compatibility / Sample / Sample.rsrc / CODE_2_Initialize.txt < prev    next >
Text File  |  1989-10-16  |  11KB  |  205 lines

  1. # near model CODE resource
  2. # jump table entries: 80-80 (1 of them)
  3. export_10:
  4. 00000000  4E56 FFE8                link       A6, -0x0018
  5. 00000004  48E7 1118                movem.l    -[A7], D3,D7,A3,A4
  6. 00000008  422D FD94                clr.b      [A5 - 0x26C]
  7. 0000000C  486D FE7E                pea.l      [A5 - 0x182]
  8. 00000010  A86E                     syscall    InitGraf
  9. 00000012  A8FE                     syscall    InitFonts
  10. 00000014  A912                     syscall    InitWindows
  11. 00000016  A930                     syscall    InitMenus
  12. 00000018  A9CC                     syscall    TEInit
  13. 0000001A  7000                     moveq.l    D0, 0x00
  14. 0000001C  2F00                     move.l     -[A7], D0
  15. 0000001E  A97B                     syscall    InitDialogs
  16. 00000020  A850                     syscall    InitCursor
  17. 00000022  7E01                     moveq.l    D7, 0x01
  18. label00000024:
  19. 00000024  558F                     subq.l     A7, 2
  20. 00000026  70FF                     moveq.l    D0, 0xFFFFFFFF
  21. 00000028  3F00                     move.w     -[A7], D0
  22. 0000002A  486E FFF0                pea.l      [A6 - 0x10]
  23. 0000002E  A971                     syscall    EventAvail
  24. 00000030  548F                     addq.l     A7, 2
  25. 00000032  5247                     addq.w     D7, 1
  26. 00000034  0C47 0003                cmpi.w     D7, 0x3
  27. 00000038  6FEA                     ble        -0x14 /* 00000024 */
  28. 0000003A  558F                     subq.l     A7, 2
  29. 0000003C  7001                     moveq.l    D0, 0x01
  30. 0000003E  3F00                     move.w     -[A7], D0
  31. 00000040  486D FD98                pea.l      [A5 - 0x268]
  32. 00000044  4EAD 006A                jsr        [A5 + 0x6A /* export_9 */]
  33. 00000048  4A6D FD9A                tst.w      [A5 - 0x266]
  34. 0000004C  548F                     addq.l     A7, 2
  35. 0000004E  6C04                     bge        +0x6 /* 00000054 */
  36. 00000050  4EAD 0032                jsr        [A5 + 0x32 /* export_2 */]
  37. label00000054:
  38. 00000054  7001                     moveq.l    D0, 0x01
  39. 00000056  2F00                     move.l     -[A7], D0
  40. 00000058  2F3C 0000 A860           move.l     -[A7], 0xA860
  41. 0000005E  4EBA 0126                jsr        [PC + 0x126 /* 00000186 */]
  42. 00000062  1B40 FD96                move.b     [A5 - 0x26A], D0
  43. 00000066  598F                     subq.l     A7, 4
  44. 00000068  2EB8 0130                move.l     [A7], [0x00000130 /* ApplLimit */]
  45. 0000006C  598F                     subq.l     A7, 4
  46. 0000006E  2EB8 02AA                move.l     [A7], [0x000002AA /* ApplZone */]
  47. 00000072  201F                     move.l     D0, [A7]+
  48. 00000074  221F                     move.l     D1, [A7]+
  49. 00000076  9280                     sub.l      D1, D0
  50. 00000078  0C81 0000 5400           cmpi.l     D1, 0x5400 /* 'T\0' */
  51. 0000007E  508F                     addq.l     A7, 8
  52. 00000080  6C04                     bge        +0x6 /* 00000086 */
  53. 00000082  4EAD 0032                jsr        [A5 + 0x32 /* export_2 */]
  54. label00000086:
  55. 00000086  486E FFE8                pea.l      [A6 - 0x18]
  56. 0000008A  486E FFEC                pea.l      [A6 - 0x14]
  57. 0000008E  4EAD 0062                jsr        [A5 + 0x62 /* export_8 */]
  58. 00000092  0CAE 0000 2000 FFE8      cmpi.l     [A6 - 0x18], 0x2000 /* ' \0' */
  59. 0000009A  6C04                     bge        +0x6 /* 000000A0 */
  60. 0000009C  4EAD 0032                jsr        [A5 + 0x32 /* export_2 */]
  61. label000000A0:
  62. 000000A0  598F                     subq.l     A7, 4
  63. 000000A2  4878 009C                push.l     0x9C
  64. 000000A6  4EAD 0042                jsr        [A5 + 0x42 /* export_4 */]
  65. 000000AA  265F                     movea.l    A3, [A7]+
  66. 000000AC  206E 0008                movea.l    A0, [A6 + 0x8]
  67. 000000B0  208B                     move.l     [A0], A3
  68. 000000B2  200B                     move.l     D0, A3
  69. 000000B4  6604                     bne        +0x6 /* 000000BA */
  70. 000000B6  4EAD 0032                jsr        [A5 + 0x32 /* export_2 */]
  71. label000000BA:
  72. 000000BA  598F                     subq.l     A7, 4
  73. 000000BC  3F3C 0080                move.w     -[A7], 0x80
  74. 000000C0  2F0B                     move.l     -[A7], A3
  75. 000000C2  70FF                     moveq.l    D0, 0xFFFFFFFF
  76. 000000C4  2F00                     move.l     -[A7], D0
  77. 000000C6  A9BD                     syscall    GetNewWindow
  78. 000000C8  265F                     movea.l    A3, [A7]+
  79. 000000CA  598F                     subq.l     A7, 4
  80. 000000CC  3F3C 0080                move.w     -[A7], 0x80
  81. 000000D0  A9C0                     syscall    GetNewMBar
  82. 000000D2  285F                     movea.l    A4, [A7]+
  83. 000000D4  200C                     move.l     D0, A4
  84. 000000D6  6604                     bne        +0x6 /* 000000DC */
  85. 000000D8  4EAD 0032                jsr        [A5 + 0x32 /* export_2 */]
  86. label000000DC:
  87. 000000DC  2F0C                     move.l     -[A7], A4
  88. 000000DE  A93C                     syscall    SetMenuBar
  89. 000000E0  2F0C                     move.l     -[A7], A4
  90. 000000E2  4EAD 004A                jsr        [A5 + 0x4A /* export_5 */]
  91. 000000E6  598F                     subq.l     A7, 4
  92. 000000E8  3F3C 0080                move.w     -[A7], 0x80
  93. 000000EC  A949                     syscall    GetMenuHandle
  94. 000000EE  2F3C 4452 5652           move.l     -[A7], 0x44525652 /* 'DRVR' */
  95. 000000F4  A94D                     syscall    AppendResMenu/AddResMenu
  96. 000000F6  A937                     syscall    DrawMenuBar
  97. 000000F8  1B7C 0001 FD92           move.b     [A5 - 0x26E], 0x1
  98. 000000FE  486D FD8A                pea.l      [A5 - 0x276]
  99. 00000102  4878 0080                push.l     0x80
  100. 00000106  4EBA 003A                jsr        [PC + 0x3A /* 00000142 */]
  101. 0000010A  4A00                     tst.b      D0
  102. 0000010C  508F                     addq.l     A7, 8
  103. 0000010E  6604                     bne        +0x6 /* 00000114 */
  104. 00000110  4EAD 0032                jsr        [A5 + 0x32 /* export_2 */]
  105. label00000114:
  106. 00000114  486D FD82                pea.l      [A5 - 0x27E]
  107. 00000118  4878 0081                push.l     0x81
  108. 0000011C  4EBA 0024                jsr        [PC + 0x24 /* 00000142 */]
  109. 00000120  4A00                     tst.b      D0
  110. 00000122  508F                     addq.l     A7, 8
  111. 00000124  6604                     bne        +0x6 /* 0000012A */
  112. 00000126  4EAD 0032                jsr        [A5 + 0x32 /* export_2 */]
  113. label0000012A:
  114. 0000012A  4CEE 1888 FFD8           movem.l    D3,D7,A3,A4, [A6 - 0x28]
  115. 00000130  4E5E                     unlink     A6
  116. 00000132  4E75                     rts
  117. 00000134  8A49                     or.w       D5, A1
  118. 00000136  6E69                     bgt        +0x6B /* 000001A1 */
  119. 00000138  7469                     moveq.l    D2, 0x69
  120. 0000013A  616C                     bsr        +0x6E /* 000001A8 */
  121. 0000013C  697A                     bvs        +0x7C /* 000001B8 */
  122. 0000013E  6500 0000                bcs        +0x2 /* 00000140 */
  123. // begin alternate branch 00000140-00000150
  124. label00000140:
  125. 00000140  0000 4E56                ori.b      D0, 0x56 /* 'V' */
  126. fn00000142: // (misaligned)
  127. 00000144  0000 48E7                ori.b      D0, 0xE7
  128. 00000148  0018 286E                ori.b      [A0]+, 0x6E /* 'n' */
  129. 0000014C  000C 598F                ori.b      A4, 0x8F
  130. // end alternate branch 00000140-00000150
  131. label00000140: // (misaligned)
  132. fn00000142:
  133. 00000142  4E56 0000                link       A6, 0
  134. 00000146  48E7 0018                movem.l    -[A7], A3,A4
  135. 0000014A  286E 000C                movea.l    A4, [A6 + 0xC]
  136. 0000014E  598F                     subq.l     A7, 4
  137. 00000150  2F3C 5245 4354           move.l     -[A7], 0x52454354 /* 'RECT' */
  138. 00000156  3F2E 000A                move.w     -[A7], [A6 + 0xA]
  139. 0000015A  A9A0                     syscall    GetResource
  140. 0000015C  265F                     movea.l    A3, [A7]+
  141. 0000015E  200B                     move.l     D0, A3
  142. 00000160  670C                     beq        +0xE /* 0000016E */
  143. 00000162  2053                     movea.l    A0, [A3]
  144. 00000164  224C                     movea.l    A1, A4
  145. 00000166  22D8                     move.l     [A1]+, [A0]+
  146. 00000168  22D8                     move.l     [A1]+, [A0]+
  147. 0000016A  7001                     moveq.l    D0, 0x01
  148. 0000016C  6002