/
asgn1.sym
2208 lines (2208 loc) · 128 KB
/
asgn1.sym
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#SYMBOLS
Index Identifier Type Flag Data Size RefCount
0 __D0part_3 6 1 0 4 2
1 __D0part_3_align 6 1 4 4 12
2 __D0part_4 6 1 8 4 22
3 __D0move_left 6 1 12 4 14
4 __D0move_right 6 1 16 4 16
5 __D0part_1 6 1 20 4 5
6 __signed_stack_001cross_squares 6 1 24 4 46
7 __signed_stack_002cross_squares 6 1 28 4 26
8 __signed_stack_003cross_squares 6 1 32 4 6
9 __D0search 6 1 36 4 4
10 __D0SetSensorLight_inline_main 6 1 40 4 3
11 __DU0SetSensorLight_inline_main 5 1 44 4 2
12 ____RotateMotor2_wait_now 5 1 48 4 3
13 ____RotateMotor2_wait_then 5 1 52 4 2
14 ____RotateMotor5_wait_now 5 1 56 4 3
15 __rotate_theAngle5 5 1 60 4 3
16 ____RotateMotor1_wait_now 5 1 64 4 3
17 ____RotateMotor1_wait_then 5 1 68 4 2
18 __SPTArgsMutex 9 0 72 4 4
19 __D0cross_squares 6 1 76 4 60
20 __DU0cross_squares 5 1 80 4 8
21 ____RotateMotor5_wait_then 5 1 84 4 2
22 __TextOutMutex 9 0 88 4 36
23 __PointOutMutex 9 0 92 4 32
24 __signed_stack_004cross_squares 6 1 96 4 4
25 __signed_stack_001search 6 1 100 4 2
26 __signed_stack_002search 6 1 104 4 2
27 __signed_stack_003search 6 1 108 4 2
28 __signed_stack_001part_4 6 1 112 4 22
29 __signed_stack_002part_4 6 1 116 4 8
30 __signed_stack_003part_4 6 1 120 4 2
31 __search_7qG2_degreeLeft_7qG2_000 6 1 124 4 3
32 __part_3_align_wait_now 5 1 128 4 3
33 __part_3_align_wait_then 5 1 132 4 2
34 __move_right_7qG2_degreeRight_7qG2_000 6 1 136 4 11
35 __move_left_7qG2_degreeLeft_7qG2_000 6 1 140 4 10
36 __search_7qG2_degreeRight_7qG2_000 6 1 144 4 2
37 __signed_stack_002part_1 6 1 148 4 4
38 __signed_stack_003part_1 6 1 152 4 2
39 __signed_stack_004part_1 6 1 156 4 2
40 __signed_stack_001move_left 6 1 160 4 8
41 __signed_stack_001move_right 6 1 164 4 10
42 __signed_stack_001part_1 6 1 168 4 6
43 __signed_stack_002part_3_align 6 1 172 4 12
44 __signed_stack_003part_3_align 6 1 176 4 4
45 __signed_stack_004part_3_align 6 1 180 4 4
46 __signed_stack_001part_3 6 1 184 4 4
47 __signed_stack_002part_3 6 1 188 4 4
48 __signed_stack_001part_3_align 6 1 192 4 16
49 __rotate_angle2 6 1 196 4 8
50 __rotate_theAngle2 5 1 200 4 3
51 __rotate_angle5 6 1 204 4 14
52 __rotate_theAngle1 5 1 208 4 3
53 __rotateMutex1 9 0 212 4 24
54 __rotateMutex2 9 0 216 4 20
55 __rotate_angle1 6 1 220 4 10
56 __cross_squares_7qG2_squaresCrossed_7qG2_000 4 1 224 2 8
57 ____RotateMotor5_wait_ms 3 1 226 2 2
58 __cross_squares_7qG2_divisor_7qG2_000 4 1 228 2 4
59 __constValNeg230 4 0 230 2 1
60 ____RotateMotor2_wait_ms 3 1 232 2 2
61 __part_3_align_wait_ms 3 1 234 2 2
62 __cross_squares_7qG2_numberToCross_7qG2_000 4 1 236 2 6
63 __rotate_RotCount2 4 1 238 2 4
64 average 4 1 240 2 5
65 __constVal200 4 0 242 2 32
66 __rotate_OldRotCount2 4 1 244 2 2
67 __search_7qG2_divisor_7qG2_000 4 1 246 2 2
68 white 4 1 248 2 3
69 ____RotateMotor1_wait_ms 3 1 250 2 2
70 __rotate_OldRotCount1 4 1 252 2 2
71 __rotate_RotCount1 4 1 254 2 4
72 __rotate_RotCount5 4 1 256 2 4
73 __rotate_OldRotCount5 4 1 258 2 2
74 __constVal1000 4 0 260 2 1
75 __rotate_firstPort1 1 1 262 1 5
76 __rotate_theRS5 1 1 263 1 3
77 __rotate_power2 1 1 264 1 5
78 __rotate_sync1 1 1 265 1 5
79 __rotate_firstPort2 1 1 266 1 5
80 __rotate_sync2 1 1 267 1 3
81 nextTileIsWhite 1 1 268 1 9
82 isOnBlack 1 1 269 1 3
83 nextTileIsBlack 1 1 270 1 7
84 __rotate_theTurnPct1 2 1 271 1 4
85 __rotate_rs1 1 1 272 1 2
86 __rotate_theRS1 1 1 273 1 3
87 __rotate_theRM1 1 1 274 1 4
88 __rotate_theRVD1 1 1 275 1 5
89 __rotate_theRVI1 1 1 276 1 5
90 __rotate_theRVP1 1 1 277 1 5
91 __rotate_theRM5 1 1 278 1 4
92 __rotate_turnpct1 2 1 279 1 6
93 __rotate_stop1 1 1 280 1 5
94 __rotate_theOM1 1 1 281 1 7
95 __rotate_theUF1 1 1 282 1 6
96 __rotate_thePower1 2 1 283 1 4
97 __part_1_7qG2_startingPart1_7qG2_000 1 1 284 1 2
98 ____initialize_global_data_return 1 1 285 1 3
99 __SetSensorLight_7qG2_port_7qG2_000_inline_main 1 1 286 1 4
100 __part_1_return 1 1 287 1 4
101 __rotate_turnpct5 2 1 288 1 10
102 __part_3_return 1 1 289 1 4
103 __part_2_return 1 1 290 1 4
104 __SetSensorMode_7qG2_mode_7qG2_000_inline_SetSensorLight_inline_main 1 1 291 1 2
105 __SetSensorTouch_7qG2_port_7qG2_000_inline_main 1 1 292 1 8
106 __constVal25 2 0 293 1 2
107 __SetSensorMode_7qG2_port_7qG2_000_inline_SetSensorLight_inline_main 1 1 294 1 2
108 __SetSensorLight_7qG2_bActive_7qG2_000_inline_main 1 1 295 1 2
109 __SetSensorType_7qG2_port_7qG2_000_inline_SetSensorLight_inline_main 1 1 296 1 2
110 __SetSensorType_7qG2_type_7qG2_000_inline_SetSensorLight_inline_main 1 1 297 1 2
111 __move_left_return 1 1 298 1 4
112 __rotate_theOM5 1 1 299 1 7
113 __search_return 1 1 300 1 3
114 __constValNeg40 2 0 301 1 2
115 __move_right_return 1 1 302 1 4
116 __constVal96 2 0 303 1 33
117 __constVal63 2 0 304 1 19
118 __part_4_return 1 1 305 1 4
119 __part_3_align_return 1 1 306 1 4
120 __part_3_align_wait_return 1 1 307 1 2
121 __cross_squares_7qG2_isFinished_7qG2_000 1 1 308 1 4
122 __rotate_power1 1 1 309 1 7
123 __rotate_theUF5 1 1 310 1 6
124 __cross_squares_return 1 1 311 1 5
125 __rotate_theRVP5 1 1 312 1 9
126 __rotate_thePower2 2 1 313 1 4
127 ____ResetSensorSubroutine_return 1 1 314 1 5
128 __ResetSensorPort 1 1 315 1 5
129 __ResetSensorTmp 1 1 316 1 2
130 __constVal2 2 0 317 1 9
131 __constVal7 2 0 318 1 4
132 ____RotateMotor1_sign_tmp 2 1 319 1 4
133 ____RotateMotor1_wait_return 1 1 320 1 2
134 __constVal10 2 0 321 1 4
135 __PFTmp 1 1 322 1 1
136 __constVal3 2 0 323 1 15
137 ____RotateMotor2_wait_return 1 1 324 1 2
138 ____RotateMotor2_sign_tmp 2 1 325 1 4
139 ____RotateMotor5_sign_tmp 2 1 326 1 4
140 ____RotateMotor5_return 1 1 327 1 10
141 __rotate_theRVI5 1 1 328 1 9
142 ____RotateMotor2_return 1 1 329 1 4
143 __rotate_sync5 1 1 330 1 9
144 __rotate_theTurnPct2 2 1 331 1 4
145 __rotate_power5 1 1 332 1 11
146 __rotate_firstPort5 1 1 333 1 5
147 ____RotateMotor5_wait_return 1 1 334 1 2
148 ____RotateMotor1_return 1 1 335 1 6
149 __rotate_theRM2 1 1 336 1 4
150 __rotate_thePower5 2 1 337 1 4
151 __rotate_theOM2 1 1 338 1 7
152 __rotate_theTurnPct5 2 1 339 1 4
153 __rotate_theRS2 1 1 340 1 3
154 __rotate_stop5 1 1 341 1 9
155 __zfpart_4 1 1 342 1 5
156 __rotate_theRVD5 1 1 343 1 9
157 __rotate_stop2 1 1 344 1 3
158 __zfSetSensorLight_inline_main 1 1 345 1 2
159 __rotate_rs5 1 1 346 1 2
160 __rotate_theUF2 1 1 347 1 6
161 __rotate_turnpct2 2 1 348 1 4
162 __rotate_theRVP2 1 1 349 1 3
163 __constVal1 2 0 350 1 43
164 __constVal32 2 0 351 1 82
165 __zfcross_squares 1 1 352 1 38
166 __constVal0 2 1 353 1 109
167 __rotate_rs2 1 1 354 1 2
168 __rotate_theRVD2 1 1 355 1 3
169 __rotate_theRVI2 1 1 356 1 3
170 __zfmove_right 1 1 357 1 11
171 __zfmove_left 1 1 358 1 11
172 __SPTArgs 8 0 5 8 12
173 __SPTArgs.Result 2 1 360 1 12
174 __SPTArgs.Frequency 3 1 362 2 12
175 __SPTArgs.Duration 3 1 364 2 12
176 __SPTArgs.Loop 1 1 366 1 12
177 __SPTArgs.Volume 1 1 367 1 12
178 __TextOutArgs 8 0 4 16 108
179 __TextOutArgs.Result 2 1 368 1 108
180 __TextOutArgs.Location 8 0 2 4 108
181 __TextOutArgs.Location.X 4 1 372 2 108
182 __TextOutArgs.Location.Y 4 1 374 2 108
183 __TextOutArgs.Text 7 0 376 4 108
184 __TextOutArgs.Text.Text_type 1 0 0 1 0
185 __TextOutArgs.Options 5 1 380 4 108
186 __PointOutArgs 8 0 3 12 64
187 __PointOutArgs.Result 2 1 384 1 64
188 __PointOutArgs.Location 8 0 2 4 64
189 __PointOutArgs.Location.X 4 1 388 2 64
190 __PointOutArgs.Location.Y 4 1 390 2 64
191 __PointOutArgs.Options 5 1 392 4 64
192 __constStr0024 7 0 396 4 1
193 __constStr0024.__constStr0024_type 1 1 0 1 0
194 __constStr0022 7 0 398 4 1
195 __constStr0022.__constStr0022_type 1 1 0 1 0
196 __constStr0023 7 0 400 4 1
197 __constStr0023.__constStr0023_type 1 1 0 1 0
198 __constStr0027 7 0 402 4 1
199 __constStr0027.__constStr0027_type 1 1 0 1 0
200 __OUT_BC 7 0 404 4 25
201 __OUT_BC.__OUT_BC_type 1 0 0 1 0
202 __constStr0025 7 0 406 4 1
203 __constStr0025.__constStr0025_type 1 1 0 1 0
204 __rotate_ports5 7 0 408 4 13
205 __rotate_ports5.__rotate_ports5_type 1 0 0 1 0
206 __constStr0026 7 0 410 4 1
207 __constStr0026.__constStr0026_type 1 1 0 1 0
208 __ArrHelper__cross_squares_244_2 7 0 412 4 4
209 __ArrHelper__cross_squares_244_2.__ArrHelper__cross_squares_244_2_type 1 0 0 1 0
210 __ArrHelper__cross_squares_244_3 7 0 414 4 2
211 __ArrHelper__cross_squares_244_3.__ArrHelper__cross_squares_244_3_type 1 0 0 1 0
212 __strbufcross_squares 7 0 416 4 24
213 __strbufcross_squares.__strbufcross_squares_type 1 0 0 1 0
214 __rotate_ports1 7 0 418 4 9
215 __rotate_ports1.__rotate_ports1_type 1 0 0 1 0
216 __ArrHelper__cross_squares_244_0 7 0 420 4 4
217 __ArrHelper__cross_squares_244_0.__ArrHelper__cross_squares_244_0_type 1 0 0 1 0
218 __ArrHelper__cross_squares_244_1 7 0 422 4 6
219 __ArrHelper__cross_squares_244_1.__ArrHelper__cross_squares_244_1_type 1 0 0 1 0
220 __strbufpart_3_align 7 0 424 4 8
221 __strbufpart_3_align.__strbufpart_3_align_type 1 0 0 1 0
222 __strbufpart_4 7 0 426 4 6
223 __strbufpart_4.__strbufpart_4_type 1 0 0 1 0
224 __rotate_ports2 7 0 428 4 7
225 __rotate_ports2.__rotate_ports2_type 1 0 0 1 0
226 __strretvalcross_squares 7 0 430 4 6
227 __strretvalcross_squares.__strretvalcross_squares_type 1 0 0 1 0
228 __strbufpart_1 7 0 432 4 2
229 __strbufpart_1.__strbufpart_1_type 1 0 0 1 0
230 __strbufpart_3 7 0 434 4 4
231 __strbufpart_3.__strbufpart_3_type 1 0 0 1 0
232 __constStr0009 7 0 436 4 1
233 __constStr0009.__constStr0009_type 1 1 0 1 0
234 __constStr0018 7 0 438 4 1
235 __constStr0018.__constStr0018_type 1 1 0 1 0
236 __constStr0017 7 0 440 4 1
237 __constStr0017.__constStr0017_type 1 1 0 1 0
238 __constStr0016 7 0 442 4 1
239 __constStr0016.__constStr0016_type 1 1 0 1 0
240 __constStr0021 7 0 444 4 1
241 __constStr0021.__constStr0021_type 1 1 0 1 0
242 __constStr0020 7 0 446 4 1
243 __constStr0020.__constStr0020_type 1 1 0 1 0
244 __constStr0019 7 0 448 4 1
245 __constStr0019.__constStr0019_type 1 1 0 1 0
246 __constStr0012 7 0 450 4 1
247 __constStr0012.__constStr0012_type 1 1 0 1 0
248 __constStr0011 7 0 452 4 1
249 __constStr0011.__constStr0011_type 1 1 0 1 0
250 __constStr0010 7 0 454 4 1
251 __constStr0010.__constStr0010_type 1 1 0 1 0
252 __constStr0015 7 0 456 4 1
253 __constStr0015.__constStr0015_type 1 1 0 1 0
254 __constStr0014 7 0 458 4 1
255 __constStr0014.__constStr0014_type 1 1 0 1 0
256 __constStr0013 7 0 460 4 1
257 __constStr0013.__constStr0013_type 1 1 0 1 0
#SOURCES
Clump Line PC Source
0 325 0 #line 325 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 326 0 subcall __initialize_global_data, ____initialize_global_data_return
0 325 2 #line 325 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 325 2 #line 325 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 326 2 set __SetSensorLight_7qG2_port_7qG2_000_inline_main, 0
0 325 5 #line 325 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 326 5 #line 326 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 327 5 mov __SetSensorLight_7qG2_bActive_7qG2_000_inline_main, __constVal1
0 3758 7 #line 3758 "NXCDefs.h"
0 3759 7 mov __SetSensorType_7qG2_port_7qG2_000_inline_SetSensorLight_inline_main, __SetSensorLight_7qG2_port_7qG2_000_inline_main
0 3758 9 #line 3758 "NXCDefs.h"
0 3758 9 #line 3758 "NXCDefs.h"
0 3759 9 mov __DU0SetSensorLight_inline_main, __SetSensorLight_7qG2_bActive_7qG2_000_inline_main
0 3758 11 #line 3758 "NXCDefs.h"
0 3759 11 tst 5, __zfSetSensorLight_inline_main, __DU0SetSensorLight_inline_main
0 3758 14 #line 3758 "NXCDefs.h"
0 3759 14 brtst 4, __001__NXC_Label_4, __zfSetSensorLight_inline_main
0 3758 17 #line 3758 "NXCDefs.h"
0 3759 17 set __D0SetSensorLight_inline_main, 5
0 3758 20 #line 3758 "NXCDefs.h"
0 3759 20 jmp __001__NXC_Label_5
0 3758 22 #line 3758 "NXCDefs.h"
0 3759 22 set __D0SetSensorLight_inline_main, 6
0 3758 25 #line 3758 "NXCDefs.h"
0 3759 25 mov __SetSensorType_7qG2_type_7qG2_000_inline_SetSensorLight_inline_main, __D0SetSensorLight_inline_main
0 3692 27 #line 3692 "NXCDefs.h"
0 3693 27 setin __SetSensorType_7qG2_type_7qG2_000_inline_SetSensorLight_inline_main, __SetSensorType_7qG2_port_7qG2_000_inline_SetSensorLight_inline_main, 0
0 3693 31 #line 3693 "NXCDefs.h"
0 3759 31 #line 3759 "NXCDefs.h"
0 3759 31 #line 3759 "NXCDefs.h"
0 3760 31 mov __SetSensorMode_7qG2_port_7qG2_000_inline_SetSensorLight_inline_main, __SetSensorLight_7qG2_port_7qG2_000_inline_main
0 3759 33 #line 3759 "NXCDefs.h"
0 3759 33 #line 3759 "NXCDefs.h"
0 3760 33 set __SetSensorMode_7qG2_mode_7qG2_000_inline_SetSensorLight_inline_main, 128
0 3759 36 #line 3759 "NXCDefs.h"
0 3705 36 #line 3705 "NXCDefs.h"
0 3706 36 setin __SetSensorMode_7qG2_mode_7qG2_000_inline_SetSensorLight_inline_main, __SetSensorMode_7qG2_port_7qG2_000_inline_SetSensorLight_inline_main, 1
0 3706 40 #line 3706 "NXCDefs.h"
0 3760 40 #line 3760 "NXCDefs.h"
0 3760 40 #line 3760 "NXCDefs.h"
0 3760 40 #line 3760 "NXCDefs.h"
0 3723 40 #line 3723 "NXCDefs.h"
0 3724 40 #pragma macro 4
0 3724 40 mov __ResetSensorPort, __SetSensorLight_7qG2_port_7qG2_000_inline_main
0 3724 42 subcall __ResetSensorSubroutine, ____ResetSensorSubroutine_return
0 6140 44 #line 6140 "NXCDefs.h"
0 3724 44 #line 3724 "NXCDefs.h"
0 3761 44 #line 3761 "NXCDefs.h"
0 326 44 #line 326 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 326 44 #line 326 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 327 44 set __SetSensorTouch_7qG2_port_7qG2_000_inline_main, 1
0 326 47 #line 326 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 3747 47 #line 3747 "NXCDefs.h"
0 3748 47 #pragma macro 6
0 3748 47 setin __constVal1, __SetSensorTouch_7qG2_port_7qG2_000_inline_main, 0
0 3748 51 setin __constVal32, __SetSensorTouch_7qG2_port_7qG2_000_inline_main, 1
0 3748 55 mov __ResetSensorPort, __SetSensorTouch_7qG2_port_7qG2_000_inline_main
0 3748 57 subcall __ResetSensorSubroutine, ____ResetSensorSubroutine_return
0 6155 59 #line 6155 "NXCDefs.h"
0 3748 59 #line 3748 "NXCDefs.h"
0 327 59 #line 327 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 327 59 #line 327 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 328 59 set __SetSensorTouch_7qG2_port_7qG2_000_inline_main, 2
0 327 62 #line 327 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 3747 62 #line 3747 "NXCDefs.h"
0 3748 62 #pragma macro 6
0 3748 62 setin __constVal1, __SetSensorTouch_7qG2_port_7qG2_000_inline_main, 0
0 3748 66 setin __constVal32, __SetSensorTouch_7qG2_port_7qG2_000_inline_main, 1
0 3748 70 mov __ResetSensorPort, __SetSensorTouch_7qG2_port_7qG2_000_inline_main
0 3748 72 subcall __ResetSensorSubroutine, ____ResetSensorSubroutine_return
0 6165 74 #line 6165 "NXCDefs.h"
0 3748 74 #line 3748 "NXCDefs.h"
0 328 74 #line 328 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 329 74 #line 329 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 330 74 set nextTileIsBlack, 0
0 329 77 #line 329 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 329 77 #line 329 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 331 77 #line 331 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 332 77 set nextTileIsWhite, 0
0 331 80 #line 331 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 331 80 #line 331 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 332 80 #line 332 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 332 80 #line 332 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 332 80 #line 332 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 333 80 #line 333 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 334 80 set white, 54
0 333 83 #line 333 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 333 83 #line 333 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 334 83 #line 334 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 335 83 set average, 50
0 334 86 #line 334 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 334 86 #line 334 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 335 86 #line 335 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 336 86 subcall part_1, __part_1_return
0 335 88 #line 335 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 336 88 #line 336 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 337 88 subcall part_2, __part_2_return
0 336 90 #line 336 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 337 90 #line 337 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 338 90 subcall part_3, __part_3_return
0 337 92 #line 337 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 338 92 #line 338 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 339 92 subcall part_4, __part_4_return
0 338 94 #line 338 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
0 339 94 exit -1, -1
1 4559 0 brtst 4, __rotate_Done1, __rotate_angle1
1 4560 3 set ____RotateMotor1_sign_tmp, 0
1 4560 6 brtst EQ, __sign_1, __rotate_angle1
1 4560 9 set ____RotateMotor1_sign_tmp, -1
1 4560 12 brtst LT, __sign_1, __rotate_angle1
1 4560 15 set ____RotateMotor1_sign_tmp, 1
1 4560 18 __sign_1: mov __rotate_thePower1, ____RotateMotor1_sign_tmp
1 4561 20 mov __rotate_theAngle1, __rotate_angle1
1 4561 22 brtst GTEQ, __abs_1, __rotate_angle1
1 4561 25 neg __rotate_theAngle1, __rotate_angle1
1 4562 28 mul __rotate_thePower1, __rotate_thePower1, __rotate_power1
1 4564 32 set __rotate_theUF1, 23
1 4565 35 brtst 4, __rotate_NoSync1, __rotate_sync1
1 4566 38 set __rotate_theOM1, 7
1 4567 41 set __rotate_theRM1, 2
1 4568 44 mov __rotate_theTurnPct1, __rotate_turnpct1
1 4569 46 brtst 4, __rotate_Start1, __rotate_theTurnPct1
1 4570 49 add __rotate_theUF1, __rotate_theUF1, __constVal32
1 4571 53 jmp __rotate_Start1
1 4573 55 set __rotate_theOM1, 3
1 4574 58 set __rotate_theRM1, 0
1 4575 61 set __rotate_theTurnPct1, 0
1 4577 64 set __rotate_theRS1, 32
1 4578 67 setout __rotate_ports1, 1, __rotate_theOM1, 8, __rotate_theRM1, 5, __rotate_theAngle1, 6, __rotate_theRS1, 10, __rotate_theRVP1, 11, __rotate_theRVI1, 12, __rotate_theRVD1, 2, __rotate_thePower1, 7, __rotate_turnpct1, 0, __rotate_theUF1
1 4581 90 index __rotate_firstPort1, __rotate_ports1, 65535
1 4583 94 getout __rotate_power1, __rotate_firstPort1, 2
1 4584 98 brtst 4, __rotate_doneRunning1, __rotate_power1
1 4585 101 getout __rotate_rs1, __rotate_firstPort1, 6
1 4586 105 brcmp 4, __rotate_Running1, __rotate_rs1, __constVal32
1 4588 109 brtst 4, __rotate_Reset1, __rotate_stop1
1 4590 112 set __rotate_theOM1, 7
1 4591 115 set __rotate_theUF1, 7
1 4592 118 setout __rotate_ports1, 1, __rotate_theOM1, 8, __constVal1, 6, __rotate_theRS1, 2, __constVal0, 5, __constVal0, 0, __rotate_theUF1
1 4594 133 getout __rotate_RotCount1, __rotate_firstPort1, 14
1 4596 137 mov __rotate_OldRotCount1, __rotate_RotCount1
1 4597 139 set ____RotateMotor1_wait_ms, 50
1 4597 142 subcall ____RotateMotor1_wait, ____RotateMotor1_wait_return
1 4599 145 getout __rotate_RotCount1, __rotate_firstPort1, 14
1 4600 149 brcmp 5, __rotate_Stabilize1, __rotate_OldRotCount1, __rotate_RotCount1
1 4601 153 set __rotate_theOM1, 4
1 4602 156 setout __rotate_ports1, 8, __rotate_theRM1, 6, __constVal0, 1, __rotate_theOM1, 0, __constVal1
1 4605 167 brtst 4, __rotate_Done1, __rotate_theTurnPct1
1 4606 170 setout __rotate_ports1, 0, __constVal32
1 4608 175 subret ____RotateMotor1_return
2 0 0 gettick ____RotateMotor1_wait_now
2 0 2 add ____RotateMotor1_wait_then, ____RotateMotor1_wait_now, ____RotateMotor1_wait_ms
2 0 6 ____RotateMotor1_waiting: gettick ____RotateMotor1_wait_now
2 0 8 brcmp LT, ____RotateMotor1_waiting, ____RotateMotor1_wait_now, ____RotateMotor1_wait_then
2 0 12 subret ____RotateMotor1_wait_return
3 4612 0 brtst 4, __rotate_Done2, __rotate_angle2
3 4613 3 set ____RotateMotor2_sign_tmp, 0
3 4613 6 brtst EQ, __sign_2, __rotate_angle2
3 4613 9 set ____RotateMotor2_sign_tmp, -1
3 4613 12 brtst LT, __sign_2, __rotate_angle2
3 4613 15 set ____RotateMotor2_sign_tmp, 1
3 4613 18 __sign_2: mov __rotate_thePower2, ____RotateMotor2_sign_tmp
3 4614 20 mov __rotate_theAngle2, __rotate_angle2
3 4614 22 brtst GTEQ, __abs_2, __rotate_angle2
3 4614 25 neg __rotate_theAngle2, __rotate_angle2
3 4615 28 mul __rotate_thePower2, __rotate_thePower2, __rotate_power2
3 4617 32 set __rotate_theUF2, 23
3 4618 35 brtst 4, __rotate_NoSync2, __rotate_sync2
3 4619 38 set __rotate_theOM2, 7
3 4620 41 set __rotate_theRM2, 2
3 4621 44 mov __rotate_theTurnPct2, __rotate_turnpct2
3 4622 46 brtst 4, __rotate_Start2, __rotate_theTurnPct2
3 4623 49 add __rotate_theUF2, __rotate_theUF2, __constVal32
3 4624 53 jmp __rotate_Start2
3 4626 55 set __rotate_theOM2, 3
3 4627 58 set __rotate_theRM2, 0
3 4628 61 set __rotate_theTurnPct2, 0
3 4630 64 set __rotate_theRS2, 32
3 4631 67 setout __rotate_ports2, 1, __rotate_theOM2, 8, __rotate_theRM2, 5, __rotate_theAngle2, 6, __rotate_theRS2, 10, __rotate_theRVP2, 11, __rotate_theRVI2, 12, __rotate_theRVD2, 2, __rotate_thePower2, 7, __rotate_turnpct2, 0, __rotate_theUF2
3 4634 90 index __rotate_firstPort2, __rotate_ports2, 65535
3 4636 94 getout __rotate_power2, __rotate_firstPort2, 2
3 4637 98 brtst 4, __rotate_doneRunning2, __rotate_power2
3 4638 101 getout __rotate_rs2, __rotate_firstPort2, 6
3 4639 105 brcmp 4, __rotate_Running2, __rotate_rs2, __constVal32
3 4641 109 brtst 4, __rotate_Reset2, __rotate_stop2
3 4643 112 set __rotate_theOM2, 7
3 4644 115 set __rotate_theUF2, 7
3 4645 118 setout __rotate_ports2, 1, __rotate_theOM2, 8, __constVal1, 6, __rotate_theRS2, 2, __constVal0, 5, __constVal0, 0, __rotate_theUF2
3 4647 133 getout __rotate_RotCount2, __rotate_firstPort2, 14
3 4649 137 mov __rotate_OldRotCount2, __rotate_RotCount2
3 4650 139 set ____RotateMotor2_wait_ms, 50
3 4650 142 subcall ____RotateMotor2_wait, ____RotateMotor2_wait_return
3 4652 145 getout __rotate_RotCount2, __rotate_firstPort2, 14
3 4653 149 brcmp 5, __rotate_Stabilize2, __rotate_OldRotCount2, __rotate_RotCount2
3 4654 153 set __rotate_theOM2, 4
3 4655 156 setout __rotate_ports2, 8, __rotate_theRM2, 6, __constVal0, 1, __rotate_theOM2, 0, __constVal1
3 4658 167 brtst 4, __rotate_Done2, __rotate_theTurnPct2
3 4659 170 setout __rotate_ports2, 0, __constVal32
3 4661 175 subret ____RotateMotor2_return
4 0 0 gettick ____RotateMotor2_wait_now
4 0 2 add ____RotateMotor2_wait_then, ____RotateMotor2_wait_now, ____RotateMotor2_wait_ms
4 0 6 ____RotateMotor2_waiting: gettick ____RotateMotor2_wait_now
4 0 8 brcmp LT, ____RotateMotor2_waiting, ____RotateMotor2_wait_now, ____RotateMotor2_wait_then
4 0 12 subret ____RotateMotor2_wait_return
5 4771 0 brtst 4, __rotate_Done5, __rotate_angle5
5 4772 3 set ____RotateMotor5_sign_tmp, 0
5 4772 6 brtst EQ, __sign_5, __rotate_angle5
5 4772 9 set ____RotateMotor5_sign_tmp, -1
5 4772 12 brtst LT, __sign_5, __rotate_angle5
5 4772 15 set ____RotateMotor5_sign_tmp, 1
5 4772 18 __sign_5: mov __rotate_thePower5, ____RotateMotor5_sign_tmp
5 4773 20 mov __rotate_theAngle5, __rotate_angle5
5 4773 22 brtst GTEQ, __abs_5, __rotate_angle5
5 4773 25 neg __rotate_theAngle5, __rotate_angle5
5 4774 28 mul __rotate_thePower5, __rotate_thePower5, __rotate_power5
5 4776 32 set __rotate_theUF5, 23
5 4777 35 brtst 4, __rotate_NoSync5, __rotate_sync5
5 4778 38 set __rotate_theOM5, 7
5 4779 41 set __rotate_theRM5, 2
5 4780 44 mov __rotate_theTurnPct5, __rotate_turnpct5
5 4781 46 brtst 4, __rotate_Start5, __rotate_theTurnPct5
5 4782 49 add __rotate_theUF5, __rotate_theUF5, __constVal32
5 4783 53 jmp __rotate_Start5
5 4785 55 set __rotate_theOM5, 3
5 4786 58 set __rotate_theRM5, 0
5 4787 61 set __rotate_theTurnPct5, 0
5 4789 64 set __rotate_theRS5, 32
5 4790 67 setout __rotate_ports5, 1, __rotate_theOM5, 8, __rotate_theRM5, 5, __rotate_theAngle5, 6, __rotate_theRS5, 10, __rotate_theRVP5, 11, __rotate_theRVI5, 12, __rotate_theRVD5, 2, __rotate_thePower5, 7, __rotate_turnpct5, 0, __rotate_theUF5
5 4793 90 index __rotate_firstPort5, __rotate_ports5, 65535
5 4795 94 getout __rotate_power5, __rotate_firstPort5, 2
5 4796 98 brtst 4, __rotate_doneRunning5, __rotate_power5
5 4797 101 getout __rotate_rs5, __rotate_firstPort5, 6
5 4798 105 brcmp 4, __rotate_Running5, __rotate_rs5, __constVal32
5 4800 109 brtst 4, __rotate_Reset5, __rotate_stop5
5 4802 112 set __rotate_theOM5, 7
5 4803 115 set __rotate_theUF5, 7
5 4804 118 setout __rotate_ports5, 1, __rotate_theOM5, 8, __constVal1, 6, __rotate_theRS5, 2, __constVal0, 5, __constVal0, 0, __rotate_theUF5
5 4806 133 getout __rotate_RotCount5, __rotate_firstPort5, 14
5 4808 137 mov __rotate_OldRotCount5, __rotate_RotCount5
5 4809 139 set ____RotateMotor5_wait_ms, 50
5 4809 142 subcall ____RotateMotor5_wait, ____RotateMotor5_wait_return
5 4811 145 getout __rotate_RotCount5, __rotate_firstPort5, 14
5 4812 149 brcmp 5, __rotate_Stabilize5, __rotate_OldRotCount5, __rotate_RotCount5
5 4813 153 set __rotate_theOM5, 4
5 4814 156 setout __rotate_ports5, 8, __rotate_theRM5, 6, __constVal0, 1, __rotate_theOM5, 0, __constVal1
5 4817 167 brtst 4, __rotate_Done5, __rotate_theTurnPct5
5 4818 170 setout __rotate_ports5, 0, __constVal32
5 4820 175 subret ____RotateMotor5_return
6 0 0 gettick ____RotateMotor5_wait_now
6 0 2 add ____RotateMotor5_wait_then, ____RotateMotor5_wait_now, ____RotateMotor5_wait_ms
6 0 6 ____RotateMotor5_waiting: gettick ____RotateMotor5_wait_now
6 0 8 brcmp LT, ____RotateMotor5_waiting, ____RotateMotor5_wait_now, ____RotateMotor5_wait_then
6 0 12 subret ____RotateMotor5_wait_return
7 4915 0 setin __constVal1, __ResetSensorPort, 5
7 4917 4 getin __ResetSensorTmp, __ResetSensorPort, 5
7 4918 8 brtst 5, __SensorStillInvalid, __ResetSensorTmp
7 4919 11 subret ____ResetSensorSubroutine_return
8 29 0 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 30 0 getout __move_right_7qG2_degreeRight_7qG2_000, __constVal2, 14
8 29 4 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 29 4 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 30 4 getin __signed_stack_001move_right, __constVal0, 4
8 29 8 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 29 8 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 29 8 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 29 8 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 29 8 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 30 8 sub __D0move_right, white, __constVal10
8 29 12 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 30 12 cmp 3, __zfmove_right, __signed_stack_001move_right, __D0move_right
8 29 16 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 29 16 #line 29 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 30 16 not __D0move_right, __zfmove_right
8 30 19 #line 30 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 31 19 tst 5, __zfmove_right, __D0move_right
8 30 22 #line 30 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 31 22 brtst 4, __NXC_Label_488, __zfmove_right
8 30 25 #line 30 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 31 25 set __D0move_right, 40
8 31 28 #line 31 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 32 28 #pragma macro 7
8 32 28 setout __constVal2, 2, __D0move_right, 1, __constVal3, 8, __constVal0, 6, __constVal32, 7, __constVal0, 5, __constVal0, 10, __constVal96, 11, __constVal32, 12, __constVal32, 0, __constVal63
8 3907 51 #line 3907 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 31 51 #line 31 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 32 51 #line 32 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 33 51 jmp __NXC_Label_487
8 32 53 #line 32 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 33 53 #line 33 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 34 53 #pragma macro 7
8 34 53 setout __OUT_BC, 2, __constVal0, 1, __constVal3, 8, __constVal0, 6, __constVal32, 7, __constVal0, 5, __constVal0, 10, __constVal96, 11, __constVal32, 12, __constVal32, 0, __constVal63
8 3914 76 #line 3914 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 33 76 #line 33 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 33 76 #line 33 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 34 76 getout __signed_stack_001move_right, __constVal2, 14
8 33 80 #line 33 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 36 80 #line 36 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 36 80 #line 36 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 37 80 sub __move_right_7qG2_degreeRight_7qG2_000, __signed_stack_001move_right, __move_right_7qG2_degreeRight_7qG2_000
8 36 84 #line 36 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 36 84 #line 36 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 36 84 #line 36 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 37 84 mov __signed_stack_001move_right, __move_right_7qG2_degreeRight_7qG2_000
8 36 86 #line 36 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 36 86 #line 36 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 37 86 set __D0move_right, 60
8 36 89 #line 36 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 37 89 cmp 0, __zfmove_right, __signed_stack_001move_right, __D0move_right
8 36 93 #line 36 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 37 93 mov __D0move_right, __zfmove_right
8 37 96 #line 37 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 38 96 brtst 4, __NXC_Label_501, __zfmove_right
8 38 99 #line 38 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 38 99 #line 38 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 39 99 add __move_right_7qG2_degreeRight_7qG2_000, __move_right_7qG2_degreeRight_7qG2_000, __constVal25
8 38 103 #line 38 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 38 103 #line 38 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 39 103 jmp __NXC_Label_504
8 38 105 #line 38 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 39 105 mov __signed_stack_001move_right, __move_right_7qG2_degreeRight_7qG2_000
8 38 107 #line 38 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 38 107 #line 38 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 39 107 set __D0move_right, 120
8 38 110 #line 38 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 39 110 cmp 0, __zfmove_right, __signed_stack_001move_right, __D0move_right
8 38 114 #line 38 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 39 114 mov __D0move_right, __zfmove_right
8 39 117 #line 39 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 40 117 brtst 4, __NXC_Label_507, __zfmove_right
8 40 120 #line 40 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 40 120 #line 40 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 41 120 add __move_right_7qG2_degreeRight_7qG2_000, __move_right_7qG2_degreeRight_7qG2_000, __constVal10
8 40 124 #line 40 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 41 124 #line 41 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 41 124 #line 41 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 41 124 #line 41 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 42 124 mov __signed_stack_001move_right, __constValNeg40
8 41 126 #line 41 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 41 126 #line 41 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 42 126 mov __D0move_right, __move_right_7qG2_degreeRight_7qG2_000
8 42 128 #line 42 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 43 128 #pragma macro 33
8 43 128 acquire __rotateMutex2
8 43 129 arrbuild __rotate_ports2, __constVal2
8 43 133 mov __rotate_power2, __signed_stack_001move_right
8 43 135 mov __rotate_angle2, __D0move_right
8 43 137 mov __rotate_turnpct2, __constVal0
8 43 139 mov __rotate_sync2, __constVal0
8 43 141 mov __rotate_stop2, __constVal1
8 43 143 mov __rotate_theRVP2, __constVal32
8 43 145 mov __rotate_theRVI2, __constVal0
8 43 147 mov __rotate_theRVD2, __constVal96
8 43 149 subcall __RotateMotor2, ____RotateMotor2_return
8 43 152 release __rotateMutex2
8 3989 153 #line 3989 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 42 153 #line 42 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 43 153 #line 43 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 44 153 mov __D0move_right, __move_right_7qG2_degreeRight_7qG2_000
8 43 155 #line 43 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 44 155 subret __move_right_return
8 43 157 #line 43 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 50 157 #line 50 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
8 51 157 subret __move_right_return
9 52 0 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 53 0 getout __move_left_7qG2_degreeLeft_7qG2_000, __constVal1, 14
9 52 4 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 52 4 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 53 4 getin __signed_stack_001move_left, __constVal0, 4
9 52 8 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 52 8 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 52 8 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 52 8 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 52 8 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 53 8 sub __D0move_left, white, __constVal10
9 52 12 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 53 12 cmp 3, __zfmove_left, __signed_stack_001move_left, __D0move_left
9 52 16 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 52 16 #line 52 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 53 16 not __D0move_left, __zfmove_left
9 53 19 #line 53 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 54 19 tst 5, __zfmove_left, __D0move_left
9 53 22 #line 53 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 54 22 brtst 4, __NXC_Label_519, __zfmove_left
9 53 25 #line 53 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 54 25 set __D0move_left, 40
9 54 28 #line 54 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 55 28 #pragma macro 7
9 55 28 setout __constVal1, 2, __D0move_left, 1, __constVal3, 8, __constVal0, 6, __constVal32, 7, __constVal0, 5, __constVal0, 10, __constVal96, 11, __constVal32, 12, __constVal32, 0, __constVal63
9 4047 51 #line 4047 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 54 51 #line 54 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 55 51 #line 55 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 56 51 jmp __NXC_Label_518
9 55 53 #line 55 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 56 53 #line 56 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 57 53 #pragma macro 7
9 57 53 setout __OUT_BC, 2, __constVal0, 1, __constVal3, 8, __constVal0, 6, __constVal32, 7, __constVal0, 5, __constVal0, 10, __constVal96, 11, __constVal32, 12, __constVal32, 0, __constVal63
9 4054 76 #line 4054 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 56 76 #line 56 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 56 76 #line 56 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 57 76 getout __signed_stack_001move_left, __constVal1, 14
9 56 80 #line 56 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 57 80 #line 57 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 57 80 #line 57 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 58 80 sub __move_left_7qG2_degreeLeft_7qG2_000, __signed_stack_001move_left, __move_left_7qG2_degreeLeft_7qG2_000
9 57 84 #line 57 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 57 84 #line 57 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 57 84 #line 57 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 58 84 mov __signed_stack_001move_left, __move_left_7qG2_degreeLeft_7qG2_000
9 57 86 #line 57 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 57 86 #line 57 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 58 86 set __D0move_left, 60
9 57 89 #line 57 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 58 89 cmp 0, __zfmove_left, __signed_stack_001move_left, __D0move_left
9 57 93 #line 57 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 58 93 mov __D0move_left, __zfmove_left
9 58 96 #line 58 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 59 96 brtst 4, __NXC_Label_532, __zfmove_left
9 59 99 #line 59 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 59 99 #line 59 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 60 99 add __move_left_7qG2_degreeLeft_7qG2_000, __move_left_7qG2_degreeLeft_7qG2_000, __constVal25
9 59 103 #line 59 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 59 103 #line 59 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 60 103 jmp __NXC_Label_535
9 59 105 #line 59 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 60 105 mov __signed_stack_001move_left, __move_left_7qG2_degreeLeft_7qG2_000
9 59 107 #line 59 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 59 107 #line 59 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 60 107 set __D0move_left, 120
9 59 110 #line 59 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 60 110 cmp 0, __zfmove_left, __signed_stack_001move_left, __D0move_left
9 59 114 #line 59 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 60 114 mov __D0move_left, __zfmove_left
9 60 117 #line 60 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 61 117 brtst 4, __NXC_Label_538, __zfmove_left
9 61 120 #line 61 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 61 120 #line 61 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 62 120 add __move_left_7qG2_degreeLeft_7qG2_000, __move_left_7qG2_degreeLeft_7qG2_000, __constVal10
9 61 124 #line 61 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 62 124 #line 62 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 62 124 #line 62 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 63 124 #line 63 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 64 124 mov __D0move_left, __move_left_7qG2_degreeLeft_7qG2_000
9 63 126 #line 63 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 64 126 subret __move_left_return
9 63 128 #line 63 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 77 128 #line 77 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
9 78 128 subret __move_left_return
10 79 0 #line 79 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 80 0 #pragma macro 7
10 80 0 setout __OUT_BC, 2, __constVal0, 1, __constVal3, 8, __constVal0, 6, __constVal32, 7, __constVal0, 5, __constVal0, 10, __constVal96, 11, __constVal32, 12, __constVal32, 0, __constVal63
10 4135 23 #line 4135 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 79 23 #line 79 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 80 23 #line 80 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 23 subcall move_right, __move_right_return
10 80 25 #line 80 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 25 mov __search_7qG2_degreeRight_7qG2_000, __D0move_right
10 80 27 #line 80 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 27 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 82 27 subcall move_left, __move_left_return
10 81 29 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 82 29 mov __search_7qG2_degreeLeft_7qG2_000, __D0move_left
10 81 31 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 31 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 82 31 mov __signed_stack_001search, __constValNeg40
10 81 33 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 33 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 82 33 mov __signed_stack_002search, __search_7qG2_degreeLeft_7qG2_000
10 81 35 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 35 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 35 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 35 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 35 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 82 35 sub __signed_stack_003search, __search_7qG2_degreeRight_7qG2_000, __search_7qG2_degreeLeft_7qG2_000
10 81 39 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 39 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 81 39 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 82 39 div __D0search, __signed_stack_003search, __search_7qG2_divisor_7qG2_000
10 81 43 #line 81 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 82 43 add __D0search, __signed_stack_002search, __D0search
10 82 47 #line 82 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 83 47 #pragma macro 33
10 83 47 acquire __rotateMutex1
10 83 48 arrbuild __rotate_ports1, __constVal1
10 83 52 mov __rotate_power1, __signed_stack_001search
10 83 54 mov __rotate_angle1, __D0search
10 83 56 mov __rotate_turnpct1, __constVal0
10 83 58 mov __rotate_sync1, __constVal0
10 83 60 mov __rotate_stop1, __constVal1
10 83 62 mov __rotate_theRVP1, __constVal32
10 83 64 mov __rotate_theRVI1, __constVal0
10 83 66 mov __rotate_theRVD1, __constVal96
10 83 68 subcall __RotateMotor1, ____RotateMotor1_return
10 83 71 release __rotateMutex1
10 4194 72 #line 4194 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 82 72 #line 82 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 83 72 #line 83 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 84 72 set nextTileIsBlack, 0
10 83 75 #line 83 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 83 75 #line 83 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 84 75 #line 84 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 85 75 set nextTileIsWhite, 1
10 84 78 #line 84 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 84 78 #line 84 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 85 78 #line 85 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 86 78 set isOnBlack, 1
10 85 81 #line 85 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 85 81 #line 85 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 96 81 #line 96 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
10 97 81 subret __search_return
11 6104 0 #line 6104 "NXCDefs.h"
11 6105 0 #pragma macro 6
11 6105 0 acquire __PointOutMutex
11 6105 1 mov __PointOutArgs.Location.X, __constVal200
11 6105 3 mov __PointOutArgs.Location.Y, __constVal200
11 6105 5 mov __PointOutArgs.Options, __constVal1
11 6105 7 syscall 14, __PointOutArgs
11 6105 10 release __PointOutMutex
11 4231 11 #line 4231 "NXCDefs.h"
11 6105 11 #line 6105 "NXCDefs.h"
11 98 11 #line 98 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 98 11 #line 98 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 99 11 set __signed_stack_001cross_squares, 0
11 98 14 #line 98 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 98 14 #line 98 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 99 14 set __signed_stack_002cross_squares, 32
11 98 17 #line 98 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 98 17 #line 98 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 99 17 strcat __strbufcross_squares, __constStr0009
11 100 21 #line 100 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 101 21 acquire __TextOutMutex
11 100 22 #line 100 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 101 22 mov __TextOutArgs.Location.X, __signed_stack_001cross_squares
11 100 25 #line 100 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 101 25 mov __TextOutArgs.Location.Y, __signed_stack_002cross_squares
11 100 28 #line 100 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 101 28 set __TextOutArgs.Options, 0
11 100 31 #line 100 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 101 31 mov __TextOutArgs.Text, __strbufcross_squares
11 100 33 #line 100 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 101 33 syscall 13, __TextOutArgs
11 100 36 #line 100 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 101 36 mov __D0cross_squares, __TextOutArgs.Result
11 100 39 #line 100 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 101 39 release __TextOutMutex
11 100 40 #line 100 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 101 40 #line 101 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 102 40 set __cross_squares_7qG2_isFinished_7qG2_000, 0
11 101 43 #line 101 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 103 43 #line 103 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 104 43 set __cross_squares_7qG2_squaresCrossed_7qG2_000, 0
11 103 46 #line 103 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 104 46 #line 104 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 105 46 set nextTileIsBlack, 0
11 104 49 #line 104 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 104 49 #line 104 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 105 49 #line 105 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 106 49 set nextTileIsWhite, 1
11 105 52 #line 105 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 105 52 #line 105 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 107 52 #line 107 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 108 52 set isOnBlack, 1
11 107 55 #line 107 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 107 55 #line 107 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 107 55 #line 107 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 108 55 set __signed_stack_001cross_squares, 75
11 107 58 #line 107 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 107 58 #line 107 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 108 58 set __D0cross_squares, 0
11 108 61 #line 108 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 109 61 #pragma macro 7
11 109 61 setout __OUT_BC, 2, __signed_stack_001cross_squares, 1, __constVal7, 8, __constVal2, 7, __D0cross_squares, 6, __constVal32, 5, __constVal0, 10, __constVal96, 11, __constVal32, 12, __constVal32, 0, __constVal63
11 4317 84 #line 4317 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 108 84 #line 108 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 108 84 #line 108 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 108 84 #line 108 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 109 84 not __DU0cross_squares, __cross_squares_7qG2_isFinished_7qG2_000
11 111 87 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 87 tst 5, __zfcross_squares, __DU0cross_squares
11 111 90 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 90 brtst 4, __NXC_Label_580, __zfcross_squares
11 111 93 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 93 getin __signed_stack_001cross_squares, __constVal0, 4
11 111 97 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 111 97 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 97 mov __D0cross_squares, average
11 111 99 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 99 cmp 1, __zfcross_squares, __signed_stack_001cross_squares, __D0cross_squares
11 111 103 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 103 mov __D0cross_squares, __zfcross_squares
11 111 106 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 106 brtst 4, __NXC_Label_584, __zfcross_squares
11 111 109 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 109 mov __signed_stack_001cross_squares, __D0cross_squares
11 111 111 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 111 mov __DU0cross_squares, nextTileIsWhite
11 111 113 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 113 tst 5, __zfcross_squares, __DU0cross_squares
11 111 116 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 111 116 #line 111 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 112 116 and __D0cross_squares, __signed_stack_001cross_squares, __zfcross_squares
11 112 120 #line 112 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 113 120 tst 5, __zfcross_squares, __D0cross_squares
11 112 123 #line 112 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 113 123 brtst 4, __NXC_Label_585, __zfcross_squares
11 113 126 #line 113 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 114 126 set nextTileIsBlack, 1
11 113 129 #line 113 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 113 129 #line 113 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 114 129 #line 114 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 115 129 set nextTileIsWhite, 0
11 114 132 #line 114 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 114 132 #line 114 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 115 132 #line 115 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 116 132 set isOnBlack, 0
11 115 135 #line 115 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 115 135 #line 115 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 6104 135 #line 6104 "NXCDefs.h"
11 6105 135 #pragma macro 6
11 6105 135 acquire __PointOutMutex
11 6105 136 mov __PointOutArgs.Location.X, __constVal200
11 6105 138 mov __PointOutArgs.Location.Y, __constVal200
11 6105 140 mov __PointOutArgs.Options, __constVal1
11 6105 142 syscall 14, __PointOutArgs
11 6105 145 release __PointOutMutex
11 4380 146 #line 4380 "NXCDefs.h"
11 6105 146 #line 6105 "NXCDefs.h"
11 116 146 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 116 146 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 117 146 set __signed_stack_001cross_squares, 0
11 116 149 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 116 149 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 117 149 set __signed_stack_002cross_squares, 32
11 116 152 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 116 152 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 117 152 mov __ArrHelper__cross_squares_244_0, __constStr0010
11 116 154 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 117 154 mov __D0cross_squares, __cross_squares_7qG2_squaresCrossed_7qG2_000
11 116 156 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 117 156 numtostr __strretvalcross_squares, __D0cross_squares
11 116 159 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 117 159 strcat __strbufcross_squares, __strretvalcross_squares
11 116 163 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 117 163 mov __ArrHelper__cross_squares_244_1, __strbufcross_squares
11 116 165 #line 116 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 117 165 strcat __strbufcross_squares, __ArrHelper__cross_squares_244_0, __ArrHelper__cross_squares_244_1
11 117 170 #line 117 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 118 170 acquire __TextOutMutex
11 117 171 #line 117 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 118 171 mov __TextOutArgs.Location.X, __signed_stack_001cross_squares
11 117 174 #line 117 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 118 174 mov __TextOutArgs.Location.Y, __signed_stack_002cross_squares
11 117 177 #line 117 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 118 177 set __TextOutArgs.Options, 0
11 117 180 #line 117 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 118 180 mov __TextOutArgs.Text, __strbufcross_squares
11 117 182 #line 117 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 118 182 syscall 13, __TextOutArgs
11 117 185 #line 117 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 118 185 mov __D0cross_squares, __TextOutArgs.Result
11 117 188 #line 117 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 118 188 release __TextOutMutex
11 117 189 #line 117 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 120 189 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 120 189 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 189 mov __signed_stack_001cross_squares, __cross_squares_7qG2_squaresCrossed_7qG2_000
11 120 191 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 120 191 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 191 mov __D0cross_squares, __cross_squares_7qG2_numberToCross_7qG2_000
11 120 193 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 193 cmp 0, __zfcross_squares, __signed_stack_001cross_squares, __D0cross_squares
11 120 197 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 197 mov __D0cross_squares, __zfcross_squares
11 120 200 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 200 brtst 4, __NXC_Label_599, __zfcross_squares
11 120 203 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 203 mov __signed_stack_001cross_squares, __D0cross_squares
11 120 205 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 205 getin __signed_stack_002cross_squares, __constVal0, 4
11 120 209 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 120 209 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 209 mov __D0cross_squares, average
11 120 211 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 211 cmp 0, __zfcross_squares, __signed_stack_002cross_squares, __D0cross_squares
11 120 215 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 120 215 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 215 and __D0cross_squares, __signed_stack_001cross_squares, __zfcross_squares
11 120 219 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 219 tst 5, __zfcross_squares, __D0cross_squares
11 120 222 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 222 mov __D0cross_squares, __zfcross_squares
11 120 225 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 225 brtst 4, __NXC_Label_599, __zfcross_squares
11 120 228 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 228 mov __signed_stack_001cross_squares, __D0cross_squares
11 120 230 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 230 mov __DU0cross_squares, nextTileIsBlack
11 120 232 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 232 tst 5, __zfcross_squares, __DU0cross_squares
11 120 235 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 120 235 #line 120 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 121 235 and __D0cross_squares, __signed_stack_001cross_squares, __zfcross_squares
11 121 239 #line 121 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 122 239 tst 5, __zfcross_squares, __D0cross_squares
11 121 242 #line 121 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 122 242 brtst 4, __NXC_Label_604, __zfcross_squares
11 6104 245 #line 6104 "NXCDefs.h"
11 6105 245 #pragma macro 6
11 6105 245 acquire __PointOutMutex
11 6105 246 mov __PointOutArgs.Location.X, __constVal200
11 6105 248 mov __PointOutArgs.Location.Y, __constVal200
11 6105 250 mov __PointOutArgs.Options, __constVal1
11 6105 252 syscall 14, __PointOutArgs
11 6105 255 release __PointOutMutex
11 4481 256 #line 4481 "NXCDefs.h"
11 6105 256 #line 6105 "NXCDefs.h"
11 122 256 #line 122 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 122 256 #line 122 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 123 256 set __signed_stack_001cross_squares, 0
11 122 259 #line 122 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 122 259 #line 122 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 123 259 set __signed_stack_002cross_squares, 32
11 122 262 #line 122 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 122 262 #line 122 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 123 262 strcat __strbufcross_squares, __constStr0011
11 123 266 #line 123 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 124 266 acquire __TextOutMutex
11 123 267 #line 123 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 124 267 mov __TextOutArgs.Location.X, __signed_stack_001cross_squares
11 123 270 #line 123 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 124 270 mov __TextOutArgs.Location.Y, __signed_stack_002cross_squares
11 123 273 #line 123 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 124 273 set __TextOutArgs.Options, 0
11 123 276 #line 123 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 124 276 mov __TextOutArgs.Text, __strbufcross_squares
11 123 278 #line 123 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 124 278 syscall 13, __TextOutArgs
11 123 281 #line 123 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 124 281 mov __D0cross_squares, __TextOutArgs.Result
11 123 284 #line 123 "/home/cshome/n/ndowse/Documents/343/asgn1/asgn1.nxc"
11 124 284 release __TextOutMutex