-
Notifications
You must be signed in to change notification settings - Fork 53
/
invertedmaps.asm
1563 lines (1153 loc) · 31 KB
/
invertedmaps.asm
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
;===================================================================================================
OWWriteSize = $00
OWWriteIncrement = $02
OWWriteTile = $06
OWWriteCommand = $08
;---------------------------------------------------------------------------------------------------
function OWW_RLESize(s) = s<<8
!OWW_STOP = $8000
!OWW_END = $FFFF
!OWW_SKIP = $FFFF
!OWW_Vertical = $0080
!OWW_Horizontal = $0000
;===================================================================================================
Overworld_LoadNewTiles:
LDA.b OverworldIndex
CMP.w #$0080
BCS .exit
ASL
TAX
LDA.l OverworldMapChangePointers,X
BNE .do_overlay
.exit
LDX.w #$001E
LDA.w #$0DBE
RTL
.end
PLB
BRA .exit
.do_overlay
PHB
PHK
PLB
; give Y the pointer to our data
TAY
.next_tile
; format:
; dw <tile>, <pos>
; or if bit 15 is set
; dw <command>, <params>...
; commands are:
; 1sss ssss dccc cccc
; s - size (if applicable)
; d - direction (if applicable)
; c - command id
; FFFF is end
LDA.w $0000,Y
INY
INY
TAX
BMI .command
LDX.w $0000,Y
STA.l $7E0000,X
INY
INY
BRA .next_tile
; when using commands, list parameters will never have bit-15 set
; so we use that as our sentinel in data lists
; we could encode the size for everything
; but that makes adjustments more burdensome
.command
CMP.w #!OWW_END
BEQ .end
STA.b OWWriteCommand
AND.w #$007F
ASL
TAX
JSR (.command_vectors,X)
BRA .next_tile
.command_vectors
; dw !OWW_Stripe|!OWW_<direction>
; dw <start>
; dw <tile1>, <tile2>, ... <tileN>|!OWW_STOP
; use !SKIP to not place a tile but continue the stripe
!OWW_Stripe = $8000
dw .stripe ; 00
; dw !OWW_StripeRLE|!OWW_<direction>|RLESize(<size>)
; dw <tile>, <start>
!OWW_StripeRLE = $8001
dw .stripe_rle ; 01
; dw !OWW_StripeRLEINC|!OWW_<direction>|RLESize(<size>)
; dw <tile>, <start>
!OWW_StripeRLEINC = $8002
dw .stripe_rle_inc ; 02
; dw !OWW_ArbTileCopy
; dw <tile>
; dw <pos1>, <pos2>, ... <posN>|!OWW_STOP
!OWW_ArbTileCopy = $8003
dw .arbitrary_tile_copy ; 03
dw .nothing ; 04
dw .nothing ; 05
dw .nothing ; 06
dw .nothing ; 07
dw .nothing ; 08
dw .nothing ; 09
dw .nothing ; 0A
dw .nothing ; 0B
dw .nothing ; 0C
; dw !OWW_SkipIfInverted, <address>
; skips to <address> when inverted mode
!OWW_SkipIfInverted = $800D
dw .inverted_skip ; 0D
; dw !OWW_SkipIfNotInverted, <address>
; skips to <address> when not inverted
!OWW_SkipIfNotInverted = $800E
dw .inverted_block ; 0E
; dw !OWW_InvertedOnly
; cancels everything if not inverted
!OWW_InvertedOnly = $800F
dw .inverted_only ; 0F
; dw !OWW_CustomCommand, <vector>
!OWW_CustomCommand = $8010
dw .custom_command ; 10
dw .nothing ; 11
dw .nothing ; 12
dw .nothing ; 13
dw .nothing ; 14
dw .nothing ; 15
dw .nothing ; 16
dw .nothing ; 17
dw .nothing ; 18
dw .nothing ; 19
;---------------------------------------------------------------------------------------------------
.custom_command
TYX
INY
INY
JMP.w ($0000,X)
;---------------------------------------------------------------------------------------------------
.inverted_skip
LDX.w $0000,Y
INY
INY
LDA.l InvertedMode
AND.w #$00FF
BEQ .dont_change_inverted
TXY
.nothing
RTS
;---------------------------------------------------------------------------------------------------
.inverted_block
LDX.w $0000,Y
INY
INY
BRA .check_inverted
#ReliableOWWSentinel:
dw !OWW_END
.inverted_only
LDX.w #ReliableOWWSentinel
.check_inverted
LDA.l InvertedMode
AND.w #$00FF
BNE .dont_change_inverted
TXY
.dont_change_inverted
RTS
;---------------------------------------------------------------------------------------------------
.get_increment
LDA.b OWWriteCommand
AND.w #$0080
BNE .vertical_increment
LDA.w #$0002
.vertical_increment
STA.b OWWriteIncrement
RTS
;---------------------------------------------------------------------------------------------------
.stripe
JSR .get_increment
LDX.w $0000,Y
BRA ++ ; to increment at start of loop properly
-- TXA
CLC
ADC.b OWWriteIncrement
TAX
++ INY
INY
LDA.w $0000,Y
BMI .end_stripe_maybe
STA.l $7E0000,X
BRA --
.end_stripe_maybe
CMP.w #!OWW_SKIP ; just skip, so we can have fewer discontinuous commands
BEQ --
AND.w #$7FFF
STA.l $7E0000,X
INY
INY
RTS
;---------------------------------------------------------------------------------------------------
.stripe_rle_inc
JSR .get_increment
JSR .get_rle_size_and_tile
LDX.w $0000,Y
BRA ++
-- TXA
CLC
ADC.b OWWriteIncrement
TAX
LDA.b OWWriteTile
INC
STA.b OWWriteTile
++ STA.l $7E0000,X
DEC.b OWWriteSize
BNE --
INY
INY
RTS
;---------------------------------------------------------------------------------------------------
.get_rle_size_and_tile
LDA.b OWWriteCommand+1
AND.w #$007F
STA.b OWWriteSize
LDA.w $0000,Y
STA.b OWWriteTile
INY
INY
RTS
;---------------------------------------------------------------------------------------------------
.stripe_rle
JSR .get_increment
JSR .get_rle_size_and_tile
LDX.w $0000,Y
BRA ++
-- TXA
CLC
ADC.b OWWriteIncrement
TAX
LDA.b OWWriteTile
++ STA.l $7E0000,X
DEC.b OWWriteSize
BNE --
INY
INY
RTS
;---------------------------------------------------------------------------------------------------
; Don't use SKIP with this, since that's not really meaningful anyways...
;---------------------------------------------------------------------------------------------------
.arbitrary_tile_copy
LDA.w $0000,Y
-- INY
INY
LDX.w $0000,Y
BMI .last_arb
STA.l $7E0000,X
BRA --
.last_arb
PHA
TXA
AND.w #$7FFF
TAX
PLA
STA.l $7E0000,X
INY
INY
RTS
;---------------------------------------------------------------------------------------------------
;===================================================================================================
OverworldMapChangePointers:
; light world
dw $0000 ; 00
dw $0000 ; 01
dw $0000 ; 02
dw .map03 ; 03
dw $0000 ; 04
dw .map05 ; 05
dw $0000 ; 06
dw .map07 ; 07
dw $0000 ; 08
dw $0000 ; 09
dw $0000 ; 0A
dw $0000 ; 0B
dw $0000 ; 0C
dw $0000 ; 0D
dw .map0E ; 0E
dw $0000 ; 0F
dw .map10 ; 10
dw $0000 ; 11
dw $0000 ; 12
dw $0000 ; 13
dw .map14 ; 14
dw $0000 ; 15
dw $0000 ; 16
dw $0000 ; 17
dw $0000 ; 18
dw $0000 ; 19
dw $0000 ; 1A
dw .map1B ; 1B
dw $0000 ; 1C
dw $0000 ; 1D
dw $0000 ; 1E
dw $0000 ; 1F
dw $0000 ; 20
dw $0000 ; 21
dw $0000 ; 22
dw $0000 ; 23
dw $0000 ; 24
dw $0000 ; 25
dw $0000 ; 26
dw $0000 ; 27
dw $0000 ; 28
dw .map29 ; 29
dw $0000 ; 2A
dw $0000 ; 2B
dw $0000 ; 2C
dw $0000 ; 2D
dw $0000 ; 2E
dw $0000 ; 2F
dw .map30 ; 30
dw .map31 ; 31
dw .map32 ; 32
dw .map33 ; 33
dw $0000 ; 34
dw .map35 ; 35
dw $0000 ; 36
dw $0000 ; 37
dw .map38 ; 38
dw $0000 ; 39
dw .map3A ; 3A
dw $0000 ; 3B
dw .map3C ; 3C
dw $0000 ; 3D
dw $0000 ; 3E
dw $0000 ; 3F
; dark world
dw $0000 ; 40
dw $0000 ; 41
dw $0000 ; 42
dw .map43 ; 43
dw .map44 ; 44
dw .map45 ; 45
dw $0000 ; 46
dw .map47 ; 47
dw $0000 ; 48
dw $0000 ; 49
dw $0000 ; 4A
dw $0000 ; 4B
dw $0000 ; 4C
dw $0000 ; 4D
dw .map4E ; 4E
dw $0000 ; 4F
dw .map50 ; 50
dw $0000 ; 51
dw $0000 ; 52
dw $0000 ; 53
dw .map54 ; 54
dw $0000 ; 55
dw $0000 ; 56
dw $0000 ; 57
dw $0000 ; 58
dw $0000 ; 59
dw $0000 ; 5A
dw .map5B ; 5B
dw $0000 ; 5C
dw $0000 ; 5D
dw $0000 ; 5E
dw $0000 ; 5F
dw $0000 ; 60
dw $0000 ; 61
dw $0000 ; 62
dw $0000 ; 63
dw $0000 ; 64
dw $0000 ; 65
dw $0000 ; 66
dw $0000 ; 67
dw $0000 ; 68
dw $0000 ; 69
dw $0000 ; 6A
dw $0000 ; 6B
dw $0000 ; 6C
dw $0000 ; 6D
dw $0000 ; 6E
dw .map6F ; 6F
dw .map70 ; 70
dw $0000 ; 71
dw $0000 ; 72
dw .map73 ; 73
dw $0000 ; 74
dw .map75 ; 75
dw $0000 ; 76
dw $0000 ; 77
dw .map78 ; 78
dw $0000 ; 79
dw $0000 ; 7A
dw $0000 ; 7B
dw $0000 ; 7C
dw $0000 ; 7D
dw $0000 ; 7E
dw $0000 ; 7F
;---------------------------------------------------------------------------------------------------
.map03
dw !OWW_InvertedOnly
; singles
dw $0034, $2BE0
dw !OWW_Stripe|!OWW_Horizontal
dw $29B6 ; address
dw $021A, $01F3, $00A0, $0104|!OWW_STOP
dw !OWW_ArbTileCopy
dw $00C6 ; tile
dw $2A34, $2A38, $2A3A|!OWW_STOP
dw !OWW_END
;---------------------------------------------------------------------------------------------------
.map05
dw $0101, $2E18 ; OWG sign
dw !OWW_InvertedOnly
; singles
dw $0034, $21F2
dw $0034, $3D4A
dw $0116, $216E
dw $0126, $21F4
dw $0139, $2C6C
dw $014B, $2C6E
dw $016B, $29F0
dw $016B, $2CEC
dw $0182, $29F2
dw $0182, $2CEE
dw !OWW_Stripe|!OWW_Horizontal
dw $206E ; address
dw $0112, $0113, $0113, $0112|!OWW_STOP
dw !OWW_StripeRLEINC|!OWW_Horizontal|OWW_RLESize(2)
dw $0111, $20EC ; tile, start
dw !OWW_StripeRLEINC|!OWW_Horizontal|OWW_RLESize(3)
dw $0116, $20F0 ; tile, start
dw !OWW_Stripe|!OWW_Horizontal
dw $216C ; address
dw $0112, $0116, $011C, $011D, $011E|!OWW_STOP
dw !OWW_StripeRLEINC|!OWW_Horizontal|OWW_RLESize(3)
dw $011C, $2170 ; tile, start
dw !OWW_StripeRLEINC|!OWW_Horizontal|OWW_RLESize(2)
dw $0123, $21EC ; tile, start
dw !OWW_StripeRLEINC|!OWW_Horizontal|OWW_RLESize(4)
dw $0144, $2364 ; tile, start
dw !OWW_StripeRLEINC|!OWW_Horizontal|OWW_RLESize(2)
dw $01B3, $236C ; tile, start
dw !OWW_Stripe|!OWW_Horizontal
dw $2970 ; address
dw $0139, $014B|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0130 ; tile
dw $21E2, $21F0, $22E2, $22F0|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0135 ; tile
dw $2262, $2270, $2362, $2370|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0136 ; tile
dw $2264, $2266, $226C, $226E|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0137 ; tile
dw $2268, $226A|!OWW_STOP
dw !OWW_Stripe|!OWW_Horizontal
dw $22E4 ; start
dw $013C, $013C, $013D, $013D, $013C, $013C|!OWW_STOP
dw !OWW_END
;---------------------------------------------------------------------------------------------------
.map07
dw !OWW_InvertedOnly
; singles
dw $0134, $269E
dw $0134, $26A4
dw $0034, $2826
dw !OWW_ArbTileCopy
dw $021B ; tile
dw $259E, $25A2, $25A4, $261C
dw $2626, $269A, $26A8, $271A
dw $2728, $279A, $27A8, $281E
dw $2820, $2822, $2824, $2828
dw $289C, $28A6, $291E, $2924|!OWW_STOP
dw !OWW_END
;---------------------------------------------------------------------------------------------------
.map0E
dw !OWW_InvertedOnly
dw $0034, $3D4A
dw !OWW_END
;---------------------------------------------------------------------------------------------------
.map10
dw !OWW_InvertedOnly
dw $0034, $2B2E
dw !OWW_END
;---------------------------------------------------------------------------------------------------
.map14
dw !OWW_InvertedOnly
dw !OWW_Stripe|!OWW_Vertical
dw $2422
dw $02F1, $0184, $0184|!OWW_STOP
dw !OWW_Stripe|!OWW_Vertical
dw $2424
dw $02F2, $0185, $0185|!OWW_STOP
dw !OWW_END
;===================================================================================================
.map1B
dw !OWW_InvertedOnly
; singles
dw $0476, $2522
dw $04D7, $2528
dw !OWW_Stripe|!OWW_Vertical
dw $2424 ; address
dw $0485, $0454, $0460, !OWW_SKIP
dw $04DD, $04E0, $04E4, $0034|!OWW_STOP
dw !OWW_Stripe|!OWW_Vertical
dw $2426 ; address
dw $0485, $0454, $0460, !OWW_SKIP
dw $04DE, $04E1, $04E5, $0034|!OWW_STOP
; Eye removed
dw !OWW_ArbTileCopy
dw $046D ; tile
dw $243E, $24BC, $24BE, $253E
dw $2440, $24C0, $24C2, $2540|!OWW_STOP
; new trees
dw !OWW_Stripe|!OWW_Horizontal
dw $2D2C ; address
dw $00B0, $0014, $0015, $00A8
dw $04BB, $0034|!OWW_STOP
dw !OWW_Stripe|!OWW_Horizontal
dw $2DAC ; address
dw $0089, $001C, $001D, $0076
dw $04BA, $0034|!OWW_STOP
dw !OWW_Stripe|!OWW_Horizontal
dw $2E2C ; address
dw $00F1, $004E, $004F, $00D9
dw $04BB|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0034 ; tile
dw $28AC, $28AE
dw $28B0, $28CE, $28D0, $28D2
dw $2C2C, $2C2E, $2CB6, $2EB6
dw $2F30, $2F36, $2FAA, $2FB0
dw $2FB4, $2FB6, $3028, $302C|!OWW_STOP
; TODO still need to optimize this last section ugh
dw $0035, $2C28
dw $0035, $2FAE
dw $0035, $302A
dw $0035, $3032
dw $007E, $2CB0
dw $007F, $2CB2
dw $0095, $2EB2
dw $009A, $2EAC
dw $009B, $2EAE
dw $009C, $2EB0
dw $00AE, $2CAC
dw $00AF, $2CAE
dw $00DA, $302E
dw $00E2, $2C36
dw $00E2, $2FA8
dw $00E2, $3030
dw $0451, $282E
dw $0451, $2830
dw $0451, $284E
dw $0451, $2850
dw $0451, $2852
dw $0454, $272C
dw $0454, $272E
dw $0454, $274E
dw $0454, $2750
dw $0459, $27CE
dw $0459, $27D0
dw $045E, $27AE
dw $045E, $27D2
dw $0476, $2522
dw $0486, $26B0
dw $0487, $26B2
dw $048E, $2730
dw $048F, $2732
dw $0494, $27B0
dw $0495, $27B2
dw $0499, $282C
dw $049E, $27B4
dw $04BA, $2CB4
dw $04BA, $2EB4
dw $04BB, $2F34
dw $04CA, $27AC
dw $04D7, $2528
dw $0608, $2752
dw !OWW_CustomCommand, .map1B_check_aga
dw $046D, $243E
dw $0E39, $2440
dw !OWW_StripeRLEINC|!OWW_Horizontal|OWW_RLESize(4)
dw $0E3A, $24BC ; tile, start
dw !OWW_StripeRLEINC|!OWW_Horizontal|OWW_RLESize(4)
dw $0E3E, $253C ; tile, start
dw $0490, $25BE
dw $0491, $25C0
.map1B_no_hole
; add sign for tower entry
dw $0101, $222C
dw $0101, $2252
dw !OWW_END
.map1B_check_aga
LDA.l OverworldEventDataWRAM+$5B
AND.w #$0020
BNE ++
LDY.w #.map1B_no_hole
++ RTS
;---------------------------------------------------------------------------------------------------
.map29
dw !OWW_InvertedOnly
; singles
dw $0036, $2386
dw !OWW_ArbTileCopy
dw $0034 ; tile
dw $2288, $2308, $2388, $2408
dw $2488, $248A|!OWW_STOP
dw !OWW_END
;---------------------------------------------------------------------------------------------------
.map30
dw !OWW_InvertedOnly
dw $0178, $224E
dw $00D3, $22E2
dw $0302, $22E4
dw $00AA, $2368
dw $00AB, $236C
dw $01C2, $245C
dw $015C, $23E0
dw $0218, $245E
dw $0162, $2460
dw $0105, $255A
dw $01D4, $24DC
dw $0219, $24DE
dw $0171, $25DE
dw $0166, $255E
dw $0766, $2560
dw $06E1, $27D6
dw $00CF, $27DA
dw $0034, $3D94
dw !OWW_ArbTileCopy
dw $017E
dw $2050, $20CE|!OWW_STOP
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(7)
dw $00D1, $2052
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(6)
dw $00D1, $21E6
dw !OWW_ArbTileCopy
dw $00D2
dw $2060, $20E2, $2164|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0183
dw $20D0, $214E|!OWW_STOP
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(7)
dw $00C9, $20D2
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(7)
dw $00C9, $2152
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(6)
dw $00C9, $2266
dw $00C9, $22CC
dw !OWW_ArbTileCopy
dw $00D0
dw $20E0, $2162, $21E4|!OWW_STOP
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(3)
dw $0153, $2150
dw !OWW_ArbTileCopy
dw $0153
dw $21CE, $22CE|!OWW_STOP
dw !OWW_ArbTileCopy
dw $00C8
dw $2160, $21E2, $2264, $28DA, $295C|!OWW_STOP
dw !OWW_ArbTileCopy
dw $00CA
dw $21E0, $2262, $285A, $28DC|!OWW_STOP
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(7)
dw $00DC, $21D2
dw $00DC, $224C
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(2)
dw $00E3, $2252
dw !OWW_ArbTileCopy
dw $0186
dw $22D0, $234E|!OWW_STOP
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(4)
dw $0034, $22D2
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(7)
dw $0034, $22D4
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(7)
dw $0034, $22D6
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(2)
dw $0034, $2350
dw !OWW_ArbTileCopy
dw $0034
dw $2458, $2656|!OWW_STOP
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(6)
dw $00CC, $22E6
dw $00CC, $234C
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(2)
dw $00CE, $2362
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(4)
dw $00CE, $25D8
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(2)
dw $00C5, $2364
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(4)
dw $00C5, $25DC
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(4)
dw $06AB, $2366
dw !OWW_ArbTileCopy
dw $06AB
dw $24E4, $2760|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0384
dw $236A, $236E, $23EC, $246A|!OWW_STOP
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(4)
dw $0384, $24E8
dw !OWW_ArbTileCopy
dw $0759
dw $23C8, $244A, $24CC, $254E, $26D0, $2752, $27D4|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0757
dw $23CA, $244C, $24CE, $2550, $26D2, $2754|!OWW_STOP
dw !OWW_ArbTileCopy
dw $01FF
dw $23CC, $244E, $24D0, $2652, $26D4, $2756|!OWW_STOP
dw !OWW_ArbTileCopy
dw $017C
dw $23CE, $2450, $24D2, $2654, $26D6|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0100
dw $245A, $24D8|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0104
dw $24DA, $2558|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0106
dw $2462, $24E0, $255C|!OWW_STOP
dw !OWW_ArbTileCopy
dw $0107
dw $2464, $24E2|!OWW_STOP
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(2)
dw $0179, $2552
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(8)
dw $06B4, $2562
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(2)
dw $06E5, $25D0
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(4)
dw $00C4, $25DA
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(7)
dw $0165, $25E4
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(2)
dw $06E4, $27D2
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(2)
dw $06E4, $2854
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(3)
dw $06E4, $2856
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(2)
dw $06E4, $2958
dw $06E4, $29DA
dw !OWW_StripeRLE|!OWW_Vertical|OWW_RLESize(2)
dw $02FD, $27D8
dw !OWW_ArbTileCopy
dw $06E7
dw $28D8, $295A, $29DC|!OWW_STOP
dw !OWW_END
;---------------------------------------------------------------------------------------------------
.map31
dw !OWW_InvertedOnly
; singles
dw $017E, $20CE
dw $017E, $2050
dw $0183, $20D0
dw $0183, $214E
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(4)
dw $0034, $2050
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(7)
dw $00D1, $2052
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(7)
dw $00D1, $21E6
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(7)
dw $00C9, $20D2
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(7)
dw $00C9, $2152
dw !OWW_StripeRLE|!OWW_Horizontal|OWW_RLESize(6)