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 >
Wrap
Text File
|
1989-10-16
|
11KB
|
205 lines
# near model CODE resource
# jump table entries: 80-80 (1 of them)
export_10:
00000000 4E56 FFE8 link A6, -0x0018
00000004 48E7 1118 movem.l -[A7], D3,D7,A3,A4
00000008 422D FD94 clr.b [A5 - 0x26C]
0000000C 486D FE7E pea.l [A5 - 0x182]
00000010 A86E syscall InitGraf
00000012 A8FE syscall InitFonts
00000014 A912 syscall InitWindows
00000016 A930 syscall InitMenus
00000018 A9CC syscall TEInit
0000001A 7000 moveq.l D0, 0x00
0000001C 2F00 move.l -[A7], D0
0000001E A97B syscall InitDialogs
00000020 A850 syscall InitCursor
00000022 7E01 moveq.l D7, 0x01
label00000024:
00000024 558F subq.l A7, 2
00000026 70FF moveq.l D0, 0xFFFFFFFF
00000028 3F00 move.w -[A7], D0
0000002A 486E FFF0 pea.l [A6 - 0x10]
0000002E A971 syscall EventAvail
00000030 548F addq.l A7, 2
00000032 5247 addq.w D7, 1
00000034 0C47 0003 cmpi.w D7, 0x3
00000038 6FEA ble -0x14 /* 00000024 */
0000003A 558F subq.l A7, 2
0000003C 7001 moveq.l D0, 0x01
0000003E 3F00 move.w -[A7], D0
00000040 486D FD98 pea.l [A5 - 0x268]
00000044 4EAD 006A jsr [A5 + 0x6A /* export_9 */]
00000048 4A6D FD9A tst.w [A5 - 0x266]
0000004C 548F addq.l A7, 2
0000004E 6C04 bge +0x6 /* 00000054 */
00000050 4EAD 0032 jsr [A5 + 0x32 /* export_2 */]
label00000054:
00000054 7001 moveq.l D0, 0x01
00000056 2F00 move.l -[A7], D0
00000058 2F3C 0000 A860 move.l -[A7], 0xA860
0000005E 4EBA 0126 jsr [PC + 0x126 /* 00000186 */]
00000062 1B40 FD96 move.b [A5 - 0x26A], D0
00000066 598F subq.l A7, 4
00000068 2EB8 0130 move.l [A7], [0x00000130 /* ApplLimit */]
0000006C 598F subq.l A7, 4
0000006E 2EB8 02AA move.l [A7], [0x000002AA /* ApplZone */]
00000072 201F move.l D0, [A7]+
00000074 221F move.l D1, [A7]+
00000076 9280 sub.l D1, D0
00000078 0C81 0000 5400 cmpi.l D1, 0x5400 /* 'T\0' */
0000007E 508F addq.l A7, 8
00000080 6C04 bge +0x6 /* 00000086 */
00000082 4EAD 0032 jsr [A5 + 0x32 /* export_2 */]
label00000086:
00000086 486E FFE8 pea.l [A6 - 0x18]
0000008A 486E FFEC pea.l [A6 - 0x14]
0000008E 4EAD 0062 jsr [A5 + 0x62 /* export_8 */]
00000092 0CAE 0000 2000 FFE8 cmpi.l [A6 - 0x18], 0x2000 /* ' \0' */
0000009A 6C04 bge +0x6 /* 000000A0 */
0000009C 4EAD 0032 jsr [A5 + 0x32 /* export_2 */]
label000000A0:
000000A0 598F subq.l A7, 4
000000A2 4878 009C push.l 0x9C
000000A6 4EAD 0042 jsr [A5 + 0x42 /* export_4 */]
000000AA 265F movea.l A3, [A7]+
000000AC 206E 0008 movea.l A0, [A6 + 0x8]
000000B0 208B move.l [A0], A3
000000B2 200B move.l D0, A3
000000B4 6604 bne +0x6 /* 000000BA */
000000B6 4EAD 0032 jsr [A5 + 0x32 /* export_2 */]
label000000BA:
000000BA 598F subq.l A7, 4
000000BC 3F3C 0080 move.w -[A7], 0x80
000000C0 2F0B move.l -[A7], A3
000000C2 70FF moveq.l D0, 0xFFFFFFFF
000000C4 2F00 move.l -[A7], D0
000000C6 A9BD syscall GetNewWindow
000000C8 265F movea.l A3, [A7]+
000000CA 598F subq.l A7, 4
000000CC 3F3C 0080 move.w -[A7], 0x80
000000D0 A9C0 syscall GetNewMBar
000000D2 285F movea.l A4, [A7]+
000000D4 200C move.l D0, A4
000000D6 6604 bne +0x6 /* 000000DC */
000000D8 4EAD 0032 jsr [A5 + 0x32 /* export_2 */]
label000000DC:
000000DC 2F0C move.l -[A7], A4
000000DE A93C syscall SetMenuBar
000000E0 2F0C move.l -[A7], A4
000000E2 4EAD 004A jsr [A5 + 0x4A /* export_5 */]
000000E6 598F subq.l A7, 4
000000E8 3F3C 0080 move.w -[A7], 0x80
000000EC A949 syscall GetMenuHandle
000000EE 2F3C 4452 5652 move.l -[A7], 0x44525652 /* 'DRVR' */
000000F4 A94D syscall AppendResMenu/AddResMenu
000000F6 A937 syscall DrawMenuBar
000000F8 1B7C 0001 FD92 move.b [A5 - 0x26E], 0x1
000000FE 486D FD8A pea.l [A5 - 0x276]
00000102 4878 0080 push.l 0x80
00000106 4EBA 003A jsr [PC + 0x3A /* 00000142 */]
0000010A 4A00 tst.b D0
0000010C 508F addq.l A7, 8
0000010E 6604 bne +0x6 /* 00000114 */
00000110 4EAD 0032 jsr [A5 + 0x32 /* export_2 */]
label00000114:
00000114 486D FD82 pea.l [A5 - 0x27E]
00000118 4878 0081 push.l 0x81
0000011C 4EBA 0024 jsr [PC + 0x24 /* 00000142 */]
00000120 4A00 tst.b D0
00000122 508F addq.l A7, 8
00000124 6604 bne +0x6 /* 0000012A */
00000126 4EAD 0032 jsr [A5 + 0x32 /* export_2 */]
label0000012A:
0000012A 4CEE 1888 FFD8 movem.l D3,D7,A3,A4, [A6 - 0x28]
00000130 4E5E unlink A6
00000132 4E75 rts
00000134 8A49 or.w D5, A1
00000136 6E69 bgt +0x6B /* 000001A1 */
00000138 7469 moveq.l D2, 0x69
0000013A 616C bsr +0x6E /* 000001A8 */
0000013C 697A bvs +0x7C /* 000001B8 */
0000013E 6500 0000 bcs +0x2 /* 00000140 */
// begin alternate branch 00000140-00000150
label00000140:
00000140 0000 4E56 ori.b D0, 0x56 /* 'V' */
fn00000142: // (misaligned)
00000144 0000 48E7 ori.b D0, 0xE7
00000148 0018 286E ori.b [A0]+, 0x6E /* 'n' */
0000014C 000C 598F ori.b A4, 0x8F
// end alternate branch 00000140-00000150
label00000140: // (misaligned)
fn00000142:
00000142 4E56 0000 link A6, 0
00000146 48E7 0018 movem.l -[A7], A3,A4
0000014A 286E 000C movea.l A4, [A6 + 0xC]
0000014E 598F subq.l A7, 4
00000150 2F3C 5245 4354 move.l -[A7], 0x52454354 /* 'RECT' */
00000156 3F2E 000A move.w -[A7], [A6 + 0xA]
0000015A A9A0 syscall GetResource
0000015C 265F movea.l A3, [A7]+
0000015E 200B move.l D0, A3
00000160 670C beq +0xE /* 0000016E */
00000162 2053 movea.l A0, [A3]
00000164 224C movea.l A1, A4
00000166 22D8 move.l [A1]+, [A0]+
00000168 22D8 move.l [A1]+, [A0]+
0000016A 7001 moveq.l D0, 0x01
0000016C 6002