|
@@ -2,16 +2,16 @@
|
2
|
2
|
#include <applymovements.h>
|
3
|
3
|
|
4
|
4
|
@@ Compare operands
|
5
|
|
-.equ <, 0x0
|
6
|
|
-.equ ==, 0x1
|
7
|
|
-.equ >, 0x2
|
8
|
|
-.equ <=, 0x3
|
9
|
|
-.equ >=, 0x4
|
10
|
|
-.equ !=, 0x5
|
|
5
|
+.equ B_LT, 0x0
|
|
6
|
+.equ B_EQ, 0x1
|
|
7
|
+.equ B_GT, 0x2
|
|
8
|
+.equ B_LE, 0x3
|
|
9
|
+.equ B_GE, 0x4
|
|
10
|
+.equ B_NE, 0x5
|
11
|
11
|
|
12
|
12
|
@@ Flag operands
|
13
|
|
-.equ !, 0x0
|
14
|
|
-.equ =, 0x1
|
|
13
|
+.equ B_T, 0x0
|
|
14
|
+.equ B_F, 0x1
|
15
|
15
|
|
16
|
16
|
|
17
|
17
|
@@@@@@@@@@@@@@@@@ Macro
|
|
@@ -23,31 +23,31 @@ loadpointer 0x0 \msgbox_textpointer
|
23
|
23
|
callstd \msgbox_callstd
|
24
|
24
|
.endm
|
25
|
25
|
|
26
|
|
-.marco giveitem giveitem_item giveitem_quantity giveitem_messagetyp
|
|
26
|
+.macro giveitem giveitem_item giveitem_quantity giveitem_messagetyp
|
27
|
27
|
setvarifnotzero 0x8000 \giveitem_item
|
28
|
28
|
setvarifnotzero 0x8001 \giveitem_quantity
|
29
|
29
|
callstd \giveitem_messagetyp
|
30
|
30
|
.endm
|
31
|
31
|
|
32
|
|
-.marco giveitem2 giveitem2_item giveitem2_quantity giveitem2_song
|
|
32
|
+.macro giveitem2 giveitem2_item giveitem2_quantity giveitem2_song
|
33
|
33
|
setvarifnotzero 0x8000 \giveitem2_item
|
34
|
34
|
setvarifnotzero 0x8001 \giveitem2_quantity
|
35
|
35
|
setvarifnotzero 0x8002 \giveitem2_song
|
36
|
36
|
callstd 0x9
|
37
|
37
|
.endm
|
38
|
38
|
|
39
|
|
-.marco wildbattle wildbattle_spezies wildbattle_level wildbattle_item
|
|
39
|
+.macro wildbattle wildbattle_spezies wildbattle_level wildbattle_item
|
40
|
40
|
setwildbattle \wildbattle_spezies \wildbattle_level \wildbattle_item
|
41
|
41
|
dowildbattle
|
42
|
42
|
.endm
|
43
|
43
|
|
44
|
|
-.marco wildbattle2 wildbattle2_spezies wildbattle2_level wildbattle2_item wildbattle2_battlestyle
|
|
44
|
+.macro wildbattle2 wildbattle2_spezies wildbattle2_level wildbattle2_item wildbattle2_battlestyle
|
45
|
45
|
setwildbattle \wildbattle2_spezies \wildbattle2_level \wildbattle2_item
|
46
|
46
|
special 0x137
|
47
|
47
|
waitstate
|
48
|
48
|
.endm
|
49
|
49
|
|
50
|
|
-.marco msgmugr msgmugr_textpointer msgmugr_callstd msgmugr_sprite
|
|
50
|
+.macro msgmugr msgmugr_textpointer msgmugr_callstd msgmugr_sprite
|
51
|
51
|
setvar MUGHSOT_1_TABLE \msgmugr_sprite
|
52
|
52
|
setvar MUGSHOT_1_X 0xD0
|
53
|
53
|
setvar MUGSHOT_1_Y 0x60
|
|
@@ -55,7 +55,7 @@ msgbox \msgmugr_textpointer \msgmugr_callstd
|
55
|
55
|
setvar MUGHSOT_1_TABLE 0x0
|
56
|
56
|
.endm
|
57
|
57
|
|
58
|
|
-.marco msgmugl msgmugl_textpointer msgmugl_callstd msgmugl_sprite
|
|
58
|
+.macro msgmugl msgmugl_textpointer msgmugl_callstd msgmugl_sprite
|
59
|
59
|
setvar MUGHSOT_1_TABLE \msgmugl_sprite
|
60
|
60
|
setvar MUGSHOT_1_X 0x16
|
61
|
61
|
setvar MUGSHOT_1_Y 0x60
|
|
@@ -63,63 +63,63 @@ msgbox \msgmugl_textpointer \msgmugl_callstd
|
63
|
63
|
setvar MUGHSOT_1_TABLE 0x0
|
64
|
64
|
.endm
|
65
|
65
|
|
66
|
|
-.marco transparenzon
|
|
66
|
+.macro transparenzon
|
67
|
67
|
clearflag FLAG_ACTIVATE
|
68
|
68
|
.endm
|
69
|
69
|
|
70
|
|
-.marco transparenzoff
|
|
70
|
+.macro transparenzoff
|
71
|
71
|
setflag FLAG_ACTIVATE
|
72
|
72
|
.endm
|
73
|
73
|
|
74
|
|
-.marco battlescreen battlescreen_grass battlescreen_sea
|
|
74
|
+.macro battlescreen battlescreen_grass battlescreen_sea
|
75
|
75
|
setvar NORMAL_VAR \battlescreen_grass
|
76
|
76
|
setvar SEA_VAR \battlescreen_sea
|
77
|
77
|
.endm
|
78
|
78
|
|
79
|
|
-.marco cameramove cameramove_xpos cameramove_ypos
|
|
79
|
+.macro cameramove cameramove_xpos cameramove_ypos
|
80
|
80
|
setvar CAMERA_VAR_X \cameramove_xpos
|
81
|
81
|
setvar CAMERA_VAR_Y \cameramove_ypos
|
82
|
82
|
setvar CALLASM_VAR 0x1
|
83
|
83
|
special 0x68
|
84
|
84
|
.endm
|
85
|
85
|
|
86
|
|
-.marco walkingscript \walkingscript_value
|
|
86
|
+.macro walkingscript walkingscript_value
|
87
|
87
|
setvar WALK_SCRIPT_VAR \walkingscript_value
|
88
|
88
|
.endm
|
89
|
89
|
|
90
|
|
-.marco walkingscripton
|
|
90
|
+.macro walkingscripton
|
91
|
91
|
setflag FLAG_WALK_SCRIPT
|
92
|
92
|
.endm
|
93
|
93
|
|
94
|
|
-.marco walkingscriptoff
|
|
94
|
+.macro walkingscriptoff
|
95
|
95
|
clearflag FLAG_WALK_SCRIPT
|
96
|
96
|
.endm
|
97
|
97
|
|
98
|
|
-.marco writemusikto1 writemusikto1_from writemusikto1_to
|
|
98
|
+.macro writemusikto1 writemusikto1_from writemusikto1_to
|
99
|
99
|
setflag FLAG_ENABLE_MUSIC_OVERRIDES
|
100
|
100
|
setvar VAR_FROM_1 \writemusikto1_from
|
101
|
101
|
setvar VAR_TO_1 \writemusikto1_to
|
102
|
102
|
.endm
|
103
|
103
|
|
104
|
|
-.marco writemusikto2 writemusikto2_from writemusikto2_to
|
|
104
|
+.macro writemusikto2 writemusikto2_from writemusikto2_to
|
105
|
105
|
setflag FLAG_ENABLE_MUSIC_OVERRIDES
|
106
|
106
|
setvar VAR_FROM_2 \writemusikto2_from
|
107
|
107
|
setvar VAR_TO_2 \writemusikto2_to
|
108
|
108
|
.endm
|
109
|
109
|
|
110
|
|
-.marco writemusikto3 writemusikto3_from writemusikto3_to
|
|
110
|
+.macro writemusikto3 writemusikto3_from writemusikto3_to
|
111
|
111
|
setflag FLAG_ENABLE_MUSIC_OVERRIDES
|
112
|
112
|
setvar VAR_FROM_3 \writemusikto3_from
|
113
|
113
|
setvar VAR_TO_3 \writemusikto3_to
|
114
|
114
|
.endm
|
115
|
115
|
|
116
|
|
-.marco writemusikwithmapmusik \writemusikwithmapmusik_mapmusik
|
|
116
|
+.macro writemusikwithmapmusik writemusikwithmapmusik_mapmusik
|
117
|
117
|
setflag FLAG_ENABLE_MUSIC_OVERRIDES
|
118
|
118
|
setvar VAR_FROM_1 \writemusikwithmapmusik_mapmusik
|
119
|
119
|
setvar VAR_TO_1 MUS_SKIP_PLAY
|
|
120
|
+.endm
|
120
|
121
|
|
121
|
|
-
|
122
|
|
-.marco writemusikoff
|
|
122
|
+.macro writemusikoff
|
123
|
123
|
clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
124
|
124
|
.endm
|
125
|
125
|
|
|
@@ -230,17 +230,17 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
230
|
230
|
.hword \comparevars_variableB
|
231
|
231
|
.endm
|
232
|
232
|
|
233
|
|
-.marco callasm callasm_address
|
|
233
|
+.macro callasm callasm_address
|
234
|
234
|
.byte 0x23
|
235
|
235
|
.word \callasm_address
|
236
|
236
|
.endm
|
237
|
237
|
|
238
|
|
-.marco special special_number
|
|
238
|
+.macro special special_number
|
239
|
239
|
.byte 0x25
|
240
|
240
|
.hword \special_number
|
241
|
241
|
.endm
|
242
|
242
|
|
243
|
|
-.marco special2 special2_variable special2_number
|
|
243
|
+.macro special2 special2_variable special2_number
|
244
|
244
|
.byte 0x26
|
245
|
245
|
.hword \special2_variable
|
246
|
246
|
.hword \special2_number
|
|
@@ -315,14 +315,14 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
315
|
315
|
.macro fadeout fadeout_volume
|
316
|
316
|
.byte 0x37
|
317
|
317
|
.byte \fadeout_volume
|
318
|
|
-
|
|
318
|
+.endm
|
319
|
319
|
|
320
|
320
|
.macro fadein fadein_volume
|
321
|
321
|
.byte 0x38
|
322
|
322
|
.byte \fadein_volume
|
323
|
323
|
.endm
|
324
|
324
|
|
325
|
|
-.marco warp warp_bank warp_map warp_exit warp_x warp_y
|
|
325
|
+.macro warp warp_bank warp_map warp_exit warp_x warp_y
|
326
|
326
|
.byte 0x39
|
327
|
327
|
.byte \warp_bank
|
328
|
328
|
.byte \warp_map
|
|
@@ -331,7 +331,7 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
331
|
331
|
.hword \warp_y
|
332
|
332
|
.endm
|
333
|
333
|
|
334
|
|
-.marco warpmuted warpmuted_bank warpmuted_map warpmuted_exit warpmuted_x warpmuted_y
|
|
334
|
+.macro warpmuted warpmuted_bank warpmuted_map warpmuted_exit warpmuted_x warpmuted_y
|
335
|
335
|
.byte 0x3A
|
336
|
336
|
.byte \warpmuted_bank
|
337
|
337
|
.byte \warpmuted_map
|
|
@@ -340,7 +340,7 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
340
|
340
|
.hword \warpmuted_y
|
341
|
341
|
.endm
|
342
|
342
|
|
343
|
|
-.marco warpwalk warpwalk_bank warpwalk_map warpwalk_exit warpwalk_x warpwalk_y
|
|
343
|
+.macro warpwalk warpwalk_bank warpwalk_map warpwalk_exit warpwalk_x warpwalk_y
|
344
|
344
|
.byte 0x3B
|
345
|
345
|
.byte \warpwalk_bank
|
346
|
346
|
.byte \warpwalk_map
|
|
@@ -349,13 +349,13 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
349
|
349
|
.hword \warpwalk_y
|
350
|
350
|
.endm
|
351
|
351
|
|
352
|
|
-.marco warphole warphole_bank warphole_map
|
|
352
|
+.macro warphole warphole_bank warphole_map
|
353
|
353
|
.byte 0x3C
|
354
|
354
|
.byte \warphole_bank
|
355
|
355
|
.byte \warphole_map
|
356
|
356
|
.endm
|
357
|
357
|
|
358
|
|
-.marco warpteleport warpteleport_bank warpteleport_map warpteleport_exit warpteleport_x warpteleport_y
|
|
358
|
+.macro warpteleport warpteleport_bank warpteleport_map warpteleport_exit warpteleport_x warpteleport_y
|
359
|
359
|
.byte 0x3D
|
360
|
360
|
.byte \warpteleport_bank
|
361
|
361
|
.byte \warpteleport_map
|
|
@@ -364,7 +364,7 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
364
|
364
|
.hword \warpteleport_y
|
365
|
365
|
.endm
|
366
|
366
|
|
367
|
|
-.marco setwarpplace setwarpplace_bank setwarpplace_map setwarpplace_exit setwarpplace_x setwarpplace_y
|
|
367
|
+.macro setwarpplace setwarpplace_bank setwarpplace_map setwarpplace_exit setwarpplace_x setwarpplace_y
|
368
|
368
|
.byte 0x3F
|
369
|
369
|
.byte \setwarpplace_bank
|
370
|
370
|
.byte \setwarpplace_map
|
|
@@ -373,7 +373,7 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
373
|
373
|
.hword \setwarpplace_y
|
374
|
374
|
.endm
|
375
|
375
|
|
376
|
|
-.marco getplayerpos getplayerpos_variableX getplayerpos_variableY
|
|
376
|
+.macro getplayerpos getplayerpos_variableX getplayerpos_variableY
|
377
|
377
|
.byte 0x42
|
378
|
378
|
.hword \getplayerpos_variableX
|
379
|
379
|
.hword \getplayerpos_variableY
|
|
@@ -383,54 +383,54 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
383
|
383
|
.byte 0x43
|
384
|
384
|
.endm
|
385
|
385
|
|
386
|
|
-.marco additem additem_item additem_quantity
|
|
386
|
+.macro additem additem_item additem_quantity
|
387
|
387
|
.byte 0x44
|
388
|
388
|
.hword \additem_item
|
389
|
389
|
.hword \additem_quantity
|
390
|
390
|
.endm
|
391
|
391
|
|
392
|
|
-.marco removeitem removeitem_item removeitem_quantity
|
|
392
|
+.macro removeitem removeitem_item removeitem_quantity
|
393
|
393
|
.byte 0x45
|
394
|
394
|
.hword \removeitem_item
|
395
|
395
|
.hword \removeitem_quantity
|
396
|
396
|
.endm
|
397
|
397
|
|
398
|
|
-.marco checkitemroom checkitemroom_item checkitemroom_quantity
|
|
398
|
+.macro checkitemroom checkitemroom_item checkitemroom_quantity
|
399
|
399
|
.byte 0x46
|
400
|
400
|
.hword \checkitemroom_item
|
401
|
401
|
.hword \checkitemroom_quantity
|
402
|
402
|
.endm
|
403
|
403
|
|
404
|
|
-.marco checkitem checkitem_item checkitem_quantity
|
|
404
|
+.macro checkitem checkitem_item checkitem_quantity
|
405
|
405
|
.byte 0x47
|
406
|
406
|
.hword \checkitem_item
|
407
|
407
|
.hword \checkitem_quantity
|
408
|
408
|
.endm
|
409
|
409
|
|
410
|
|
-.marco checkitemtype checkitemtype_item
|
|
410
|
+.macro checkitemtype checkitemtype_item
|
411
|
411
|
.byte 0x48
|
412
|
412
|
.hword \checkitemtype_item
|
413
|
413
|
.endm
|
414
|
414
|
|
415
|
|
-.marco addpcitem addpcitem_item addpcitem_quantity
|
|
415
|
+.macro addpcitem addpcitem_item addpcitem_quantity
|
416
|
416
|
.byte 0x49
|
417
|
417
|
.hword \addpcitem_item
|
418
|
418
|
.hword \addpcitem_quantity
|
419
|
419
|
.endm
|
420
|
420
|
|
421
|
|
-.marco checkpcitem checkpcitem_item checkpcitem_quantity
|
|
421
|
+.macro checkpcitem checkpcitem_item checkpcitem_quantity
|
422
|
422
|
.byte 0x4A
|
423
|
423
|
.hword \checkpcitem_item
|
424
|
424
|
.hword \checkpcitem_quantity
|
425
|
425
|
.endm
|
426
|
426
|
|
427
|
|
-.marco applymovement applymovement_people applymovement_movedata
|
|
427
|
+.macro applymovement applymovement_people applymovement_movedata
|
428
|
428
|
.byte 0x4F
|
429
|
429
|
.hword \applymovement_people
|
430
|
430
|
.word \applymovement_movedata
|
431
|
431
|
.endm
|
432
|
432
|
|
433
|
|
-.marco applymovementpos applymovementpos_people applymovementpos_movedata applymovementpos_x applymovementpos_y
|
|
433
|
+.macro applymovementpos applymovementpos_people applymovementpos_movedata applymovementpos_x applymovementpos_y
|
434
|
434
|
.byte 0x50
|
435
|
435
|
.hword \applymovementpos_people
|
436
|
436
|
.word \applymovementpos_movedata
|
|
@@ -438,57 +438,57 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
438
|
438
|
.byte \applymovementpos_y
|
439
|
439
|
.endm
|
440
|
440
|
|
441
|
|
-.marco waitmovement waitmovement_people
|
|
441
|
+.macro waitmovement waitmovement_people
|
442
|
442
|
.byte 0x51
|
443
|
443
|
.hword \waitmovement_people
|
444
|
444
|
.endm
|
445
|
445
|
|
446
|
|
-.marco waitmovementpos waitmovementpos_people waitmovementpos_x waitmovementpos_y
|
|
446
|
+.macro waitmovementpos waitmovementpos_people waitmovementpos_x waitmovementpos_y
|
447
|
447
|
.byte 0x52
|
448
|
448
|
.hword \waitmovementpos_people
|
449
|
449
|
.byte \waitmovementpos_x
|
450
|
450
|
.byte \waitmovementpos_y
|
451
|
451
|
.endm
|
452
|
452
|
|
453
|
|
-.marco hidesprite hidesprite_people
|
|
453
|
+.macro hidesprite hidesprite_people
|
454
|
454
|
.byte 0x53
|
455
|
455
|
.hword \hidesprite_people
|
456
|
456
|
.endm
|
457
|
457
|
|
458
|
|
-.marco hidespritepos hidesprite_people hidespritepos_x hidespritepos_y
|
|
458
|
+.macro hidespritepos hidesprite_people hidespritepos_x hidespritepos_y
|
459
|
459
|
.byte 0x54
|
460
|
460
|
.hword \hidespritepos_people
|
461
|
461
|
.byte \hidespritepos_x
|
462
|
462
|
.byte \hidespritepos_y
|
463
|
463
|
.endm
|
464
|
464
|
|
465
|
|
-.marco showsprite showsprite_people
|
|
465
|
+.macro showsprite showsprite_people
|
466
|
466
|
.byte 0x55
|
467
|
467
|
.hword \showsprite_people
|
468
|
468
|
.endm
|
469
|
469
|
|
470
|
|
-.marco showspritepos showspritepos_people showspritepos_x showspritepos_y
|
|
470
|
+.macro showspritepos showspritepos_people showspritepos_x showspritepos_y
|
471
|
471
|
.byte 0x56
|
472
|
472
|
.hword \showspritepos_people
|
473
|
473
|
.byte \showspritepos_x
|
474
|
474
|
.byte \showspritepos_y
|
475
|
475
|
.endm
|
476
|
476
|
|
477
|
|
-.marco movesprite movesprite_people movesprite_x movesprite_y
|
|
477
|
+.macro movesprite movesprite_people movesprite_x movesprite_y
|
478
|
478
|
.byte 0x57
|
479
|
479
|
.hword \movesprite_people
|
480
|
480
|
.hword \movesprite_x
|
481
|
481
|
.hword \movesprite_y
|
482
|
482
|
.endm
|
483
|
483
|
|
484
|
|
-.marco spritevisible spritevisible_people spritevisible_bank movesprite_map
|
|
484
|
+.macro spritevisible spritevisible_people spritevisible_bank movesprite_map
|
485
|
485
|
.byte 0x58
|
486
|
486
|
.hword \spritevisible_people
|
487
|
487
|
.byte \spritevisible_bank
|
488
|
488
|
.byte \spritevisible_map
|
489
|
489
|
.endm
|
490
|
490
|
|
491
|
|
-.marco spriteinvisible spriteinvisible_people spriteinvisible_bank spriteinvisible_map
|
|
491
|
+.macro spriteinvisible spriteinvisible_people spriteinvisible_bank spriteinvisible_map
|
492
|
492
|
.byte 0x59
|
493
|
493
|
.hword \spriteinvisible_people
|
494
|
494
|
.byte \spriteinvisible_bank
|
|
@@ -499,13 +499,13 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
499
|
499
|
.byte 0x5A
|
500
|
500
|
.endm
|
501
|
501
|
|
502
|
|
-.marco spriteface spriteface_people spriteface_facing
|
|
502
|
+.macro spriteface spriteface_people spriteface_facing
|
503
|
503
|
.byte 0x5B
|
504
|
504
|
.hword \spriteface_people
|
505
|
505
|
.byte \spriteface_facing
|
506
|
506
|
.endm
|
507
|
507
|
|
508
|
|
-.marco trainerbattle trainerbattle_kind trainerbattle_id trainerbattle_value trainerbattle_before trainerbattle_after trainerbattle_later
|
|
508
|
+.macro trainerbattle trainerbattle_kind trainerbattle_id trainerbattle_value trainerbattle_before trainerbattle_after trainerbattle_later
|
509
|
509
|
.byte 0x5C
|
510
|
510
|
.byte \trainerbattle_kind
|
511
|
511
|
.hword \trainerbattle_id
|
|
@@ -542,19 +542,19 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
542
|
542
|
.hword \cleartrainerflag_flag
|
543
|
543
|
.endm
|
544
|
544
|
|
545
|
|
-.marco movesprite2 movesprite2_people movesprite2_x movesprite2_y
|
|
545
|
+.macro movesprite2 movesprite2_people movesprite2_x movesprite2_y
|
546
|
546
|
.byte 0x63
|
547
|
547
|
.hword \movesprite2_people
|
548
|
548
|
.hword \movesprite2_x
|
549
|
549
|
.hword \movesprite2_y
|
550
|
550
|
.endm
|
551
|
551
|
|
552
|
|
-.marco moveoffscreen moveoffscreen_people
|
|
552
|
+.macro moveoffscreen moveoffscreen_people
|
553
|
553
|
.byte 0x64
|
554
|
554
|
.hword \moveoffscreen_people
|
555
|
555
|
.endm
|
556
|
556
|
|
557
|
|
-.marco spritebehave spritebehave_people spritebehave_facing
|
|
557
|
+.macro spritebehave spritebehave_people spritebehave_facing
|
558
|
558
|
.byte 0x65
|
559
|
559
|
.hword \spritebehave_people
|
560
|
560
|
.byte \spritebehave_behaviour
|
|
@@ -625,7 +625,7 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
625
|
625
|
.byte \multichoice3_determines
|
626
|
626
|
.endm
|
627
|
627
|
|
628
|
|
-.marco showpokepic showpokepic_spezies showpokepic_x showpokepic_y
|
|
628
|
+.macro showpokepic showpokepic_spezies showpokepic_x showpokepic_y
|
629
|
629
|
.byte 0x75
|
630
|
630
|
.hword \showpokepic_spezies
|
631
|
631
|
.byte \showpokepic_x
|
|
@@ -743,64 +743,64 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
743
|
743
|
.byte \checkmoney_command
|
744
|
744
|
.endm
|
745
|
745
|
|
746
|
|
-.marco showmoney showmoney_x showmoney_y showmoney_value
|
|
746
|
+.macro showmoney showmoney_x showmoney_y showmoney_value
|
747
|
747
|
.byte 0x93
|
748
|
748
|
.byte \showmoney_x
|
749
|
749
|
.byte \showmoney_y
|
750
|
750
|
.byte \showmoney_value
|
751
|
751
|
.endm
|
752
|
752
|
|
753
|
|
-.marco hidemoney hidemoney_x hidemoney_y
|
|
753
|
+.macro hidemoney hidemoney_x hidemoney_y
|
754
|
754
|
.byte 0x94
|
755
|
755
|
.byte \hidemoney_x
|
756
|
756
|
.byte \hidemoney_y
|
757
|
757
|
.endm
|
758
|
758
|
|
759
|
|
-.marco updatemoney updatemoney_x updatemoney_y updatemoney_value
|
|
759
|
+.macro updatemoney updatemoney_x updatemoney_y updatemoney_value
|
760
|
760
|
.byte 0x95
|
761
|
761
|
.byte \updatemoney_x
|
762
|
762
|
.byte \updatemoney_y
|
763
|
763
|
.byte \updatemoney_value
|
764
|
764
|
.endm
|
765
|
765
|
|
766
|
|
-.marco fadescreen fadescreen_effect
|
|
766
|
+.macro fadescreen fadescreen_effect
|
767
|
767
|
.byte 0x97
|
768
|
768
|
.byte \fadescreen_effect
|
769
|
769
|
.endm
|
770
|
770
|
|
771
|
|
-.marco fadescreendelay fadescreendelay_effect fadescreendelay_delay
|
|
771
|
+.macro fadescreendelay fadescreendelay_effect fadescreendelay_delay
|
772
|
772
|
.byte 0x98
|
773
|
773
|
.byte \fadescreendelay_effect
|
774
|
774
|
.byte \fadescreendelay_delay
|
775
|
775
|
.endm
|
776
|
776
|
|
777
|
|
-.marco darken darken_flashsize
|
|
777
|
+.macro darken darken_flashsize
|
778
|
778
|
.byte 0x99
|
779
|
779
|
.hword \darken_flashsize
|
780
|
780
|
.endm
|
781
|
781
|
|
782
|
|
-.marco lighten lighten_flashsize
|
|
782
|
+.macro lighten lighten_flashsize
|
783
|
783
|
.byte 0x9A
|
784
|
784
|
.hword \lighten_flashsize
|
785
|
785
|
.endm
|
786
|
786
|
|
787
|
|
-.marco doanimation doanimation_animation
|
|
787
|
+.macro doanimation doanimation_animation
|
788
|
788
|
.byte 0x9C
|
789
|
789
|
.hword \doanimation_animation
|
790
|
790
|
.endm
|
791
|
791
|
|
792
|
|
-.marco setanimation setanimation_animation setanimation_variable
|
|
792
|
+.macro setanimation setanimation_animation setanimation_variable
|
793
|
793
|
.byte 0x9D
|
794
|
794
|
.byte \setanimation_animation
|
795
|
795
|
.hword \setanimation_variable
|
796
|
796
|
.endm
|
797
|
797
|
|
798
|
|
-.marco checkanimation checkanimation_animation
|
|
798
|
+.macro checkanimation checkanimation_animation
|
799
|
799
|
.byte 0x9E
|
800
|
800
|
.hword \checkanimation_animation
|
801
|
801
|
.endm
|
802
|
802
|
|
803
|
|
-.marco sethealingplace sethealingplace_flightspot
|
|
803
|
+.macro sethealingplace sethealingplace_flightspot
|
804
|
804
|
.byte 0x9F
|
805
|
805
|
.hword \sethealingplace_flightspot
|
806
|
806
|
.endm
|
|
@@ -809,12 +809,13 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
809
|
809
|
.byte 0xA0
|
810
|
810
|
.endm
|
811
|
811
|
|
812
|
|
-.marco cry cry_spezies cry_effect
|
|
812
|
+.macro cry cry_spezies cry_effect
|
813
|
813
|
.byte 0xA1
|
814
|
814
|
.hword \cry_spezies
|
815
|
815
|
.hword \cry_effect
|
|
816
|
+.endm
|
816
|
817
|
|
817
|
|
-.marco setmaptile setmaptile_x setmaptile_y setmaptile_tile setmaptile_attribut
|
|
818
|
+.macro setmaptile setmaptile_x setmaptile_y setmaptile_tile setmaptile_attribut
|
818
|
819
|
.byte 0xA2
|
819
|
820
|
.hword \setmaptile_x
|
820
|
821
|
.hword \setmaptile_y
|
|
@@ -840,7 +841,7 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
840
|
841
|
.hword \setmapfooter_footer
|
841
|
842
|
.endm
|
842
|
843
|
|
843
|
|
-.marco spritelevelup spritelevelup_people spritelevelup_bank spritelevelup_map
|
|
844
|
+.macro spritelevelup spritelevelup_people spritelevelup_bank spritelevelup_map
|
844
|
845
|
.byte 0xA8
|
845
|
846
|
.hword \spritelevelup_people
|
846
|
847
|
.byte \spritelevelup_bank
|
|
@@ -848,14 +849,14 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
848
|
849
|
.byte 0x0
|
849
|
850
|
.endm
|
850
|
851
|
|
851
|
|
-.marco restorespritelevel restorespritelevel_people restorespritelevel_bank restorespritelevel_map
|
|
852
|
+.macro restorespritelevel restorespritelevel_people restorespritelevel_bank restorespritelevel_map
|
852
|
853
|
.byte 0xA9
|
853
|
854
|
.hword \restorespritelevel_people
|
854
|
855
|
.byte \restorespritelevel_bank
|
855
|
856
|
.byte \restorespritelevel_map
|
856
|
857
|
.endm
|
857
|
858
|
|
858
|
|
-.marco createsprite createsprite_sprite createsprite_id createsprite_x createsprite_y createsprite_behaviour createsprite_facing
|
|
859
|
+.macro createsprite createsprite_sprite createsprite_id createsprite_x createsprite_y createsprite_behaviour createsprite_facing
|
859
|
860
|
.byte 0xAA
|
860
|
861
|
.byte \createsprite_sprite
|
861
|
862
|
.byte \createsprite_id
|
|
@@ -865,19 +866,19 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
865
|
866
|
.byte \createsprite_facing
|
866
|
867
|
.endm
|
867
|
868
|
|
868
|
|
-.marco spriteface2 spriteface2_people spriteface2_facing
|
|
869
|
+.macro spriteface2 spriteface2_people spriteface2_facing
|
869
|
870
|
.byte 0xAB
|
870
|
871
|
.hword \spriteface2_people
|
871
|
872
|
.byte \spriteface2_facing
|
872
|
873
|
.endm
|
873
|
874
|
|
874
|
|
-.marco setdooropened setdooropened_x setdooropened_y
|
|
875
|
+.macro setdooropened setdooropened_x setdooropened_y
|
875
|
876
|
.byte 0xAC
|
876
|
877
|
.hword \setdooropened_x
|
877
|
878
|
.hword \setdooropened_y
|
878
|
879
|
.endm
|
879
|
880
|
|
880
|
|
-.marco setdoorclosed setdoorclosed_x setdoorclosed_y
|
|
881
|
+.macro setdoorclosed setdoorclosed_x setdoorclosed_y
|
881
|
882
|
.byte 0xAD
|
882
|
883
|
.hword \setdoorclosed_x
|
883
|
884
|
.hword \setdoorclosed_y
|
|
@@ -887,19 +888,19 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
887
|
888
|
.byte 0xAE
|
888
|
889
|
.endm
|
889
|
890
|
|
890
|
|
-.marco setdooropened2 setdooropened2_x setdooropened2_y
|
|
891
|
+.macro setdooropened2 setdooropened2_x setdooropened2_y
|
891
|
892
|
.byte 0xAF
|
892
|
893
|
.hword \setdooropened2_x
|
893
|
894
|
.hword \setdooropened2_y
|
894
|
895
|
.endm
|
895
|
896
|
|
896
|
|
-.marco setdoorclosed2 setdoorclosed2_x setdoorclosed2_y
|
|
897
|
+.macro setdoorclosed2 setdoorclosed2_x setdoorclosed2_y
|
897
|
898
|
.byte 0xB0
|
898
|
899
|
.hword \setdoorclosed2_x
|
899
|
900
|
.hword \setdoorclosed2_y
|
900
|
901
|
.endm
|
901
|
902
|
|
902
|
|
-.marco setwildbattle setwildbattle_spezies setwildbattle_level setwildbattle_item
|
|
903
|
+.macro setwildbattle setwildbattle_spezies setwildbattle_level setwildbattle_item
|
903
|
904
|
.byte 0xB6
|
904
|
905
|
.hword \setwildbattle_spezies
|
905
|
906
|
.byte \setwildbattle_level
|
|
@@ -914,7 +915,7 @@ clearflag FLAG_ENABLE_MUSIC_OVERRIDES
|
914
|
915
|
.byte 0xC5
|
915
|
916
|
.endm
|
916
|
917
|
|
917
|
|
-.marco setworldmapflag setworldmapflag_flag
|
|
918
|
+.macro setworldmapflag setworldmapflag_flag
|
918
|
919
|
.byte 0xD0
|
919
|
920
|
.hword \setworldmapflag_flag
|
920
|
921
|
.endm
|