(script 386)

(string
    string_02ea "jDog"
    string_02ef ""
)

(said
)

(local
)

// 02b0
(instance public jDog of Script
    (properties
        client $0
        state $ffff
        start $0
        timer $0
        cycles $0
        seconds $0
        lastSeconds $0
        register $0
        script $0
        caller $0
    )
    (method (init) // method_000c
  000c:39 57            pushi 57 // $57 init
  000e:76               push0 
  000f:59 01            &rest 1 
  0011:57 05 04         super Script 4 

  0014:48                 ret 
    )

    (method (dispose) // method_0015
  0015:39 58            pushi 58 // $58 dispose
  0017:76               push0 
  0018:59 01            &rest 1 
  001a:57 05 04         super Script 4 

  001d:78               push1 
  001e:38 03d9          pushi 3d9 // $3d9 sel_985
  0021:43 03 02         callk DisposeScript 2 

  0024:78               push1 
  0025:38 0182          pushi 182 // $182 sel_386
  0028:43 03 02         callk DisposeScript 2 

  002b:48                 ret 
    )

    (method (doit) // method_002c
  002c:39 3c            pushi 3c // $3c doit
  002e:76               push0 
  002f:59 01            &rest 1 
  0031:57 05 04         super Script 4 

  0034:67 0a             pTos state 
  0036:35 03              ldi 3 
  0038:1a                 eq? 
  0039:31 20              bnt code_005b 
  003b:39 07            pushi 7 // $7 cel
  003d:76               push0 
  003e:80 0175            lag global373 
  0041:4a 04             send 4 

  0043:36                push 
  0044:35 04              ldi 4 
  0046:1a                 eq? 
  0047:31 12              bnt code_005b 
  0049:38 00ca          pushi ca // $ca show
  004c:76               push0 
  004d:38 00c9          pushi c9 // $c9 ignoreActors
  0050:78               push1 
  0051:78               push1 
  0052:38 00c6          pushi c6 // $c6 stopUpd
  0055:76               push0 
  0056:80 0177            lag global375 
  0059:4a 0e             send e 


        code_005b
  005b:48                 ret 
    )

    (method (changeState) // method_005c
  005c:87 01              lap param1 
  005e:65 0a             aTop state 
  0060:36                push 
  0061:3c                 dup 
  0062:35 00              ldi 0 
  0064:1a                 eq? 
  0065:31 36              bnt code_009d 
  0067:76               push0 
  0068:45 03 00         callb procedure_0003 0 // HandsOff 

  006b:89 0c              lsg gPrevRoomNum 
  006d:35 23              ldi 23 
  006f:1c                 ne? 
  0070:31 24              bnt code_0096 
  0072:39 7e            pushi 7e // $7e setCycle
  0074:7a               push2 
  0075:51 1a            class End 
  0077:36                push 
  0078:7c            pushSelf 
  0079:80 0178            lag global376 
  007c:4a 08             send 8 

  007e:39 2b            pushi 2b // $2b number
  0080:78               push1 
  0081:39 2b            pushi 2b // $2b number
  0083:39 06            pushi 6 // $6 loop
  0085:78               push1 
  0086:78               push1 
  0087:39 3f            pushi 3f // $3f priority
  0089:78               push1 
  008a:39 05            pushi 5 // $5 view
  008c:39 2a            pushi 2a // $2a play
  008e:76               push0 
  008f:80 0083            lag global131 
  0092:4a 16             send 16 

  0094:33 04              jmp code_009a 

        code_0096
  0096:35 01              ldi 1 
  0098:65 10             aTop cycles 

        code_009a
  009a:32 020b            jmp code_02a8 

        code_009d
  009d:3c                 dup 
  009e:35 01              ldi 1 
  00a0:1a                 eq? 
  00a1:31 45              bnt code_00e8 
  00a3:39 7e            pushi 7e // $7e setCycle
  00a5:78               push1 
  00a6:51 17            class Walk 
  00a8:36                push 
  00a9:38 00d4          pushi d4 // $d4 setAvoider
  00ac:78               push1 
  00ad:38 00be          pushi be // $be offScreenOK
  00b0:78               push1 
  00b1:78               push1 
  00b2:39 56            pushi 56 // $56 new
  00b4:76               push0 
  00b5:51 21            class Avoid 
  00b7:4a 04             send 4 

  00b9:4a 06             send 6 

  00bb:36                push 
  00bc:80 0175            lag global373 
  00bf:4a 0c             send c 

  00c1:89 0c              lsg gPrevRoomNum 
  00c3:35 23              ldi 23 
  00c5:1c                 ne? 
  00c6:31 19              bnt code_00e1 
  00c8:38 00d3          pushi d3 // $d3 setMotion
  00cb:39 04            pushi 4 // $4 x
  00cd:51 1d            class MoveTo 
  00cf:36                push 
  00d0:38 00c4          pushi c4 // $c4 setTest
  00d3:38 008d          pushi 8d // $8d setSize
  00d6:7c            pushSelf 
  00d7:39 57            pushi 57 // $57 init
  00d9:76               push0 
  00da:80 0175            lag global373 
  00dd:4a 10             send 10 

  00df:33 04              jmp code_00e5 

        code_00e1
  00e1:35 01              ldi 1 
  00e3:65 10             aTop cycles 

        code_00e5
  00e5:32 01c0            jmp code_02a8 

        code_00e8
  00e8:3c                 dup 
  00e9:35 02              ldi 2 
  00eb:1a                 eq? 
  00ec:31 58              bnt code_0146 
  00ee:89 0c              lsg gPrevRoomNum 
  00f0:35 23              ldi 23 
  00f2:1c                 ne? 
  00f3:31 21              bnt code_0116 
  00f5:39 7e            pushi 7e // $7e setCycle
  00f7:78               push1 
  00f8:51 1b            class Beg 
  00fa:36                push 
  00fb:80 0178            lag global376 
  00fe:4a 06             send 6 

  0100:39 2b            pushi 2b // $2b number
  0102:78               push1 
  0103:39 2c            pushi 2c // $2c handle
  0105:39 06            pushi 6 // $6 loop
  0107:78               push1 
  0108:78               push1 
  0109:39 3f            pushi 3f // $3f priority
  010b:78               push1 
  010c:39 05            pushi 5 // $5 view
  010e:39 2a            pushi 2a // $2a play
  0110:76               push0 
  0111:80 0083            lag global131 
  0114:4a 16             send 16 


        code_0116
  0116:39 08            pushi 8 // $8 underBits
  0118:38 0182          pushi 182 // $182 sel_386
  011b:76               push0 
  011c:39 43            pushi 43 // $43 at
  011e:38 00af          pushi af // $af incClientPos
  0121:39 0f            pushi f // $f lsBottom
  0123:39 21            pushi 21 // $21 font
  0125:39 04            pushi 4 // $4 x
  0127:39 58            pushi 58 // $58 dispose
  0129:46 00ff 0000 10  calle ff procedure_0000 10 // Print 

  012f:38 00d3          pushi d3 // $d3 setMotion
  0132:39 04            pushi 4 // $4 x
  0134:51 1d            class MoveTo 
  0136:36                push 
  0137:38 00d8          pushi d8 // $d8 observeBlocks
  013a:38 00a1          pushi a1 // $a1 motionCue
  013d:7c            pushSelf 
  013e:80 0175            lag global373 
  0141:4a 0c             send c 

  0143:32 0162            jmp code_02a8 

        code_0146
  0146:3c                 dup 
  0147:35 03              ldi 3 
  0149:1a                 eq? 
  014a:31 2a              bnt code_0176 
  014c:76               push0 
  014d:45 0f 00         callb procedure_000f 0 // cls 

  0150:38 00c6          pushi c6 // $c6 stopUpd
  0153:76               push0 
  0154:80 0178            lag global376 
  0157:4a 04             send 4 

  0159:39 05            pushi 5 // $5 view
  015b:78               push1 
  015c:38 01bd          pushi 1bd // $1bd sel_445
  015f:39 06            pushi 6 // $6 loop
  0161:78               push1 
  0162:76               push0 
  0163:39 07            pushi 7 // $7 cel
  0165:78               push1 
  0166:76               push0 
  0167:39 7e            pushi 7e // $7e setCycle
  0169:7a               push2 
  016a:51 1a            class End 
  016c:36                push 
  016d:7c            pushSelf 
  016e:80 0175            lag global373 
  0171:4a 1a             send 1a 

  0173:32 0132            jmp code_02a8 

        code_0176
  0176:3c                 dup 
  0177:35 04              ldi 4 
  0179:1a                 eq? 
  017a:31 4f              bnt code_01cb 
  017c:39 05            pushi 5 // $5 view
  017e:78               push1 
  017f:38 01b8          pushi 1b8 // $1b8 sel_440
  0182:38 00d3          pushi d3 // $d3 setMotion
  0185:39 03            pushi 3 // $3 y
  0187:51 1d            class MoveTo 
  0189:36                push 
  018a:38 008c          pushi 8c // $8c track
  018d:38 00f8          pushi f8 // $f8 newRoom
  0190:39 7e            pushi 7e // $7e setCycle
  0192:78               push1 
  0193:51 17            class Walk 
  0195:36                push 
  0196:80 0175            lag global373 
  0199:4a 16             send 16 

  019b:39 7e            pushi 7e // $7e setCycle
  019d:78               push1 
  019e:51 17            class Walk 
  01a0:36                push 
  01a1:38 00d4          pushi d4 // $d4 setAvoider
  01a4:78               push1 
  01a5:38 00be          pushi be // $be offScreenOK
  01a8:78               push1 
  01a9:78               push1 
  01aa:39 56            pushi 56 // $56 new
  01ac:76               push0 
  01ad:51 21            class Avoid 
  01af:4a 04             send 4 

  01b1:4a 06             send 6 

  01b3:36                push 
  01b4:38 00d3          pushi d3 // $d3 setMotion
  01b7:39 04            pushi 4 // $4 x
  01b9:51 1d            class MoveTo 
  01bb:36                push 
  01bc:38 00e0          pushi e0 // $e0 vanishingY
  01bf:38 009f          pushi 9f // $9f nextCel
  01c2:7c            pushSelf 
  01c3:80 0176            lag global374 
  01c6:4a 18             send 18 

  01c8:32 00dd            jmp code_02a8 

        code_01cb
  01cb:3c                 dup 
  01cc:35 05              ldi 5 
  01ce:1a                 eq? 
  01cf:31 1e              bnt code_01ef 
  01d1:39 05            pushi 5 // $5 view
  01d3:78               push1 
  01d4:38 020e          pushi 20e // $20e sel_526
  01d7:38 00c8          pushi c8 // $c8 setLoop
  01da:78               push1 
  01db:76               push0 
  01dc:39 07            pushi 7 // $7 cel
  01de:78               push1 
  01df:76               push0 
  01e0:39 7e            pushi 7e // $7e setCycle
  01e2:7a               push2 
  01e3:51 1a            class End 
  01e5:36                push 
  01e6:7c            pushSelf 
  01e7:80 0176            lag global374 
  01ea:4a 1a             send 1a 

  01ec:32 00b9            jmp code_02a8 

        code_01ef
  01ef:3c                 dup 
  01f0:35 06              ldi 6 
  01f2:1a                 eq? 
  01f3:31 1b              bnt code_0210 
  01f5:38 00c8          pushi c8 // $c8 setLoop
  01f8:78               push1 
  01f9:7a               push2 
  01fa:39 07            pushi 7 // $7 cel
  01fc:78               push1 
  01fd:76               push0 
  01fe:39 7e            pushi 7e // $7e setCycle
  0200:78               push1 
  0201:51 16            class Fwd 
  0203:36                push 
  0204:80 0176            lag global374 
  0207:4a 12             send 12 

  0209:35 05              ldi 5 
  020b:65 12             aTop seconds 
  020d:32 0098            jmp code_02a8 

        code_0210
  0210:3c                 dup 
  0211:35 07              ldi 7 
  0213:1a                 eq? 
  0214:31 27              bnt code_023d 
  0216:38 00c8          pushi c8 // $c8 setLoop
  0219:78               push1 
  021a:76               push0 
  021b:39 07            pushi 7 // $7 cel
  021d:78               push1 
  021e:78               push1 
  021f:88 0176            lsg global374 
  0222:43 0e 02         callk NumCels 2 

  0225:36                push 
  0226:35 01              ldi 1 
  0228:04                 sub 
  0229:36                push 
  022a:39 42            pushi 42 // $42 setPri
  022c:78               push1 
  022d:39 0b            pushi b // $b nsBottom
  022f:39 7e            pushi 7e // $7e setCycle
  0231:7a               push2 
  0232:51 1b            class Beg 
  0234:36                push 
  0235:7c            pushSelf 
  0236:80 0176            lag global374 
  0239:4a 1a             send 1a 

  023b:33 6b              jmp code_02a8 

        code_023d
  023d:3c                 dup 
  023e:35 08              ldi 8 
  0240:1a                 eq? 
  0241:31 34              bnt code_0277 
  0243:39 05            pushi 5 // $5 view
  0245:78               push1 
  0246:38 0208          pushi 208 // $208 sel_520
  0249:38 00c8          pushi c8 // $c8 setLoop
  024c:78               push1 
  024d:39 ff            pushi ff // $ff checkAni
  024f:39 7e            pushi 7e // $7e setCycle
  0251:78               push1 
  0252:51 17            class Walk 
  0254:36                push 
  0255:39 12            pushi 12 // $12 illegalBits
  0257:78               push1 
  0258:76               push0 
  0259:38 00d3          pushi d3 // $d3 setMotion
  025c:39 04            pushi 4 // $4 x
  025e:51 1d            class MoveTo 
  0260:36                push 
  0261:38 00a0          pushi a0 // $a0 cycleDone
  0264:38 009c          pushi 9c // $9c right
  0267:7c            pushSelf 
  0268:80 0176            lag global374 
  026b:4a 24             send 24 

  026d:39 58            pushi 58 // $58 dispose
  026f:76               push0 
  0270:80 0175            lag global373 
  0273:4a 04             send 4 

  0275:33 31              jmp code_02a8 

        code_0277
  0277:3c                 dup 
  0278:35 09              ldi 9 
  027a:1a                 eq? 
  027b:31 2b              bnt code_02a8 
  027d:76               push0 
  027e:45 04 00         callb procedure_0004 0 // HandsOn 

  0281:34 0708            ldi 708 
  0284:a0 0172            sag global370 
  0287:35 01              ldi 1 
  0289:a0 00a2            sag global162 
  028c:35 02              ldi 2 
  028e:a0 009b            sag global155 
  0291:38 00c9          pushi c9 // $c9 ignoreActors
  0294:78               push1 
  0295:76               push0 
  0296:80 0177            lag global375 
  0299:4a 06             send 6 

  029b:35 00              ldi 0 
  029d:a0 00be            sag global190 
  02a0:39 7a            pushi 7a // $7a setScript
  02a2:78               push1 
  02a3:76               push0 
  02a4:63 08             pToa client 
  02a6:4a 06             send 6 


        code_02a8
  02a8:3a                toss 
  02a9:48                 ret 
    )

)



