-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros.asm
executable file
·940 lines (839 loc) · 15.3 KB
/
macros.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
dbw: MACRO
db \1
dw \2
ENDM
dwb: MACRO
dw \1
db \2
ENDM
dba: MACRO
dbw BANK(\1), \1
ENDM
dab: MACRO
dwb \1, BANK(\1)
ENDM
dn: MACRO
rept _NARG / 2
db (\1) << 4 + (\2)
shift
shift
endr
ENDM
dx: MACRO
x = 8 * ((\1) - 1)
rept \1
db ((\2) >> x) & $ff
x = x + -8
endr
ENDM
bigdw: MACRO ; big-endian word
dx 2, \1
ENDM
RGB: MACRO
dw ((\3) << 10 | (\2) << 5 | (\1))
ENDM
; \1: source data
; \2: destination
compressed_data: MACRO
db Bank(\1)
dw \1
dw \2
ENDM
; \1: source data
; \2: destination
; \3: num bytes
uncompressed_data: MACRO
db Bank(\1)
dw \1
dw \3
dw \2
ENDM
; \1: tile id
; \2: oam attribute
; \3: x offset
; \4: y offset
sub_sprite: MACRO
db \4, \3, \1, \2
ENDM
; \1; num sub sprites
; \2: gfx address base
; \3: gfx address
; \4: gbc palette id
; \5: gb palette id
dynamic_sprite_8: MACRO
db ((\5 & $1) << 4) | (\4 & $7)
dw ((Bank(\2) - $8) << 14) | ((\3) & $3ff0) | (\1)
ENDM
; \1; num sub sprites
; \2: gfx address
; \3: gbc palette id
; \4: gb palette id
dynamic_sprite: MACRO
db ((\4 & $1) << 4) | (\3 & $7)
dw ((\2) & $fff0) | (\1)
ENDM
; \1: x offset
; \2: y offset
; \3: x offset when horizontally flipped
dynamic_sprite_offsets: MACRO
db \2, \1, \3
ENDM
; \1: minimum x coord
; \2: maximum x coord
; \3: entity num
; \4: level name
trigger: MACRO
dw \1, \2, wLevelEntities + (\4Entity\3 - \4Entities) + 2
ENDM
; \1: type
; \2: x pixel coord
; \3: y pixel coord
entity_collectible: MACRO
dw HandleCollectibleEntity
dw \3, \2
db \1, $0
IF \1 >= 7
db 0
ENDC
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_cannon: MACRO
dw HandleCannonEntity
dw \2, \1
db 0
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when paddling
; \4: maximum x coord when paddling
entity_barrel_boat: MACRO
dw HandleBarrelBoatEntity
dw \2, \1
db 0
dw \3, \4
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when pushing
; \4: maximum x coord when pushing
entity_pushable_chest: MACRO
dw HandlePushableObjectEntity
dw \2, \1
db $80 | 2
dw \3, \4
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when pushing
; \4: maximum x coord when pushing
entity_pushable_crate: MACRO
dw HandlePushableObjectEntity
dw \2, \1
db 0
dw \3, \4
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_hint_umbrella: MACRO
dw HandleActionHintEntity
dw \2, \1
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_hint_shovel: MACRO
dw HandleActionHintEntity
dw \2, \1
db $80
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when walking
; \4: maximum x coord when walking
; \5: entrance type
entity_yosemite_sam: MACRO
dw HandleYosemiteSamEntity
dw \2, \1
db $80, $01, $00
dw \1
db \5
dw \3, \4
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when flying
; \4: maximum x coord when flying
; \5: cannonball explosion y coord
entity_seagull: MACRO
dw HandleSeagullEntity
dw \2, \1
db $80, $01, $00
dw \3, \4
db $00, $00, $00, $00, $00, $00
dw \5
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_rock_thrower: MACRO
dw HandleRockThrowerEntity
dw \2, \1
db $80, $01, $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_brick_thrower: MACRO
dw HandleBrickThrowerEntity
dw \2, \1
db $80, $01, $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_fire_hydrant: MACRO
dw HandleFireHydrantEntity
dw \2, \1
db $00, $00, $2B, $75, ((\2) & $ff)
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when skateboarding
; \4: maximum x coord when skateboarding
entity_skateboard: MACRO
dw HandleSkateboardEntity
dw \2, \1
db $00
dw \3, \4
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: bomb explosion y coord
entity_sylvester: MACRO
dw HandleSylvesterEntity
dw \2, \1
db $00, $00, $00, $00, $00
dw \3
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when walking
; \4: maximum x coord when walking
entity_daffy_duck: MACRO
dw HandleDaffyDuckEntity
dw \2, \1
db $80, $01, $00
dw \1
db $00
dw \3, \4
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_ladder: MACRO
dw HandleLadderEntity
dw \2, \1
db $00, $00
dw \1
dw \2 - $10
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when walking
; \4: maximum x coord when walking
; \5: ???
entity_taz: MACRO
dw HandleTazEntity
dw \2, \1
db $80, $01, $00
dw \1
db \5
dw \3, \4
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when riding
; \4: maximum x coord when riding
entity_hippo: MACRO
dw HandleHippoEntity
dw \2, \1
db $00
dw \3, \4
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_monkey: MACRO
dw HandleMonkeyEntity
dw \2, \1
db $80, $01, $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_taz_female: MACRO
dw HandleTazFemaleEntity
dw \2, \1
db $80, $01, $00
ENDM
; \1: x pixel coord of feeder
; \2: y pixel coord of feeder
; \3: minimum x coord when pushing feeder
; \4: maximum x coord when pushing feeder
; \5: x pixel coord of giraffe
; \6: y pixel coord of giraffe - only lo byte is actually used
entity_giraffe_feeder: MACRO
dw HandleGiraffeFeederEntity
dw \2, \1
db 6
dw \3, \4
db \6, $00
dw \5
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_balloons: MACRO
dw HandleBalloonsEntity
dw \2, \1
db $00, $00
dw $76A2 ; TODO:
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when walking
; \4: maximum x coord when walking
; \5: entrance type
entity_marvin_martian: MACRO
dw HandleMarvianMartianEntity
dw \2, \1
db $80, $01, $00
dw \1
db \5
dw \3, \4
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when pushing
; \4: maximum x coord when pushing
entity_pushable_computer: MACRO
dw HandlePushableObjectEntity
dw \2, \1
db 8
dw \3, \4
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when hovering
; \4: maximum x coord when pushing
; \5: minimum y coord when pushing
entity_hover_ship: MACRO
dw HandleHoverShipEntity
dw \2, \1
db $00
dw \3, \4
dw \5
dw \2
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_instant_martian: MACRO
dw HandleInstantMartianEntity
dw \2, \1
db $81, $00, $C2, $76, $00
dw \2, \1
db $C2, $76
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: destination x pixel coord
; \4: destination y pixel coord
entity_teleporter: MACRO
dw HandleTeleporterEntity
dw \2, \1
db $00
dw \3, \4
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_k9: MACRO
dw HandleK9Entity
dw \2, \1
db $81, $00, $F4, $77, $00
dw \1
db $F4, $77
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_bomb_hazard: MACRO
dw HandleBombHazardEntity
dw \2, \1
db $00, $00, $DE, $77
ENDM
; \1: spring x pixel coord
; \2: spring y pixel coord
; \3: lever x pixel coord
; \4: lever y pixel coord
entity_lever_spring: MACRO
dw HandleLeverSpringEntity
dw \2, \1
db $00
dw \4, \3
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum y coord when flying
entity_helicopter_chair: MACRO
dw HandleHelicopterChairEntity
dw \2, \1
db $00
dw \3, \2
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_disguised_hunter: MACRO
dw HandleDisguisedHunterEntity
dw \2, \1
db $00, $00, $97, $78, $03
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x coord when walking
; \4: maximum x coord when walking
; \5: entrance type
entity_elmer_fudd: MACRO
dw HandleElmerFuddEntity
dw \2, \1
db $80, $01, $00
dw \1
db \5
dw \3, \4
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_bear_trap: MACRO
dw HandleBearTrapEntity
dw \2, \1
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_hunting_dog: MACRO
dw HandleHuntingDogEntity
dw \2, \1
db $81, $00, $60, $78, $00
dw \1
db $60, $78
ENDM
; \1: rock x pixel coord
; \2: rock y pixel coord
; \3: rock minimum x coord when pushing
; \4: rock maximum x coord when pushing
; \5: rock maximum y coord when falling
entity_rock_teeter_totter: MACRO
dw HandleRockTeeterTotterEntity
dw \2, \1
db 10
dw \3, \4
dw \5
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_hook_line: MACRO
dw HandleHookLineEntity
dw \2, \1
db $00, $00
dw $7846 ; TODO:
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_tnt_barrel: MACRO
dw HandleTNTBarrelEntity
dw \2, \1
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_log_destruction: MACRO
dw HandleLogDestructionEntity
dw \2, \1
db $00, $06
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x pixel coord when surfing
entity_raft: MACRO
dw HandleRaftEntity
dw \2, \1
db $00
dw \3, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x pixel coord when surfing
entity_shark: MACRO
dw HandleSharkEntity
dw \2, \1
db $00, $00
dw $766D ; TODO:
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_cannonball: MACRO
dw HandleCannonballEntity
dw \2, \1
db $20
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: health
entity_yosemite_sam_boss: MACRO
dw HandleYosemiteSamBossEntity
dw \2, \1
db $20, $00
db \3
db $00, $00, $00, $00, $00, $88, $00, $04
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_move_right_boss_vehicle_off_screen: MACRO
dw HandleMoveRightBossVehicleOffScreenEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_move_right_boss_vehicle_far_left: MACRO
dw HandleMoveRightBossVehicleFarLeftEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_move_right_boss_vehicle_far_right: MACRO
dw HandleMoveRightBossVehicleFarRightEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_move_yosemite_ship_middle: MACRO
dw HandleMoveYosemiteShipMiddleEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_bouncing_oil_drum: MACRO
dw HandleBouncingOilDrumEntity
dw \2, \1
db $00, $00
dw $75D8 ; TODO:
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x pixel coord when riding
entity_jackhammer: MACRO
dw HandleJackhammerEntity
dw \2, \1
db $00
dw \3, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_hanging_hook: MACRO
dw HandleHangingHookEntity
dw \2, \1
db $00, $00
dw $75b8 ; TODO:
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_wrecking_ball: MACRO
dw HandleWreckingBallEntity
dw \2, \1
db $00, $00
dw $7547 ; TODO:
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_brick_wall: MACRO
dw HandleBreakableWallEntity
dw \2, \1
db $06
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: health
entity_daffy_duck_boss: MACRO
dw HandleDaffyDuckBossEntity
dw \2, \1
db $20, $00
db \3
db $00, $00, $00, $00, $00, $88, $00, $04
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_taz_female_boss: MACRO
dw HandleTazFemaleBossEntity
dw \2, \1
db $20, $00, $01, $00, $00, $00, $00, $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_balloon: MACRO
dw HandleBalloonEntity
dw \2, \1
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: maximum x pixel coord when riding
entity_bicycle: MACRO
dw HandleBicycleEntity
dw \2, \1
db $00
dw \3
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_cage_wall: MACRO
dw HandleBreakableWallEntity
dw \2, \1
db $86
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_cage_drop: MACRO
dw HandleCageDropEntity
dw \2, \1
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_move_left_boss_vehicle_off_screen: MACRO
dw HandleMoveLeftBossVehicleOffScreenEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_move_left_boss_vehicle_far_left: MACRO
dw HandleMoveLeftBossVehicleFarLeftEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_move_left_boss_vehicle_far_right: MACRO
dw HandleMoveLeftBossVehicleFarRightEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_normal_scroll_right: MACRO
dw HandleNormalScrollRightEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_fast_scroll_right: MACRO
dw HandleFastScrollRightEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_fastest_scroll_right: MACRO
dw HandleFastestScrollRightEntity
dw \2, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: health
entity_taz_boss: MACRO
dw HandleTazBossEntity
dw \2, \1
db $20, $00
db \3
db $00, $00, $00, $22, $0F, $AA, $0F, $04
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_space_scooter: MACRO
dw HandleSpaceScooterEntity
dw \2, \1
db $20
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_fuel_canister: MACRO
dw HandleFuelCanisterEntity
dw \2, \1
db $00, $00
dw $781A ; TODO:
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_falling_asteroid: MACRO
dw HandleFallingAsteroidEntity
dw \2, \1
db $00, $00
dw $780C ; TODO:
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_instant_martian_boss: MACRO
dw HandleInstantMartianEntity
dw \2, \1
db $00, $00, $02, $77, $00
dw \2, \1
db $02, $77
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_bomb_hazard_boss: MACRO
dw HandleBombHazardEntity
dw \2, \1
db $00, $00, $D2, $77
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: health
entity_marvin_martian_boss: MACRO
dw HandleMarvianMartianBossEntity
dw \2, \1
db $20, $00
db \3
db $00, $00, $00, $00, $00, $88, $00, $04
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_dirt_path_destruction: MACRO
dw HandleDirtPathDestructionEntity
dw \2, \1
db $00, $06
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: minimum x pixel coord when surfing
entity_train_track_dolly: MACRO
dw HandleTrainTrackDollyEntity
dw \2, \1
db $00
dw \3, \1
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_train_track_barricade: MACRO
dw HandleTrainTrackBarricadeEntity
dw \2, \1
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_brick_thrower_tower: MACRO
dw HandleBrickThrowerTowerEntity
dw \2, \1
db $80, $01, $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_boom_barrier: MACRO
dw HandleBoomBarrierEntity
dw \2, \1
db $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
; \3: health
entity_elmer_fudd_boss: MACRO
dw HandleElmerFuddBossEntity
dw \2, \1
db $20, $00
db \3
db $00, $00, $00, $00, $00, $88, $00, $04
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_studio_yosemite_sam: MACRO
dw HandleStudioCharacterEntity
dw \2, \1
db $00
dw $6B54
dw $6B54
db $AC, $01
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_credits_studio_yosemite_sam: MACRO
dw HandleCreditsStudioCharacterEntity
dw \2, \1
db $00
dw $6B54
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_studio_daffy_duck: MACRO
dw HandleStudioCharacterEntity
dw \2, \1
db $00
dw $696E
dw $696E
db $2C, $01
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_credits_studio_daffy_duck: MACRO
dw HandleCreditsStudioCharacterEntity
dw \2, \1
db $00
dw $696E
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_studio_taz: MACRO
dw HandleStudioCharacterEntity
dw \2, \1
db $00
dw $7028
dw $7028
db $2C, $02
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_credits_studio_taz: MACRO
dw HandleCreditsStudioCharacterEntity
dw \2, \1
db $00
dw $7028
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_studio_marvin_martian: MACRO
dw HandleStudioCharacterEntity
dw \2, \1
db $00
dw $7412
dw $7412
db $AC, $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_credits_studio_marvin_martian: MACRO
dw HandleCreditsStudioCharacterEntity
dw \2, \1
db $00
dw $7412
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_studio_elmer_fudd: MACRO
dw HandleStudioCharacterEntity
dw \2, \1
db $00
dw $77AE
dw $77AE
db $2C, $00
ENDM
; \1: x pixel coord
; \2: y pixel coord
entity_credits_studio_elmer_fudd: MACRO
dw HandleCreditsStudioCharacterEntity
dw \2, \1
db $00
dw $77AE
ENDM