Ticket #10835: Disasm (CD) - Script 32, project changeState.txt

File Disasm (CD) - Script 32, project changeState.txt, 17.8 KB (added by Vhati, 5 years ago)
Line 
1CD edition, script 32 - project::changeState()
2
3
40055:01d1: 3f 01 link 01
50055:01d3: 87 01 lap 01
60055:01d5: 65 16 aTop state[16]
70055:01d7: 36 push
8
9
100055:01d8: 3c dup
110055:01d9: 35 00 ldi 00 (case 0)
120055:01db: 1a eq?
130055:01dc: 31 28 bnt 28 [0206]
140055:01de: 7a push2
150055:01df: 89 46 lsg 46 ; 70, 'F'
160055:01e1: 89 47 lsg 47 ; 71, 'G'
170055:01e3: 35 0a ldi 0a ; 10
180055:01e5: 04 sub
190055:01e6: 36 push
200055:01e7: 45 0c 04 00 callb 0c ; 12 0004
210055:01eb: 38 18 02 pushi 0218 ; 536, handsOff
220055:01ee: 76 push0
230055:01ef: 81 01 lag 01
240055:01f1: 4a 04 00 send 0004
250055:01f4: 39 04 pushi 04 ; scaleX
260055:01f6: 89 00 lsg 00
270055:01f8: 88 b9 01 lsg 01b9 ; 441
280055:01fb: 88 ba 01 lsg 01ba ; 442
290055:01fe: 7c pushSelf
300055:01ff: 45 0a 08 00 callb 0a ; 10 0008
310055:0203: 32 09 03 jmp 0309 [050f] (end the switch)
32
33
340055:0206: 3c dup
350055:0207: 35 01 ldi 01 (case 1)
360055:0209: 1a eq?
370055:020a: 30 0f 01 bnt 010f [031c] (next case)
380055:020d: 67 26 pTos register[26]
390055:020f: 35 24 ldi 24 ; 36, '$'
400055:0211: 1a eq?
410055:0212: 31 04 bnt 04 [0218]
420055:0214: 35 25 ldi 25 ; 37, '%'
430055:0216: 65 26 aTop register[26]
44
450055:0218: 39 43 pushi 43 ; 67, 'C', heading
460055:021a: 76 push0
470055:021b: 81 00 lag 00
480055:021d: 4a 04 00 send 0004
490055:0220: a3 03 sal 03
500055:0222: 39 0f pushi 0f ; 15, loop
510055:0224: 76 push0
520055:0225: 81 00 lag 00
530055:0227: 4a 04 00 send 0004
540055:022a: a3 00 sal 00
550055:022c: 38 42 01 pushi 0142 ; 322, setMotion
560055:022f: 78 push1
570055:0230: 76 push0
580055:0231: 81 00 lag 00
590055:0233: 4a 06 00 send 0006
600055:0236: 39 0e pushi 0e ; 14, view
610055:0238: 78 push1
620055:0239: 67 26 pTos register[26]
630055:023b: 35 4b ldi 4b ; 75, 'K'
640055:023d: 22 lt?
650055:023e: 31 04 bnt 04 [0244]
660055:0240: 35 09 ldi 09
670055:0242: 33 28 jmp 28 [026c]
68
690055:0244: 39 0e pushi 0e ; 14, view
700055:0246: 76 push0
710055:0247: 81 00 lag 00
720055:0249: 4a 04 00 send 0004
730055:024c: 36 push
740055:024d: 35 11 ldi 11 ; 17
750055:024f: 1e gt?
760055:0250: 31 0e bnt 0e [0260]
770055:0252: 39 0e pushi 0e ; 14, view
780055:0254: 76 push0
790055:0255: 81 00 lag 00
800055:0257: 4a 04 00 send 0004
810055:025a: 36 push
820055:025b: 35 15 ldi 15 ; 21
830055:025d: 22 lt?
840055:025e: 31 00 bnt 00 [0260]
85
860055:0260: 36 push
870055:0261: 35 01 ldi 01
880055:0263: 1a eq?
890055:0264: 31 04 bnt 04 [026a]
900055:0266: 35 12 ldi 12 ; 18
910055:0268: 33 02 jmp 02 [026c]
920055:026a: 35 0e ldi 0e ; 14
93
940055:026c: 36 push
950055:026d: 39 0f pushi 0f ; 15, loop
960055:026f: 78 push1
97
980055:0270: 76 push0
990055:0271: 83 03 lal 03
1000055:0273: 24 le?
1010055:0274: 31 0c bnt 0c [0282]
1020055:0276: 60 pprev
1030055:0277: 35 55 ldi 55 ; 85, 'U'
1040055:0279: 24 le?
1050055:027a: 31 06 bnt 06 [0282]
1060055:027c: 35 02 ldi 02
1070055:027e: a3 02 sal 02
1080055:0280: 33 2d jmp 2d [02af]
109
1100055:0282: 39 56 pushi 56 ; 86, 'V', save
1110055:0284: 83 03 lal 03
1120055:0286: 24 le?
1130055:0287: 31 0d bnt 0d [0296]
1140055:0289: 60 pprev
1150055:028a: 34 b4 00 ldi 00b4 ; 180
1160055:028d: 24 le?
1170055:028e: 31 06 bnt 06 [0296]
1180055:0290: 35 00 ldi 00
1190055:0292: a3 02 sal 02
1200055:0294: 33 19 jmp 19 [02af]
121
1220055:0296: 38 b5 00 pushi 00b5 ; 181, caller
1230055:0299: 83 03 lal 03
1240055:029b: 24 le?
1250055:029c: 31 0d bnt 0d [02ab]
1260055:029e: 60 pprev
1270055:029f: 34 12 01 ldi 0112 ; 274
1280055:02a2: 24 le?
1290055:02a3: 31 06 bnt 06 [02ab]
1300055:02a5: 35 01 ldi 01
1310055:02a7: a3 02 sal 02
1320055:02a9: 33 04 jmp 04 [02af]
133
1340055:02ab: 35 03 ldi 03
1350055:02ad: a3 02 sal 02
136
1370055:02af: 36 push
1380055:02b0: 38 4d 01 pushi 014d ; 333, setCel
1390055:02b3: 78 push1
1400055:02b4: 76 push0
1410055:02b5: 81 00 lag 00
1420055:02b7: 4a 12 00 send 0012 ; 18
1430055:02ba: 67 26 pTos register[26]
1440055:02bc: 35 4b ldi 4b ; 75, 'K'
1450055:02be: 22 lt?
1460055:02bf: 31 15 bnt 15 [02d6]
1470055:02c1: 38 ec 00 pushi 00ec ; 236, setCycle
1480055:02c4: 38 04 00 pushi 0004 ; scaleX
1490055:02c7: 51 18 class CT[18],
1500055:02c9: 36 push
1510055:02ca: 39 04 pushi 04 ; scaleX
1520055:02cc: 78 push1
1530055:02cd: 7c pushSelf
1540055:02ce: 81 00 lag 00
1550055:02d0: 4a 0c 00 send 000c ; 12
1560055:02d3: 32 39 02 jmp 0239 [050f] (end the switch)
157
1580055:02d6: 39 0e pushi 0e ; 14, view
1590055:02d8: 76 push0
1600055:02d9: 81 00 lag 00
1610055:02db: 4a 04 00 send 0004
1620055:02de: 36 push
1630055:02df: 35 11 ldi 11 ; 17
1640055:02e1: 1e gt?
1650055:02e2: 31 0e bnt 0e [02f2]
1660055:02e4: 39 0e pushi 0e ; 14, view
1670055:02e6: 76 push0
1680055:02e7: 81 00 lag 00
1690055:02e9: 4a 04 00 send 0004
1700055:02ec: 36 push
1710055:02ed: 35 15 ldi 15 ; 21
1720055:02ef: 22 lt?
1730055:02f0: 31 00 bnt 00 [02f2]
174
1750055:02f2: 36 push
1760055:02f3: 35 01 ldi 01
1770055:02f5: 1a eq?
1780055:02f6: 31 14 bnt 14 [030c]
1790055:02f8: 38 ec 00 pushi 00ec ; 236, setCycle
1800055:02fb: 38 04 00 pushi 0004 ; scaleX
1810055:02fe: 51 18 class CT[18],
1820055:0300: 36 push
1830055:0301: 7a push2
1840055:0302: 78 push1
1850055:0303: 7c pushSelf
1860055:0304: 81 00 lag 00
1870055:0306: 4a 0c 00 send 000c ; 12
1880055:0309: 32 03 02 jmp 0203 [050f] (end the switch)
189
1900055:030c: 38 ec 00 pushi 00ec ; 236, setCycle
1910055:030f: 7a push2
1920055:0310: 51 19 class End[19],
1930055:0312: 36 push
1940055:0313: 7c pushSelf
1950055:0314: 81 00 lag 00
1960055:0316: 4a 08 00 send 0008
1970055:0319: 32 f3 01 jmp 01f3 [050f] (end the switch)
198
199
2000055:031c: 3c dup
2010055:031d: 35 02 ldi 02 (case 2)
2020055:031f: 1a eq?
2030055:0320: 30 53 01 bnt 0153 [0476] (next case)
2040055:0323: 39 03 pushi 03 ; z
2050055:0325: 67 26 pTos register[26]
2060055:0327: 39 15 pushi 15 ; 21, nsBottom
2070055:0329: 39 25 pushi 25 ; 37, '%', fore
2080055:032b: 46 e7 fd 05 00 06 00 calle fde7 ; 64999 0005 0006
2090055:0332: 30 74 00 bnt 0074 [03a9]
2100055:0335: 35 0a ldi 0a ; 10
2110055:0337: 91 f7 lagi f7 ; 247
2120055:0339: 31 1b bnt 1b [0356]
2130055:033b: 38 02 03 pushi 0302 ; 770, useSkill
2140055:033e: 7a push2
2150055:033f: 39 0a pushi 0a ; 10, inTop
2160055:0341: 39 19 pushi 19 ; 25, lsBottom
2170055:0343: 38 02 03 pushi 0302 ; 770, useSkill
2180055:0346: 7a push2
2190055:0347: 76 push0
2200055:0348: 39 03 pushi 03 ; z
2210055:034a: 38 02 03 pushi 0302 ; 770, useSkill
2220055:034d: 7a push2
2230055:034e: 7a push2
2240055:034f: 39 05 pushi 05 ; scaleY
2250055:0351: 81 00 lag 00
2260055:0353: 4a 18 00 send 0018 ; 24
227
2280055:0356: 38 08 03 pushi 0308 ; 776, useStamina
2290055:0359: 78 push1
2300055:035a: 7a push2
2310055:035b: 81 00 lag 00
2320055:035d: 4a 06 00 send 0006
2330055:0360: 7a push2
2340055:0361: 76 push0
2350055:0362: 38 90 01 pushi 0190 ; 400, scrollDown
2360055:0365: 35 0a ldi 0a ; 10
2370055:0367: 91 f7 lagi f7 ; 247
2380055:0369: 04 sub
2390055:036a: 36 push
2400055:036b: 35 04 ldi 04
2410055:036d: 02 add
2420055:036e: 36 push
2430055:036f: 35 02 ldi 02
2440055:0371: 0c shr
2450055:0372: 36 push
2460055:0373: 43 5d 04 00 callk Random[5d], 0004
2470055:0377: a5 00 sat 00
2480055:0379: 88 b9 01 lsg 01b9 ; 441
2490055:037c: 7a push2
2500055:037d: 76 push0
2510055:037e: 78 push1
2520055:037f: 43 5d 04 00 callk Random[5d], 0004
2530055:0383: 31 06 bnt 06 [038b]
2540055:0385: 76 push0
2550055:0386: 85 00 lat 00
2560055:0388: 04 sub
2570055:0389: 33 02 jmp 02 [038d]
258
2590055:038b: 85 00 lat 00
260
2610055:038d: 02 add
2620055:038e: a0 b9 01 sag 01b9 ; 441
2630055:0391: 88 ba 01 lsg 01ba ; 442
2640055:0394: 7a push2
2650055:0395: 76 push0
2660055:0396: 78 push1
2670055:0397: 43 5d 04 00 callk Random[5d], 0004
2680055:039b: 31 06 bnt 06 [03a3]
2690055:039d: 76 push0
2700055:039e: 85 00 lat 00
2710055:03a0: 04 sub
2720055:03a1: 33 02 jmp 02 [03a5]
273
2740055:03a3: 85 00 lat 00
275
2760055:03a5: 02 add
2770055:03a6: a0 ba 01 sag 01ba ; 442
278
2790055:03a9: 39 08 pushi 08 ; fixPriority
2800055:03ab: 78 push1
2810055:03ac: 78 push1
2820055:03ad: 39 2b pushi 2b ; 43, '+', type
2830055:03af: 78 push1
2840055:03b0: 67 26 pTos register[26]
2850055:03b2: 38 93 00 pushi 0093 ; 147, init
2860055:03b5: 76 push0
2870055:03b6: 38 92 00 pushi 0092 ; 146, new
2880055:03b9: 76 push0
2890055:03ba: 72 4c 00 lofsa ProjObj[09d7]
2900055:03bd: 4a 04 00 send 0004
2910055:03c0: 4a 10 00 send 0010 ; 16
2920055:03c3: 67 26 pTos register[26]
2930055:03c5: 3c dup
2940055:03c6: 35 56 ldi 56 ; 86, 'V'
2950055:03c8: 1a eq?
2960055:03c9: 31 11 bnt 11 [03dc] (next register case)
2970055:03cb: 39 34 pushi 34 ; 52, '4', number
2980055:03cd: 78 push1
2990055:03ce: 38 a5 03 pushi 03a5 ; 933, BAD SELECTOR
3000055:03d1: 39 33 pushi 33 ; 51, '3', play
3010055:03d3: 76 push0
3020055:03d4: 72 1a 01 lofsa spellSoundFX[0aa5]
3030055:03d7: 4a 0a 00 send 000a ; 10
3040055:03da: 33 54 jmp 54 [0430] (end the register switch)
305
3060055:03dc: 3c dup
3070055:03dd: 35 58 ldi 58 ; 88, 'X'
3080055:03df: 1a eq?
3090055:03e0: 31 11 bnt 11 [03f3] (next register case)
3100055:03e2: 39 34 pushi 34 ; 52, '4', number
3110055:03e4: 78 push1
3120055:03e5: 38 aa 03 pushi 03aa ; 938, BAD SELECTOR
3130055:03e8: 39 33 pushi 33 ; 51, '3', play
3140055:03ea: 76 push0
3150055:03eb: 72 1a 01 lofsa spellSoundFX[0aa5]
3160055:03ee: 4a 0a 00 send 000a ; 10
3170055:03f1: 33 3d jmp 3d [0430] (end the register switch)
318
3190055:03f3: 3c dup
3200055:03f4: 35 5d ldi 5d ; 93, ']'
3210055:03f6: 1a eq?
3220055:03f7: 31 11 bnt 11 [040a] (next register case)
3230055:03f9: 39 34 pushi 34 ; 52, '4', number
3240055:03fb: 78 push1
3250055:03fc: 38 ce 03 pushi 03ce ; 974, BAD SELECTOR
3260055:03ff: 39 33 pushi 33 ; 51, '3', play
3270055:0401: 76 push0
3280055:0402: 72 1a 01 lofsa spellSoundFX[0aa5]
3290055:0405: 4a 0a 00 send 000a ; 10
3300055:0408: 33 26 jmp 26 [0430] (end the register switch)
331
3320055:040a: 3c dup
3330055:040b: 35 4f ldi 4f ; 79, 'O'
3340055:040d: 1a eq?
3350055:040e: 31 11 bnt 11 [0421] (next register case)
3360055:0410: 39 34 pushi 34 ; 52, '4', number
3370055:0412: 78 push1
3380055:0413: 38 d7 03 pushi 03d7 ; 983, BAD SELECTOR
3390055:0416: 39 33 pushi 33 ; 51, '3', play
3400055:0418: 76 push0
3410055:0419: 72 1a 01 lofsa spellSoundFX[0aa5]
3420055:041c: 4a 0a 00 send 000a ; 10
3430055:041f: 33 0f jmp 0f [0430] (end the register switch)
344
3450055:0421: 39 34 pushi 34 ; 52, '4', number
3460055:0423: 78 push1
3470055:0424: 38 94 03 pushi 0394 ; 916, BAD SELECTOR
3480055:0427: 39 33 pushi 33 ; 51, '3', play
3490055:0429: 76 push0
3500055:042a: 72 1a 01 lofsa spellSoundFX[0aa5]
3510055:042d: 4a 0a 00 send 000a ; 10
352
3530055:0430: 3a toss
3540055:0431: 39 0e pushi 0e ; 14, view
3550055:0433: 76 push0
3560055:0434: 81 00 lag 00
3570055:0436: 4a 04 00 send 0004
3580055:0439: 36 push
3590055:043a: 35 11 ldi 11 ; 17
3600055:043c: 1e gt?
3610055:043d: 31 0e bnt 0e [044d]
3620055:043f: 39 0e pushi 0e ; 14, view
3630055:0441: 76 push0
3640055:0442: 81 00 lag 00
3650055:0444: 4a 04 00 send 0004
3660055:0447: 36 push
3670055:0448: 35 15 ldi 15 ; 21
3680055:044a: 22 lt?
3690055:044b: 31 00 bnt 00 [044d]
370
3710055:044d: 2f 05 bt 05 [0454]
3720055:044f: 67 26 pTos register[26]
3730055:0451: 35 4b ldi 4b ; 75, 'K'
3740055:0453: 22 lt?
375
3760055:0454: 31 10 bnt 10 [0466]
3770055:0456: 38 ec 00 pushi 00ec ; 236, setCycle
3780055:0459: 7a push2
3790055:045a: 51 19 class End[19],
3800055:045c: 36 push
3810055:045d: 7c pushSelf
3820055:045e: 81 00 lag 00
3830055:0460: 4a 08 00 send 0008
3840055:0463: 32 a9 00 jmp 00a9 [050f] (end the switch)
385
3860055:0466: 38 ec 00 pushi 00ec ; 236, setCycle
3870055:0469: 7a push2
3880055:046a: 51 1a class Beg[1a],
3890055:046c: 36 push
3900055:046d: 7c pushSelf
3910055:046e: 81 00 lag 00
3920055:0470: 4a 08 00 send 0008
3930055:0473: 32 99 00 jmp 0099 [050f] (end the switch)
394
395
3960055:0476: 3c dup
3970055:0477: 35 03 ldi 03 (case 3)
3980055:0479: 1a eq?
3990055:047a: 30 72 00 bnt 0072 [04ef] (next case)
4000055:047d: 39 0e pushi 0e ; 14, view
4010055:047f: 76 push0
4020055:0480: 81 00 lag 00
4030055:0482: 4a 04 00 send 0004
4040055:0485: 36 push
4050055:0486: 35 11 ldi 11 ; 17
4060055:0488: 1e gt?
4070055:0489: 31 0e bnt 0e [0499]
4080055:048b: 39 0e pushi 0e ; 14, view
4090055:048d: 76 push0
4100055:048e: 81 00 lag 00
4110055:0490: 4a 04 00 send 0004
4120055:0493: 36 push
4130055:0494: 35 15 ldi 15 ; 21
4140055:0496: 22 lt?
4150055:0497: 31 00 bnt 00 [0499]
416
4170055:0499: 18 not
4180055:049a: 31 0d bnt 0d [04a9]
4190055:049c: 38 16 03 pushi 0316 ; 790, normalize
4200055:049f: 78 push1
4210055:04a0: 8b 00 lsl 00
4220055:04a2: 81 00 lag 00
4230055:04a4: 4a 06 00 send 0006
4240055:04a7: 33 40 jmp 40 [04e9]
425
4260055:04a9: 39 0e pushi 0e ; 14, view
4270055:04ab: 78 push1
4280055:04ac: 39 14 pushi 14 ; 20, nsRight
4290055:04ae: 39 0f pushi 0f ; 15, loop
4300055:04b0: 78 push1
4310055:04b1: 39 4b pushi 4b ; 75, 'K', at
4320055:04b3: 78 push1
4330055:04b4: 39 0f pushi 0f ; 15, loop
4340055:04b6: 76 push0
4350055:04b7: 81 00 lag 00
4360055:04b9: 4a 04 00 send 0004
4370055:04bc: 36 push
4380055:04bd: 83 0b lal 0b ; 11
4390055:04bf: 4a 06 00 send 0006
4400055:04c2: 36 push
4410055:04c3: 39 10 pushi 10 ; 16, cel
4420055:04c5: 78 push1
4430055:04c6: 39 4b pushi 4b ; 75, 'K', at
4440055:04c8: 78 push1
4450055:04c9: 39 0f pushi 0f ; 15, loop
4460055:04cb: 76 push0
4470055:04cc: 81 00 lag 00
4480055:04ce: 4a 04 00 send 0004
4490055:04d1: 36 push
4500055:04d2: 83 0b lal 0b ; 11
4510055:04d4: 4a 06 00 send 0006
4520055:04d7: 36 push
4530055:04d8: 35 06 ldi 06
4540055:04da: 22 lt?
4550055:04db: 31 04 bnt 04 [04e1]
4560055:04dd: 35 04 ldi 04
4570055:04df: 33 02 jmp 02 [04e3]
458
4590055:04e1: 35 05 ldi 05
460
4610055:04e3: 36 push
4620055:04e4: 81 00 lag 00
4630055:04e6: 4a 12 00 send 0012 ; 18
464
4650055:04e9: 35 02 ldi 02
4660055:04eb: 65 1c aTop cycles[1c]
4670055:04ed: 33 20 jmp 20 [050f] (end the switch)
468
469
4700055:04ef: 3c dup
4710055:04f0: 35 04 ldi 04 (case 4)
4720055:04f2: 1a eq?
4730055:04f3: 31 1a bnt 1a [050f] (end the switch)
4740055:04f5: 78 push1
4750055:04f6: 39 09 pushi 09 ; inLeft
4760055:04f8: 45 04 02 00 callb 04 0002
4770055:04fc: 18 not
4780055:04fd: 31 09 bnt 09 [0508]
4790055:04ff: 38 19 02 pushi 0219 ; 537, handsOn
4800055:0502: 76 push0
4810055:0503: 81 01 lag 01
4820055:0505: 4a 04 00 send 0004
483
4840055:0508: 38 94 00 pushi 0094 ; 148, dispose
4850055:050b: 76 push0
4860055:050c: 54 04 00 self 0004
487
4880055:050f: 3a toss
4890055:0510: 48 ret