home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LEGS
/
LEGS.iso
/
Stacks
/
Selection
/
Selection.rsrc
/
XFCN_13017_maxDepth.txt
< prev
next >
Wrap
Text File
|
1994-02-05
|
21KB
|
372 lines
start:
00000000 4E56 FEE8 link A6, -0x0118
00000004 48E7 0318 movem.l -[A7], D6,D7,A3,A4
00000008 47EE FEF0 lea.l A3, [A6 - 0x110]
0000000C 286E 0008 movea.l A4, [A6 + 0x8]
00000010 3C14 move.w D6, [A4]
00000012 7E01 moveq.l D7, 0x01
00000014 4A46 tst.w D6
00000016 6F2C ble +0x2E /* 00000044 */
00000018 206C 0002 movea.l A0, [A4 + 0x2]
0000001C 2050 movea.l A0, [A0]
0000001E 7021 moveq.l D0, 0x21
00000020 B010 cmp.b D0, [A0]
00000022 6610 bne +0x12 /* 00000034 */
00000024 487A 00FC pea.l [PC + 0xFC /* 00000122, value 0xA9204275 */]
00000028 4EBA 0120 jsr [PC + 0x120 /* 0000014A */]
0000002C 2940 0042 move.l [A4 + 0x42], D0
00000030 584F addq.w A7, 4
00000032 6064 bra +0x66 /* 00000098 */
label00000034:
00000034 487A 007C pea.l [PC + 0x7C /* 000000B2, value 0x4D617844 'MaxD', pstring "axDepth()\rReturns current depth of the deepest active monitor. Errors return" */]
00000038 4EBA 0110 jsr [PC + 0x110 /* 0000014A */]
0000003C 2940 0042 move.l [A4 + 0x42], D0
00000040 584F addq.w A7, 4
00000042 6054 bra +0x56 /* 00000098 */
label00000044:
00000044 558F subq.l A7, 2
00000046 7001 moveq.l D0, 0x01
00000048 3F00 move.w -[A7], D0
0000004A 486E FFF0 pea.l [A6 - 0x10]
0000004E 4EBA 014C jsr [PC + 0x14C /* 0000019C */]
00000052 4A5F tst.w [A7]+
00000054 4A2E FFF9 tst.b [A6 - 0x7]
00000058 6726 beq +0x28 /* 00000080 */
0000005A 2078 09EE movea.l A0, [0x000009EE /* GrayRgn */]
0000005E 2050 movea.l A0, [A0]
00000060 43EE FEE8 lea.l A1, [A6 - 0x118]
00000064 5488 addq.l A0, 2
00000066 22D8 move.l [A1]+, [A0]+
00000068 22D8 move.l [A1]+, [A0]+
0000006A 598F subq.l A7, 4
0000006C 486E FEE8 pea.l [A6 - 0x118]
00000070 AA27 syscall GetMaxDevice
00000072 205F movea.l A0, [A7]+
00000074 2050 movea.l A0, [A0]
00000076 2068 0016 movea.l A0, [A0 + 0x16]
0000007A 2050 movea.l A0, [A0]
0000007C 3E28 0020 move.w D7, [A0 + 0x20]
label00000080:
00000080 48C7 ext.l D7
00000082 2F07 move.l -[A7], D7
00000084 2F0B move.l -[A7], A3
00000086 4EBA 027E jsr [PC + 0x27E /* 00000306 */]
0000008A 598F subq.l A7, 4
0000008C 2F0C move.l -[A7], A4
0000008E 2F0B move.l -[A7], A3
00000090 4EBA 02BC jsr [PC + 0x2BC /* 0000034E */]
00000094 295F 0042 move.l [A4 + 0x42], [A7]+
label00000098:
00000098 4CEE 18C0 FED8 movem.l D6,D7,A3,A4, [A6 - 0x128]
0000009E 4E5E unlink A6
000000A0 2E9F move.l [A7], [A7]+
000000A2 4E75 rts
000000A4 8A45 or.w D5, D5
000000A6 4E54 5259 link A4, -0xFFFFADA7
000000AA 504F addq.w A7, 8
000000AC 494E chk.w D4, A6
000000AE 5400 addq.b D0, 2
000000B0 0098 4D61 7844 ori.l [A0]+, 0x4D617844 /* 'MaxD' */
000000B6 6570 bcs +0x72 /* 00000128 */
000000B8 7468 moveq.l D2, 0x68
000000BA 2829 0D52 move.l D4, [A1 + 0xD52]
000000BE 6574 bcs +0x76 /* 00000134 */
000000C0 7572 moveq.l D2, 0x72
000000C2 6E73 bgt +0x75 /* 00000137 */
000000C4 2063 movea.l A0, -[A3]
000000C6 7572 moveq.l D2, 0x72
000000C8 7265 moveq.l D1, 0x65
000000CA 6E74 bgt +0x76 /* 00000140 */
000000CC 2064 movea.l A0, -[A4]
000000CE 6570 bcs +0x72 /* 00000140 */
000000D0 7468 moveq.l D2, 0x68
000000D2 206F 6620 movea.l A0, [A7 + 0x6620]
000000D6 7468 moveq.l D2, 0x68
000000D8 6520 bcs +0x22 /* 000000FA */
000000DA 6465 bcc +0x67 /* 00000141 */
000000DC 6570 bcs +0x72 /* 0000014E */
000000DE 6573 bcs +0x75 /* 00000153 */
000000E0 7420 moveq.l D2, 0x20
000000E2 6163 bsr +0x65 /* 00000147 */
000000E4 7469 moveq.l D2, 0x69
000000E6 7665 moveq.l D3, 0x65
000000E8 206D 6F6E movea.l A0, [A5 + 0x6F6E]
000000EC 6974 bvs +0x76 /* 00000162 */
000000EE 6F72 ble +0x74 /* 00000162 */
000000F0 2E20 move.l D7, -[A0]
000000F2 2045 movea.l A0, D5
000000F4 7272 moveq.l D1, 0x72
000000F6 6F72 ble +0x74 /* 0000016A */
000000F8 7320 moveq.l D1, 0x20
label000000FA:
000000FA 7265 moveq.l D1, 0x65
000000FC 7475 moveq.l D2, 0x75
000000FE 726E moveq.l D1, 0x6E
00000100 6564 bcs +0x66 /* 00000166 */
00000102 2069 6E20 movea.l A0, [A1 + 0x6E20]
00000106 7468 moveq.l D2, 0x68
00000108 6520 bcs +0x22 /* 0000012A */
0000010A 4843 swap.w D3
0000010C 2067 movea.l A0, -[A7]
0000010E 6C6F bge +0x71 /* 0000017F */
00000110 6261 bhi +0x63 /* 00000173 */
00000112 6C20 bge +0x22 /* 00000134 */
00000114 D267 add.w D1, -[A7]
00000116 5843 addq.w D3, 4
00000118 4D44 chk.w D6, D4
0000011A 4572 726F chk.w D2, [A2 + D7.w * 2 + 0x6F]
0000011E 72D3 moveq.l D1, 0xFFFFFFD3
00000120 2E00 move.l D7, D0
00000122 A920 syscall BringToFront
00000124 4275 6E67 clr.w [A5 + D6 * 8 + 0x67]
label00000128:
00000128 4461 neg.w -[A1]
label0000012A:
0000012A 6262 bhi +0x64 /* 0000018E */
0000012C 6120 bsr +0x22 /* 0000014E */
0000012E 5072 6F64 addq.w <<invalid full ext with I/IS == 4>>, 8
00000132 7563 moveq.l D2, 0x63
label00000134:
00000134 7469 moveq.l D2, 0x69
00000136 6F6E ble +0x70 /* 000001A6 */
00000138 7320 moveq.l D1, 0x20
0000013A 3139 3931 2C20 move.w -[A0], [0x39312C20]
label00000140:
00000140 2076 6572 2031 2E30 2E00 movea.l A0, [[A6 + 0x20312E30] + 0x2E00]
fn0000014A:
0000014A 4E56 FFFC link A6, -0x0004
fn0000014E:
0000014E 48E7 0118 movem.l -[A7], D7,A3,A4
00000152 266E 0008 movea.l A3, [A6 + 0x8]
00000156 2F0B move.l -[A7], A3
00000158 4EBA 01D8 jsr [PC + 0x1D8 /* 00000332 */]
0000015C 2E00 move.l D7, D0
0000015E 5287 addq.l D7, 1
00000160 2007 move.l D0, D7
label00000162:
00000162 A122 syscall NewHandle, flags=1
00000164 2848 movea.l A4, A0
label00000166:
00000166 200C move.l D0, A4
00000168 584F addq.w A7, 4
label0000016A:
0000016A 6716 beq +0x18 /* 00000182 */
0000016C 2D4B FFFC move.l [A6 - 0x4], A3
00000170 598F subq.l A7, 4
00000172 2F14 move.l -[A7], [A4]
00000174 4EBA 01A2 jsr [PC + 0x1A2 /* 00000318 */]
00000178 225F movea.l A1, [A7]+
0000017A 2007 move.l D0, D7
0000017C 206E FFFC movea.l A0, [A6 - 0x4]
00000180 A02E syscall BlockMove/BlockMoveData
label00000182:
00000182 200C move.l D0, A4
00000184 4CEE 1880 FFF0 movem.l D7,A3,A4, [A6 - 0x10]
0000018A 4E5E unlink A6
0000018C 4E75 rts
label0000018E:
0000018E 8A43 or.w D5, D3
00000190 5374 7254 subq.w [A4 + D7.w * 2 + 0x54], 1
00000194 6F48 ble +0x4A /* 000001DE */
00000196 616E bsr +0x70 /* 00000206 */
00000198 6400 0000 bcc +0x2 /* 0000019A */
// begin alternate branch 0000019A-000001AA
label0000019A:
0000019A 0000 4A78 ori.b D0, 0x78 /* 'x' */
fn0000019C: // (misaligned)
0000019E 028E 6B22 303C andi.l A6, 0x6B22303C /* 'k\"0<' */
000001A4 0090 A346 2248 ori.l [A0], 0xA3462248
// end alternate branch 0000019A-000001AA
label0000019A: // (misaligned)
fn0000019C:
0000019C 4A78 028E tst.w [0x0000028E /* ROM85 */]
000001A0 6B22 bmi +0x24 /* 000001C4 */
000001A2 303C 0090 move.w D0, 0x90
label000001A6:
000001A6 A346 syscall GetOSTrapAddress, flags=3
000001A8 2248 movea.l A1, A0
000001AA 303C 009F move.w D0, 0x9F
000001AE A746 syscall GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
000001B0 B3C8 cmpa.l A1, A0
000001B2 6710 beq +0x12 /* 000001C4 */
000001B4 225F movea.l A1, [A7]+
000001B6 205F movea.l A0, [A7]+
000001B8 301F move.w D0, [A7]+
000001BA 2F09 move.l -[A7], A1
000001BC A090 syscall SysEnvirons
000001BE 3F40 0004 move.w [A7 + 0x4], D0
000001C2 4E75 rts
label000001C4:
000001C4 206F 0004 movea.l A0, [A7 + 0x4]
000001C8 303C 0001 move.w D0, 0x1
000001CC 2248 movea.l A1, A0
000001CE 6006 bra +0x8 /* 000001D6 */
000001D0 0313 btst [A3], D1
000001D2 0B02 btst D2, D5
000001D4 0100 btst D0, D0
label000001D6:
000001D6 303C 0010 move.w D0, 0x10
000001DA E240 asr D0.w, 1
000001DC 5340 subq.w D0, 1
label000001DE:
000001DE 4258 clr.w [A0]+
000001E0 51C8 FFFC dbf D0, -0x6 /* 000001DE */
000001E4 32BC 0001 move.w [A1], 0x1
000001E8 2078 02AE movea.l A0, [0x000002AE /* ROMBase */]
000001EC 337C FFFE 0002 move.w [A1 + 0x2], 0xFFFE
000001F2 0C28 00FF 0009 cmpi.b [A0 + 0x9], 0xFF
000001F8 6742 beq +0x44 /* 0000023C */
000001FA 4A28 0008 tst.b [A0 + 0x8]
000001FE 6E20 bgt +0x22 /* 00000220 */
00000200 337C FFFF 0002 move.w [A1 + 0x2], 0xFFFF
fn00000206:
00000206 4A78 028E tst.w [0x0000028E /* ROM85 */]
0000020A 6B30 bmi +0x32 /* 0000023C */
0000020C 337C 0001 0002 move.w [A1 + 0x2], 0x1
00000212 4A78 0B22 tst.w [0x00000B22 /* HWCfgFlags */]
00000216 6A24 bpl +0x26 /* 0000023C */
00000218 337C 0002 0002 move.w [A1 + 0x2], 0x2
0000021E 601C bra +0x1E /* 0000023C */
label00000220:
00000220 4269 0002 clr.w [A1 + 0x2]
00000224 0C28 0002 0008 cmpi.b [A0 + 0x8], 0x2
0000022A 6E10 bgt +0x12 /* 0000023C */
0000022C 6708 beq +0xA /* 00000236 */
0000022E 337C 0004 0002 move.w [A1 + 0x2], 0x4
00000234 6006 bra +0x8 /* 0000023C */
label00000236:
00000236 337C 0003 0002 move.w [A1 + 0x2], 0x3
label0000023C:
0000023C 4269 0004 clr.w [A1 + 0x4]
00000240 0C38 0002 012F cmpi.b [0x0000012F /* CPUFlag */], 0x2
00000246 6E0A bgt +0xC /* 00000252 */
00000248 1038 012F move.b D0, [0x0000012F /* CPUFlag */]
0000024C 5240 addq.w D0, 1
0000024E 1340 0007 move.b [A1 + 0x7], D0
label00000252:
00000252 4A78 028E tst.w [0x0000028E /* ROM85 */]
00000256 6B0E bmi +0x10 /* 00000266 */
00000258 0838 0004 0B22 btst.b [0x00000B22 /* HWCfgFlags */], 0x4
0000025E 6706 beq +0x8 /* 00000266 */
00000260 137C 0001 0008 move.b [A1 + 0x8], 0x1
label00000266:
00000266 0C78 3FFF 028E cmpi.w [0x0000028E /* ROM85 */], 0x3FFF
0000026C 6206 bhi +0x8 /* 00000274 */
0000026E 137C 0001 0009 move.b [A1 + 0x9], 0x1
label00000274:
00000274 1038 021E move.b D0, [0x0000021E /* KbdType */]
00000278 41FA FF5B lea.l A0, [PC - 0xA5 /* 000001D5, value 0x303C00 '0<\0' */]
0000027C 323C 0004 move.w D1, 0x4
label00000280:
00000280 B020 cmp.b D0, -[A0]
00000282 57C9 FFFC dbeq D1, -0x6 /* 00000280 */
00000286 5241 addq.w D1, 1
00000288 3341 000A move.w [A1 + 0xA], D1
0000028C 4A38 0291 tst.b [0x00000291 /* PortBUse */]
00000290 6B18 bmi +0x1A /* 000002AA */
00000292 1238 01FB move.b D1, [0x000001FB /* SPConfig */]
00000296 0201 000F andi.b D1, 0xF
0000029A 0C01 0001 cmpi.b D1, 0x1
0000029E 660A bne +0xC /* 000002AA */
000002A0 2078 02DC movea.l A0, [0x000002DC /* ABusDCE */]
000002A4 1368 0007 000D move.b [A1 + 0xD], [A0 + 0x7]
label000002AA:
000002AA 3378 0210 000E move.w [A1 + 0xE], [0x00000210 /* BootDrive */]
000002B0 4A78 03F6 tst.w [0x000003F6 /* FSFCBLen */]
000002B4 6D44 blt +0x46 /* 000002FA */
000002B6 4269 000E clr.w [A1 + 0xE]
000002BA 323C 003C move.w D1, 0x3C /* '<' */
label000002BE:
000002BE 4267 clr.w -[A7]
000002C0 51C9 FFFC dbf D1, -0x6 /* 000002BE */
000002C4 204F movea.l A0, A7
000002C6 3178 0A58 0018 move.w [A0 + 0x18], [0x00000A58 /* SysMap */]
000002CC 7008 moveq.l D0, 0x08
000002CE A260 syscall FSDispatch/HFSDispatch, flags=2
000002D0 6624 bne +0x26 /* 000002F6 */
000002D2 3168 0034 0016 move.w [A0 + 0x16], [A0 + 0x34]
000002D8 A207 syscall GetVolInfo/PBHGetVInfo/HGetVInfo, flags=2
000002DA 661A bne +0x1C /* 000002F6 */
000002DC 2168 005A 0030 move.l [A0 + 0x30], [A0 + 0x5A]
000002E2 217C 4552 494B 001C move.l [A0 + 0x1C], 0x4552494B /* 'ERIK' */
000002EA 7001 moveq.l D0, 0x01
000002EC A260 syscall FSDispatch/HFSDispatch, flags=2
000002EE 6606 bne +0x8 /* 000002F6 */
000002F0 3368 0016 000E move.w [A1 + 0xE], [A0 + 0x16]
label000002F6:
000002F6 4FEF 007A lea.l A7, [A7 + 0x7A]
label000002FA:
000002FA 2049 movea.l A0, A1
000002FC 225F movea.l A1, [A7]+
000002FE 5C4F addq.w A7, 6
00000300 3EBC EA84 move.w [A7], 0xEA84
00000304 4ED1 jmp [A1]
fn00000306:
00000306 206F 0004 movea.l A0, [A7 + 0x4]
0000030A 202F 0008 move.l D0, [A7 + 0x8]
0000030E 4267 clr.w -[A7]
00000310 A9EE syscall Pack7/DecStr68K
00000312 205F movea.l A0, [A7]+
00000314 504F addq.w A7, 8
00000316 4ED0 jmp [A0]
fn00000318:
00000318 225F movea.l A1, [A7]+
0000031A 201F move.l D0, [A7]+
0000031C 0838 0006 028E btst.b [0x0000028E /* ROM85 */], 0x6
00000322 6606 bne +0x8 /* 0000032A */
00000324 A055 syscall StripAddress
00000326 2E80 move.l [A7], D0
00000328 4ED1 jmp [A1]
label0000032A:
0000032A C0B8 031A and.l D0, [0x0000031A /* MaskBC/MaskHandle/MaskPtr/Lo3Bytes */]
0000032E 2E80 move.l [A7], D0
00000330 4ED1 jmp [A1]
fn00000332:
00000332 206F 0004 movea.l A0, [A7 + 0x4]
00000336 2248 movea.l A1, A0
label00000338:
00000338 4A18 tst.b [A0]+
0000033A 66FC bne -0x2 /* 00000338 */
0000033C 91C9 sub.l A0, A1
0000033E 2008 move.l D0, A0
00000340 5380 subq.l D0, 1
00000342 4E75 rts
00000344 8673 7472 or.w D3, [A3 + D7.w * 4 + 0x72]
00000348 6C65 bge +0x67 /* 000003AF */
0000034A 6E00 0000 bgt +0x2 /* 0000034C */
// begin alternate branch 0000034C-00000352
label0000034C:
0000034C 0000 4E56 ori.b D0, 0x56 /* 'V' */
fn0000034E: // (misaligned)
00000350 FF00 .extension 0xF00 // unimplemented
// end alternate branch 0000034C-00000352
label0000034C: // (misaligned)
fn0000034E:
0000034E 4E56 FF00 link A6, -0x0100
00000352 2F0C move.l -[A7], A4
00000354 206E 0008 movea.l A0, [A6 + 0x8]
00000358 43EE FF00 lea.l A1, [A6 - 0x100]
0000035C 703F moveq.l D0, 0x3F
label0000035E:
0000035E 22D8 move.l [A1]+, [A0]+
00000360 51C8 FFFC dbf D0, -0x6 /* 0000035E */
00000364 286E 000C movea.l A4, [A6 + 0xC]
00000368 41EE FF00 lea.l A0, [A6 - 0x100]
0000036C 2948 0050 move.l [A4 + 0x50], A0
00000370 397C 0007 004C move.w [A4 + 0x4C], 0x7
00000376 2F2C 0048 move.l -[A7], [A4 + 0x48]
0000037A 205F movea.l A0, [A7]+
0000037C 4E90 jsr [A0]
0000037E 2D6C 0070 0010 move.l [A6 + 0x10], [A4 + 0x70]
00000384 285F movea.l A4, [A7]+
00000386 4E5E unlink A6
00000388 205F movea.l A0, [A7]+
0000038A 504F addq.w A7, 8
0000038C 4ED0 jmp [A0]
0000038E 8950 or.w [A0], D4
00000390 4153 chk.w D0, [A3]
00000392 544F addq.w A7, 2
00000394 5A45 addq.w D5, 5
00000396 524F addq.w A7, 1
00000398 0000 .incomplete