-
Notifications
You must be signed in to change notification settings - Fork 4
/
lapis.yaml
2698 lines (2690 loc) · 40.2 KB
/
lapis.yaml
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
charmap:
display:
0x00: ' '
0x01: 'À'
0x02: 'Á'
0x03: 'Â'
0x04: 'Ç'
0x05: 'È'
0x06: 'É'
0x07: 'Ê'
0x08: 'Ë'
0x09: 'Ì'
0x0B: 'Î'
0x0C: 'Ï'
0x0D: 'Ò'
0x0E: 'Ó'
0x0F: 'Ô'
0x10: 'Œ'
0x11: 'Ù'
0x12: 'Ú'
0x13: 'Û'
0x14: 'Ñ'
0x15: 'ß'
0x16: 'à'
0x17: 'á'
0x19: 'ç'
0x1A: 'è'
0x1B: 'é'
0x1C: 'ê'
0x1D: 'ë'
0x1E: 'ì'
0x20: 'î'
0x21: 'ï'
0x22: 'ò'
0x23: 'ó'
0x24: 'ô'
0x25: 'œ'
0x26: 'ù'
0x27: 'ú'
0x28: 'û'
0x29: 'ñ'
0x2A: 'º'
0x2B: 'ª'
0x2D: '&'
0x2E: '+'
0x32: '°'
0x34: ''
0x35: ':'
0x36: ';'
0x51: '¿'
0x52: '¡'
0x53: ''
0x54: ''
0x55: ''
0x56: ''
0x57: ''
0x58: ''
0x59: ''
0x5A: 'Í'
0x5B: '%'
0x5C: '('
0x5D: ')'
0x68: 'â'
0x6F: 'í'
0x79: '↑'
0x7A: '↓'
0x7B: '←'
0x7C: '→'
0x85: '<'
0x86: '>'
0xA1: '0'
0xA2: '1'
0xA3: '2'
0xA4: '3'
0xA5: '4'
0xA6: '5'
0xA7: '6'
0xA8: '7'
0xA9: '8'
0xAA: '9'
0xAB: '!'
0xAC: '?'
0xAD: '.'
0xAE: '-'
0xAF: '•'
0xB0: '…'
0xB1: '“'
0xB2: '”'
0xB3: '‘'
0xB4: '’'
0xB5: '♂'
0xB6: '♀'
0xB7: '₱'
0xB8: ','
0xB9: '*'
0xBA: '/'
0xBB: 'A'
0xBC: 'B'
0xBD: 'C'
0xBE: 'D'
0xBF: 'E'
0xC0: 'F'
0xC1: 'G'
0xC2: 'H'
0xC3: 'I'
0xC4: 'J'
0xC5: 'K'
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F0: ':'
0xF1: 'Ä'
0xF2: 'Ö'
0xF3: 'Ü'
0xF4: 'ä'
0xF5: 'ö'
0xF6: 'ü'
0xF7: '[^]'
0xF8: '[V]'
0xF9: '[<]'
0xFA: '\l'
0xFB: '\p'
0xFC: '\c'
0xFD: '\v'
0xFE: '\n'
0xFF: '\x'
lexer:
symbols:
- '`'
- '~'
- '!'
- '@'
- '#'
- '$'
- '%'
- '^'
- '&'
- '*'
- '('
- ')'
- '-'
- '='
- '+'
- '['
- ']'
- '{'
- '}'
- '\'
- '|'
- ';'
- ':'
- "'"
- '"'
- ','
- '<'
- '.'
- '>'
- '/'
- '?'
- '¬'
- '£'
- '¥'
- '€'
keywords:
- 'a'
- 'b'
- 'c'
- 'd'
- 'e'
- 'f'
- 'g'
- 'h'
- 'i'
- 'j'
- 'k'
- 'l'
- 'm'
- 'n'
- 'o'
- 'p'
- 'q'
- 'r'
- 's'
- 't'
- 'u'
- 'v'
- 'w'
- 'x'
- 'y'
- 'z'
- 'A'
- 'B'
- 'C'
- 'D'
- 'E'
- 'F'
- 'G'
- 'H'
- 'I'
- 'J'
- 'K'
- 'L'
- 'M'
- 'N'
- 'O'
- 'P'
- 'Q'
- 'R'
- 'S'
- 'T'
- 'U'
- 'V'
- 'W'
- 'X'
- 'Y'
- 'Z'
- '0'
- '1'
- '2'
- '3'
- '4'
- '5'
- '6'
- '7'
- '8'
- '9'
- '_'
names:
std:
0x00:
- nop0
0x01:
- nop1
0x02:
- end
0x03:
- return
0x04:
- call
0x05:
- jump
0x06:
- if
0x07:
- if
0x08:
- jumpstd
0x09:
- callstd
0x0A:
- if
0x0B:
- if
0x0C:
- jumpram
0x0D:
- die
0x0E:
- setbyte
0x0F:
- loadptr
0x10:
- setbufferbyte
0x11:
- writebytetooffset
0x12:
- loadbytefrompointer
0x13:
- setptrbyte
0x14:
- copybuffers
0x15:
- copybyte
0x16:
- setvar
0x17:
- addvar
0x18:
- subvar
0x19:
- copyvar
0x1A:
- setorcopyvar
0x1B:
- comparebuffers
0x1C:
- comparebuffertobyte
0x1D:
- comparebuffertoptrbyte
0x1E:
- compareptrbytetobuffer
0x1F:
- compareptrbytetobyte
0x20:
- compareptrbytes
0x21:
- compare
0x22:
- comparevars
0x23:
- callasm
0x24:
- jumpasm
0x25:
- special
0x26:
- specialval
0x27:
- waitstate
0x28:
- pause
0x29:
- setflag
0x2A:
- clearflag
0x2B:
- checkflag
0x2C:
- compareflags
0x2D:
- checkdailyflags
0x2E:
- resetvars
0x2F:
- playsfx
0x30:
- checksound
0x31:
- fanfare
0x32:
- waitfanfare
0x33:
- playmusic
0x34:
- playmusicbattle
0x35:
- fadedefault
0x36:
- fademusic
0x37:
- fadeout
0x38:
- fadein
0x39:
- warp
0x3A:
- warpmuted
0x3B:
- warpwalk
0x3C:
- warphole
0x3D:
- warpteleport
0x3E:
- warp3
0x3F:
- warpplace
0x40:
- warp4
0x41:
- warp5
0x42:
- getplayerxy
0x43:
- countpokemon
0x44:
- additem
0x45:
- removeitem
0x46:
- checkitemspace
0x47:
- checkitem
0x48:
- checkitemtype
0x49:
- addpcitem
0x4A:
- checkpcitem
0x4B:
- adddecor
0x4C:
- removedecor
0x4D:
- testdecor
0x4E:
- checkdecor
0x4F:
- move
0x50:
- movecoords
0x51:
- waitmove
0x52:
- waitmovexy
0x53:
- disappear
0x54:
- disappearxy
0x55:
- reappear
0x56:
- reappearxy
0x57:
- movesprite
0x58:
- spritevisible
0x59:
- spriteinvisible
0x5A:
- spriteface
0x5B:
- faceplayer
0x5C:
- trainerbattle
0x5D:
- reptrainerbattle
0x5E:
- endtrainerbattle
0x5F:
- endtrainerbattle2
0x60:
- checktrainerflag
0x61:
- cleartrainerflag
0x62:
- settrainerflag
0x63:
- movespriteperm
0x64:
- moveoffscreen
0x65:
- spritebehave
0x66:
- waittext
0x67:
- message
0x68:
- closebutton
0x69:
- lockall
0x6A:
- lock
0x6B:
- releaseall
0x6C:
- release
0x6D:
- waitbutton
0x6E:
- yesnobox
0x6F:
- multichoice
0x70:
- multichoicedef
0x71:
- multichoicerow
0x72:
- showbox
0x73:
- hidebox
0x74:
- clearbox
0x75:
- showpokepic
0x76:
- hidepokepic
0x77:
- showcontestwinner
0x78:
- braille
0x79:
- givepokemon
0x7A:
- giveegg
0x7B:
- setpokemove
0x7C:
- checkattack
0x7D:
- bufferpoke
0x7E:
- bufferfirstpoke
0x7F:
- bufferpartypoke
0x80:
- bufferitem
0x81:
- bufferdecor
0x82:
- bufferattack
0x83:
- buffernum
0x84:
- bufferstd
0x85:
- buffertext
0x86:
- pokemart
0x87:
- pokemartdecor
0x88:
- pokemartbp
0x89:
- pokecasino
0x8A:
- ~
0x8B:
- choosecontestpkmn
0x8C:
- startcontest
0x8D:
- showcontestresults
0x8E:
- contestlinktransfer
0x8F:
- random
0x90:
- givemoney
0x91:
- paymoney
0x92:
- checkmoney
0x93:
- showmoney
0x94:
- hidemoney
0x95:
- updatemoney
0x96:
- ~
0x97:
- fadescreen
0x98:
- fadescreendelay
0x99:
- darken
0x9A:
- lighten
0x9B:
- message2
0x9C:
- doanimation
0x9D:
- setanimation
0x9E:
- checkanimation
0x9F:
- sethealplace
0xA0:
- checkgender
0xA1:
- pokecry
0xA2:
- setmaptile
0xA3:
- resetweather
0xA4:
- setweather
0xA5:
- doweather
0xA6:
- ~
0xA7:
- setmapfooter
0xA8:
- spritelevelup
0xA9:
- restorespritelevel
0xAA:
- createvsprite
0xAB:
- vspriteface
0xAC:
- setdooropened
0xAD:
- setdoorclosed
0xAE:
- doorchange
0xAF:
- setdooropened2
0xB0:
- setdoorclosed2
0xB1:
- ~
0xB2:
- ~
0xB3:
- checkcoins
0xB4:
- givecoins
0xB5:
- removecoins
0xB6:
- setwildbattle
0xB7:
- dowildbattle
0xB8:
- setvaddress
0xB9:
- vjump
0xBA:
- vcall
0xBB:
- if
0xBC:
- if
0xBD:
- vtext
0xBE:
- vloadptr
0xBF:
- vbuffer
0xC0:
- showcoins
0xC1:
- hidecoins
0xC2:
- updatecoins
0xC3:
- ~
0xC4:
- warp6
0xC5:
- waitpokecry
0xC6:
- bufferboxname
0xC7:
- textcolor
0xC8:
- ~
0xC9:
- ~
0xCA:
- signmsg
0xCB:
- normalmsg
0xCC:
- comparehiddenvar
0xCD:
- setobedience
0xCE:
- checkobedience
0xCF:
- execram
0xD0:
- setworldflag
0xD1:
- warpteleport2
0xD2:
- setcatchlocale
0xD3:
- braille2
0xD4:
- storeitems
0xD5:
- ~
0xD6:
- ~
0xD7:
- warp7
0xD8:
- ~
0xD9:
- ~
0xDA:
- hidebox2
0xDB:
- message3
0xDC:
- fadescreen3
0xDD:
- buffertrainerclass
0xDE:
- buffertrainername
0xDF:
- pokenavcall
0xE0:
- warp8
0xE1:
- buffercontesttype
0xE2:
- storeitems
0xE3:
- ~
0xE4:
- ~
0xE5:
- ~
0xE6:
- ~
0xE7:
- ~
0xE8:
- ~
0xE9:
- ~
0xEA:
- ~
0xEB:
- ~
0xEC:
- ~
0xED:
- ~
0xEE:
- ~
0xEF:
- ~
0xF0:
- ~
0xF1:
- ~
0xF2:
- ~
0xF3:
- ~
0xF4:
- ~
0xF5:
- ~
0xF6:
- ~
0xF7:
- ~
0xF8:
- ~
0xF9:
- ~
0xFA:
- ~
0xFB:
- ~
0xFC:
- ~
0xFD:
- ~
0xFE:
- ~
0xFF:
- ~
xse:
0x00:
- nop
- nop0
0x01:
- nop1
0x02:
- end
0x03:
- return
0x04:
- call
0x05:
- goto
0x06:
- if
0x07:
- if
0x08:
- gotostd
0x09:
- callstd
- gosubstd
0x0A:
- if
0x0B:
- if
0x0C:
- gotoram
0x0D:
- killscript
0x0E:
- setbyte
0x0F:
- loadpointer
- msgbox
0x10:
- setbyte2
0x11:
- writebytetooffset
0x12:
- loadbytefrompointer
0x13:
- setfarbyte
0x14:
- copyscriptbanks
0x15:
- copybyte
0x16:
- setvar
0x17: