Advertisement
Squeetz

bscmds.txt

Sep 6th, 2018
273
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.91 KB | None | 0 0
  1. .equ rom, 0x08000000
  2. @ 0 == (equal)
  3. @ 1 != (notequal)
  4. @ 2 < (lessthan)
  5. @ 3 > (greaterthan)
  6. @ 4 &=
  7.  
  8. .macro calculatedamage
  9. critcalc
  10. atk5
  11. atk6
  12. atk7
  13. .endm
  14.  
  15.  
  16. .macro attackcanceler
  17. .byte 0x00
  18. .endm
  19.  
  20. .macro accuracycheck address, param1
  21. .byte 0x01
  22. .4byte \address
  23. .2byte \param1
  24. .endm
  25.  
  26. .macro attackstring
  27. .byte 0x02
  28. .endm
  29.  
  30. .macro ppreduce
  31. .byte 0x03
  32. .endm
  33.  
  34. .macro critcalc
  35. .byte 0x04
  36. .endm
  37.  
  38. .macro atk5
  39. .byte 0x05
  40. .endm
  41.  
  42. .macro atk6
  43. .byte 0x06
  44. .endm
  45.  
  46. .macro atk7
  47. .byte 0x07
  48. .endm
  49.  
  50. .macro atk8
  51. .byte 0x08
  52. .endm
  53.  
  54. .macro attackanimation
  55. .byte 0x09
  56. .endm
  57.  
  58. .macro waitanimation
  59. .byte 0x0a
  60. .endm
  61.  
  62. .macro graphicalhpupdate bank
  63. .byte 0x0b
  64. .byte \bank
  65. .endm
  66.  
  67. .macro datahpupdate bank
  68. .byte 0x0c
  69. .byte \bank
  70. .endm
  71.  
  72. .macro critmessage
  73. .byte 0x0d
  74. .endm
  75.  
  76. .macro missmessage
  77. .byte 0x0e
  78. .endm
  79.  
  80. .macro resultmessage
  81. .byte 0x0f
  82. .endm
  83.  
  84. .macro printstring string
  85. .byte 0x10
  86. .2byte \string
  87. .endm
  88.  
  89. .macro printstring2 string
  90. .byte 0x11
  91. .2byte \string
  92. .endm
  93.  
  94. .macro waitmessage delay
  95. .byte 0x12
  96. .2byte \delay
  97. .endm
  98.  
  99. .macro printfromtable table
  100. .byte 0x13
  101. .4byte \table
  102. .endm
  103.  
  104. .macro printfromtable2 table
  105. .byte 0x14
  106. .4byte \table
  107. .endm
  108.  
  109. .macro seteffectwithchancetarget
  110. .byte 0x15
  111. .endm
  112.  
  113. .macro seteffecttarget
  114. .byte 0x16
  115. .endm
  116.  
  117. .macro seteffectuser
  118. .byte 0x17
  119. .endm
  120.  
  121. .macro clearstatus bank
  122. .byte 0x18
  123. .byte \bank
  124. .endm
  125.  
  126. .macro faintpokemon bank, param2, param3
  127. .byte 0x19
  128. .byte \bank
  129. .byte \param2
  130. .4byte \param3
  131. .endm
  132.  
  133. .macro atk1a param1
  134. .byte 0x1a
  135. .byte \param1
  136. .endm
  137.  
  138. .macro atk1b bank
  139. .byte 0x1b
  140. .byte \bank
  141. .endm
  142.  
  143. .macro jumpifstatus bank, status, address
  144. .byte 0x1c
  145. .byte \bank
  146. .4byte \status
  147. .4byte \address
  148. .endm
  149.  
  150. .macro jumpifsecondarystatus bank, status, address
  151. .byte 0x1d
  152. .byte \bank
  153. .4byte \status
  154. .4byte \address
  155. .endm
  156.  
  157. .macro jumpifability bank, ability, address
  158. .byte 0x1e
  159. .byte \bank
  160. .byte \ability
  161. .4byte \address
  162. .endm
  163.  
  164. .macro jumpifhalverset bank, status, address
  165. .byte 0x1f
  166. .byte \bank
  167. .2byte \status
  168. .4byte \address
  169. .endm
  170.  
  171. .macro jumpifstat bank, flag, statid, quantity, address
  172. .byte 0x20
  173. .byte \bank
  174. .byte \flag
  175. .byte \statid
  176. .byte \quantity
  177. .4byte \address
  178. .endm
  179.  
  180. .macro jumpifspecialstatusflag bank, mask, status, address
  181. .byte 0x21
  182. .byte \bank
  183. .4byte \mask
  184. .byte \status
  185. .4byte \address
  186. .endm
  187.  
  188. .macro jumpiftype bank, type, address
  189. .byte 0x22
  190. .byte \bank
  191. .byte \type
  192. .4byte \address
  193. .endm
  194.  
  195. .macro atk23 bank
  196. .byte 0x23
  197. .byte \bank
  198. .endm
  199.  
  200. .macro ifwildbattleend address
  201. .byte 0x24
  202. .4byte \address
  203. .endm
  204.  
  205. .macro atk25
  206. .byte 0x25
  207. .endm
  208.  
  209. .macro atk26 param1
  210. .byte 0x26
  211. .byte \param1
  212. .endm
  213.  
  214. .macro atk27 address
  215. .byte 0x27
  216. .4byte \address
  217. .endm
  218.  
  219. .macro goto address
  220. .byte 0x28
  221. .4byte \address
  222. .endm
  223.  
  224. .macro jumpifbyte ifflag, checkaddr, compare, address
  225. .byte 0x29
  226. .byte \ifflag
  227. .4byte \checkaddr
  228. .byte \compare
  229. .4byte \address
  230. .endm
  231.  
  232. .macro jumpifhalfword ifflag, checkaddr, compare, address
  233. .byte 0x2a
  234. .byte \ifflag
  235. .4byte \checkaddr
  236. .2byte \compare
  237. .4byte \address
  238. .endm
  239.  
  240. .macro jumpifword ifflag, checkaddr, compare, address
  241. .byte 0x2b
  242. .byte \ifflag
  243. .4byte \checkaddr
  244. .4byte \compare
  245. .4byte \address
  246. .endm
  247.  
  248. .macro jumpifarrayequal mem1, mem2, size, address
  249. .byte 0x2c
  250. .4byte \mem1
  251. .4byte \mem2
  252. .byte \size
  253. .4byte \address
  254. .endm
  255.  
  256. .macro jumpifarraynotequal mem1, mem2, size, address
  257. .byte 0x2d
  258. .4byte \mem1
  259. .4byte \mem2
  260. .byte \size
  261. .4byte \address
  262. .endm
  263.  
  264. .macro setbyte pointer, value
  265. .byte 0x2e
  266. .4byte \pointer
  267. .byte \value
  268. .endm
  269.  
  270. .macro addbyte pointer, value
  271. .byte 0x2f
  272. .4byte \pointer
  273. .byte \value
  274. .endm
  275.  
  276. .macro subtractbyte pointer, value
  277. .byte 0x30
  278. .4byte \pointer
  279. .byte \value
  280. .endm
  281.  
  282. .macro copyarray destination, source, size
  283. .byte 0x31
  284. .4byte \destination
  285. .4byte \source
  286. .byte \size
  287. .endm
  288.  
  289. .macro atk32 param1, param2, param3, byte
  290. .byte 0x32
  291. .4byte \param1
  292. .4byte \param2
  293. .4byte \param3
  294. .byte \byte
  295. .endm
  296.  
  297. .macro orbyte pointer, value
  298. .byte 0x33
  299. .4byte \pointer
  300. .byte \value
  301. .endm
  302.  
  303. .macro orhalfword pointer, value
  304. .byte 0x34
  305. .4byte \pointer
  306. .2byte \value
  307. .endm
  308.  
  309. .macro orword pointer, value
  310. .byte 0x35
  311. .4byte \pointer
  312. .4byte \value
  313. .endm
  314.  
  315. .macro bicbyte pointer, value
  316. .byte 0x36
  317. .4byte \pointer
  318. .byte \value
  319. .endm
  320.  
  321. .macro bichalfword pointer, value
  322. .byte 0x37
  323. .4byte \pointer
  324. .2byte \value
  325. .endm
  326.  
  327. .macro bicword pointer, value
  328. .byte 0x38
  329. .4byte \pointer
  330. .4byte \value
  331. .endm
  332.  
  333. .macro pause pause_duration
  334. .byte 0x39
  335. .2byte \pause_duration
  336. .endm
  337.  
  338. .macro waitstate
  339. .byte 0x3a
  340. .endm
  341.  
  342. .macro somethinghealatk3b bank
  343. .byte 0x3b
  344. .byte \bank
  345. .endm
  346.  
  347. .macro return
  348. .byte 0x3c
  349. .endm
  350.  
  351. .macro end
  352. .byte 0x3d
  353. .endm
  354.  
  355. .macro end2
  356. .byte 0x3e
  357. .endm
  358.  
  359. .macro end3
  360. .byte 0x3f
  361. .endm
  362.  
  363. .macro atk40 address
  364. .byte 0x40
  365. .4byte \address
  366. .endm
  367.  
  368. .macro call address
  369. .byte 0x41
  370. .4byte \address
  371. .endm
  372.  
  373. .macro jumpiftype2 bank, type, address
  374. .byte 0x42
  375. .byte \bank
  376. .byte \type
  377. .4byte \address
  378. .endm
  379.  
  380. .macro jumpifabilitypresent ability, address
  381. .byte 0x43
  382. .byte \ability
  383. .4byte \address
  384. .endm
  385.  
  386. .macro atk44
  387. .byte 0x44
  388. .endm
  389.  
  390. .macro playanimation bank, animation, var_address
  391. .byte 0x45
  392. .byte \bank
  393. .byte \animation
  394. .4byte \var_address
  395. .endm
  396.  
  397. .macro atk46 bank, address, int
  398. .byte 0x46
  399. .byte \bank
  400. .4byte \address
  401. .4byte \int
  402. .endm
  403.  
  404. .macro atk47
  405. .byte 0x47
  406. .endm
  407.  
  408. .macro playstatchangeanimation bank, color, byte
  409. .byte 0x48
  410. .byte \bank
  411. .byte \color
  412. .byte \byte
  413. .endm
  414.  
  415. /*
  416. colors:
  417. 0x02 = attack
  418. 0x04 = defense
  419. 0x08 = speed
  420. 0x10 = spatk
  421. 0x20 = spdef
  422. 0x40 = accuracy
  423. 0x80 = evasion
  424. */
  425.  
  426. .macro atk49 byte1, byte2
  427. .byte 0x49
  428. .byte \byte1
  429. .byte \byte2
  430. .endm
  431.  
  432. .macro damagecalc2
  433. .byte 0x4a
  434. .endm
  435.  
  436. .macro atk4b
  437. .byte 0x4b
  438. .endm
  439.  
  440. .macro switch1 bank
  441. .byte 0x4c
  442. .byte \bank
  443. .endm
  444.  
  445. .macro switch2 bank
  446. .byte 0x4d
  447. .byte \bank
  448. .endm
  449.  
  450. .macro switch3 bank, byte
  451. .byte 0x4e
  452. .byte \bank
  453. .byte \byte
  454. .endm
  455.  
  456. .macro jumpifcannotswitch bank, address
  457. .byte 0x4f
  458. .byte \bank
  459. .4byte \address
  460. .endm
  461.  
  462. .macro openpartyscreen bank, address
  463. .byte 0x50
  464. .byte \bank
  465. .4byte \address
  466. .endm
  467.  
  468. .macro atk51 bank, param2
  469. .byte 0x51
  470. .byte \bank
  471. .byte \param2
  472. .endm
  473.  
  474. .macro atk52 bank
  475. .byte 0x52
  476. .byte \bank
  477. .endm
  478.  
  479. .macro atk53 bank
  480. .byte 0x53
  481. .byte \bank
  482. .endm
  483.  
  484. .macro atk54 word
  485. .byte 0x54
  486. .2byte \word
  487. .endm
  488.  
  489. .macro atk55 int
  490. .byte 0x55
  491. .4byte \int
  492. .endm
  493.  
  494. .macro atk56 bank_or_side
  495. .byte 0x56
  496. .byte \bank_or_side
  497. .endm
  498.  
  499. .macro atk57
  500. .byte 0x57
  501. .endm
  502.  
  503. .macro atk58 bank
  504. .byte 0x58
  505. .byte \bank
  506. .endm
  507.  
  508. .macro checkiflearnmoveinbattle param1, param2, bank_maybe
  509. .byte 0x59
  510. .4byte \param1
  511. .4byte \param2
  512. .byte \bank_maybe
  513. .endm
  514.  
  515. .macro atk5a address
  516. .byte 0x5a
  517. .4byte \address
  518. .endm
  519.  
  520. .macro atk5b address
  521. .byte 0x5b
  522. .4byte \address
  523. .endm
  524.  
  525. .macro flash bank
  526. .byte 0x5c
  527. .byte \bank
  528. .endm
  529.  
  530. .macro atk5d
  531. .byte 0x5d
  532. .endm
  533.  
  534. .macro atk5e bank
  535. .byte 0x5e
  536. .byte \bank
  537. .endm
  538.  
  539. .macro atk5f
  540. .byte 0x5f
  541. .endm
  542.  
  543. .macro atk60 byte
  544. .byte 0x60
  545. .byte \byte
  546. .endm
  547.  
  548. .macro atk61 bank_or_side
  549. .byte 0x61
  550. .byte \bank_or_side
  551. .endm
  552.  
  553. .macro atk62 bank_or_side
  554. .byte 0x62
  555. .byte \bank_or_side
  556. .endm
  557.  
  558. .macro jumptoattack bank
  559. .byte 0x63
  560. .byte \bank
  561. .endm
  562.  
  563. .macro statusanimation bank
  564. .byte 0x64
  565. .byte \bank
  566. .endm
  567.  
  568. .macro atk65 bank_or_side, address
  569. .byte 0x65
  570. .byte \bank_or_side
  571. .4byte \address
  572. .endm
  573.  
  574. .macro atk66 bank_or_side, bank_or_side2, address
  575. .byte 0x66
  576. .byte \bank_or_side
  577. .byte \bank_or_side2
  578. .4byte \address
  579. .endm
  580.  
  581. .macro atk67
  582. .byte 0x67
  583. .endm
  584.  
  585. .macro atk68
  586. .byte 0x68
  587. .endm
  588.  
  589. .macro atk69
  590. .byte 0x69
  591. .endm
  592.  
  593. .macro removeitem bank
  594. .byte 0x6a
  595. .byte \bank
  596. .endm
  597.  
  598. .macro atk6b
  599. .byte 0x6b
  600. .endm
  601.  
  602. .macro atk6c
  603. .byte 0x6c
  604. .endm
  605.  
  606. .macro atk6d
  607. .byte 0x6d
  608. .endm
  609.  
  610. .macro atk6e
  611. .byte 0x6e
  612. .endm
  613.  
  614. .macro atk6f bank
  615. .byte 0x6f
  616. .byte \bank
  617. .endm
  618.  
  619. .macro atk70 bank
  620. .byte 0x70
  621. .byte \bank
  622. .endm
  623.  
  624. .macro atk71
  625. .byte 0x71
  626. .endm
  627.  
  628. .macro atk72 address
  629. .byte 0x72
  630. .4byte \address
  631. .endm
  632.  
  633. .macro atk73 bank
  634. .byte 0x73
  635. .byte \bank
  636. .endm
  637.  
  638. .macro atk74 bank
  639. .byte 0x74
  640. .byte \bank
  641. .endm
  642.  
  643. .macro atk75
  644. .byte 0x75
  645. .endm
  646.  
  647. .macro atk76 bank, byte
  648. .byte 0x76
  649. .byte \bank
  650. .byte \byte
  651. .endm
  652.  
  653. .macro setprotect
  654. .byte 0x77
  655. .endm
  656.  
  657. .macro faintifabilitynotdamp
  658. .byte 0x78
  659. .endm
  660.  
  661. .macro setuserhptozero
  662. .byte 0x79
  663. .endm
  664.  
  665. .macro jumpwhiletargetvalid address
  666. .byte 0x7a
  667. .4byte \address
  668. .endm
  669.  
  670. .macro setdamageasrestorehalfmaxhp address, byte
  671. .byte 0x7b
  672. .4byte \address
  673. .byte \byte
  674. .endm
  675.  
  676. .macro jumptolastusedattack
  677. .byte 0x7c
  678. .endm
  679.  
  680. .macro setrain
  681. .byte 0x7d
  682. .endm
  683.  
  684. .macro setreflect
  685. .byte 0x7e
  686. .endm
  687.  
  688. .macro setleechseed
  689. .byte 0x7f
  690. .endm
  691.  
  692. .macro manipulatedamage id
  693. .byte 0x80
  694. .byte \id
  695. .endm
  696.  
  697. .macro setrest address
  698. .byte 0x81
  699. .4byte \address
  700. .endm
  701.  
  702. .macro jumpifnotfirstturn address
  703. .byte 0x82
  704. .4byte \address
  705. .endm
  706.  
  707. .macro nop3
  708. .byte 0x83
  709. .endm
  710.  
  711. .macro jumpifcannotsleep address
  712. .byte 0x84
  713. .4byte \address
  714. .endm
  715.  
  716. .macro stockpile
  717. .byte 0x85
  718. .endm
  719.  
  720. .macro stockpiletobasedamage address
  721. .byte 0x86
  722. .4byte \address
  723. .endm
  724.  
  725. .macro stockpiletohprecovery address
  726. .byte 0x87
  727. .4byte \address
  728. .endm
  729.  
  730. .macro negativedamage
  731. .byte 0x88
  732. .endm
  733.  
  734. .macro statbuffchange target, address
  735. .byte 0x89
  736. .byte \target
  737. .4byte \address
  738. .endm
  739.  
  740. .macro normalisebuffs
  741. .byte 0x8a
  742. .endm
  743.  
  744. .macro setbide
  745. .byte 0x8b
  746. .endm
  747.  
  748. .macro confuseifrepeatingattackends
  749. .byte 0x8c
  750. .endm
  751.  
  752. .macro setloopcounter count
  753. .byte 0x8d
  754. .byte \count
  755. .endm
  756.  
  757. .macro atk8e
  758. .byte 0x8e
  759. .endm
  760.  
  761. .macro forcerandomswitch address
  762. .byte 0x8f
  763. .4byte \address
  764. .endm
  765.  
  766. .macro changetypestoenemyattacktype address
  767. .byte 0x90
  768. .4byte \address
  769. .endm
  770.  
  771. .macro givemoney
  772. .byte 0x91
  773. .endm
  774.  
  775. .macro setlightscreen
  776. .byte 0x92
  777. .endm
  778.  
  779. .macro koplussomethings address
  780. .byte 0x93
  781. .4byte \address
  782. .endm
  783.  
  784. .macro gethalfcurrentenemyhp
  785. .byte 0x94
  786. .endm
  787.  
  788. .macro setsandstorm
  789. .byte 0x95
  790. .endm
  791.  
  792. .macro weatherdamage
  793. .byte 0x96
  794. .endm
  795.  
  796. .macro tryinfatuatetarget address
  797. .byte 0x97
  798. .4byte \address
  799. .endm
  800.  
  801. .macro refreshhpbar target
  802. .byte 0x98
  803. .byte \target
  804. .endm
  805.  
  806. .macro setmisteffect
  807. .byte 0x99
  808. .endm
  809.  
  810. .macro setincreasedcriticalchance
  811. .byte 0x9a
  812. .endm
  813.  
  814. .macro transformdataexecution
  815. .byte 0x9b
  816. .endm
  817.  
  818. .macro setsubstituteeffect
  819. .byte 0x9c
  820. .endm
  821.  
  822. .macro copyattack address
  823. .byte 0x9d
  824. .4byte \address
  825. .endm
  826.  
  827. .macro metronomeeffect
  828. .byte 0x9e
  829. .endm
  830.  
  831. .macro nightshadedamageeffect
  832. .byte 0x9f
  833. .endm
  834.  
  835. .macro psywavedamageeffect
  836. .byte 0xa0
  837. .endm
  838.  
  839. .macro counterdamagecalculator address
  840. .byte 0xa1
  841. .4byte \address
  842. .endm
  843.  
  844. .macro mirrorcoatdamagecalculator address
  845. .byte 0xa2
  846. .4byte \address
  847. .endm
  848.  
  849. .macro disablelastusedattack address
  850. .byte 0xa3
  851. .4byte \address
  852. .endm
  853.  
  854. .macro setencore address
  855. .byte 0xa4
  856. .4byte \address
  857. .endm
  858.  
  859. .macro painsplitdamagecalculator address
  860. .byte 0xa5
  861. .4byte \address
  862. .endm
  863.  
  864. .macro settypetorandomresistance address
  865. .byte 0xa6
  866. .4byte \address
  867. .endm
  868.  
  869. .macro setalwayshitflag
  870. .byte 0xa7
  871. .endm
  872.  
  873. .macro copymovepermanently address
  874. .byte 0xa8
  875. .4byte \address
  876. .endm
  877.  
  878. .macro selectrandommovefromusermoves address
  879. .byte 0xa9
  880. .4byte \address
  881. .endm
  882.  
  883. .macro destinybondeffect
  884. .byte 0xaa
  885. .endm
  886.  
  887. .macro atkab
  888. .byte 0xab
  889. .endm
  890.  
  891. .macro remaininghptopower
  892. .byte 0xac
  893. .endm
  894.  
  895. .macro reducepprandom address
  896. .byte 0xad
  897. .4byte \address
  898. .endm
  899.  
  900. .macro clearstatusifnotsoundproofed
  901. .byte 0xae
  902. .endm
  903.  
  904. .macro cursetarget address
  905. .byte 0xaf
  906. .4byte \address
  907. .endm
  908.  
  909. .macro setspikes address
  910. .byte 0xb0
  911. .4byte \address
  912. .endm
  913.  
  914. .macro setforesight
  915. .byte 0xb1
  916. .endm
  917.  
  918. .macro setperishsong address
  919. .byte 0xb2
  920. .4byte \address
  921. .endm
  922.  
  923. .macro rolloutdamagecalculation
  924. .byte 0xb3
  925. .endm
  926.  
  927. .macro jumpifconfusedandattackmaxed bank, address
  928. .byte 0xb4
  929. .byte \bank
  930. .4byte \address
  931. .endm
  932.  
  933. .macro furycutterdamagecalculation
  934. .byte 0xb5
  935. .endm
  936.  
  937. .macro happinesstodamagecalculation
  938. .byte 0xb6
  939. .endm
  940.  
  941. .macro presentdamagecalculation
  942. .byte 0xb7
  943. .endm
  944.  
  945. .macro setsafeguard
  946. .byte 0xb8
  947. .endm
  948.  
  949. .macro magnitudedamagecalculation
  950. .byte 0xb9
  951. .endm
  952.  
  953. .macro atkba address
  954. .byte 0xba
  955. .4byte \address
  956. .endm
  957.  
  958. .macro setsunny
  959. .byte 0xbb
  960. .endm
  961.  
  962. .macro maxattackhalvehp address
  963. .byte 0xbc
  964. .4byte \address
  965. .endm
  966.  
  967. .macro copyfoestats address
  968. .byte 0xbd
  969. .4byte \address
  970. .endm
  971.  
  972. .macro breakfree
  973. .byte 0xbe
  974. .endm
  975.  
  976. .macro setcurled
  977. .byte 0xbf
  978. .endm
  979.  
  980. .macro recoverbasedonsunlight address
  981. .byte 0xc0
  982. .4byte \address
  983. .endm
  984.  
  985. .macro hiddenpowerdamagecalculation
  986. .byte 0xc1
  987. .endm
  988.  
  989. .macro selectnexttarget
  990. .byte 0xc2
  991. .endm
  992.  
  993. .macro setfutureattack address
  994. .byte 0xc3
  995. .4byte \address
  996. .endm
  997.  
  998. .macro beatupcalculation address1, address2
  999. .byte 0xc4
  1000. .4byte \address1
  1001. .4byte \address2
  1002. .endm
  1003.  
  1004. .macro hidepreattack
  1005. .byte 0xc5
  1006. .endm
  1007.  
  1008. .macro unhidepostattack
  1009. .byte 0xc6
  1010. .endm
  1011.  
  1012. .macro setminimize
  1013. .byte 0xc7
  1014. .endm
  1015.  
  1016. .macro sethail
  1017. .byte 0xc8
  1018. .endm
  1019.  
  1020. .macro jumpifattackandspecialattackcannotfall address
  1021. .byte 0xc9
  1022. .4byte \address
  1023. .endm
  1024.  
  1025. .macro setforcedtarget
  1026. .byte 0xca
  1027. .endm
  1028.  
  1029. .macro setcharge
  1030. .byte 0xcb
  1031. .endm
  1032.  
  1033. .macro callterrainattack
  1034. .byte 0xcc
  1035. .endm
  1036.  
  1037. .macro cureifburnedparalysedorpoisoned address
  1038. .byte 0xcd
  1039. .4byte \address
  1040. .endm
  1041.  
  1042. .macro settorment address
  1043. .byte 0xce
  1044. .4byte \address
  1045. .endm
  1046.  
  1047. .macro jumpifnodamage address
  1048. .byte 0xcf
  1049. .4byte \address
  1050. .endm
  1051.  
  1052. .macro settaunt address
  1053. .byte 0xd0
  1054. .4byte \address
  1055. .endm
  1056.  
  1057. .macro sethelpinghand address
  1058. .byte 0xd1
  1059. .4byte \address
  1060. .endm
  1061.  
  1062. .macro itemswap address
  1063. .byte 0xd2
  1064. .4byte \address
  1065. .endm
  1066.  
  1067. .macro copyability address
  1068. .byte 0xd3
  1069. .4byte \address
  1070. .endm
  1071.  
  1072. .macro atkd4 byte, address
  1073. .byte 0xd4
  1074. .byte \byte
  1075. .4byte \address
  1076. .endm
  1077.  
  1078. .macro setroots address
  1079. .byte 0xd5
  1080. .4byte \address
  1081. .endm
  1082.  
  1083. .macro doubledamagedealtifdamaged
  1084. .byte 0xd6
  1085. .endm
  1086.  
  1087. .macro setyawn address
  1088. .byte 0xd7
  1089. .4byte \address
  1090. .endm
  1091.  
  1092. .macro setdamagetohealthdifference address
  1093. .byte 0xd8
  1094. .4byte \address
  1095. .endm
  1096.  
  1097. .macro scaledamagebyhealthratio
  1098. .byte 0xd9
  1099. .endm
  1100.  
  1101. .macro abilityswap address
  1102. .byte 0xda
  1103. .4byte \address
  1104. .endm
  1105.  
  1106. .macro imprisoneffect address
  1107. .byte 0xdb
  1108. .4byte \address
  1109. .endm
  1110.  
  1111. .macro setgrudge address
  1112. .byte 0xdc
  1113. .4byte \address
  1114. .endm
  1115.  
  1116. .macro weightdamagecalculation
  1117. .byte 0xdd
  1118. .endm
  1119.  
  1120. .macro assistattackselect address
  1121. .byte 0xde
  1122. .4byte \address
  1123. .endm
  1124.  
  1125. .macro setmagiccoat address
  1126. .byte 0xdf
  1127. .4byte \address
  1128. .endm
  1129.  
  1130. .macro setstealstatchange address
  1131. .byte 0xe0
  1132. .4byte \address
  1133. .endm
  1134.  
  1135. .macro atke1 address
  1136. .byte 0xe1
  1137. .4byte \address
  1138. .endm
  1139.  
  1140. .macro atke2 bank
  1141. .byte 0xe2
  1142. .byte \bank
  1143. .endm
  1144.  
  1145. .macro jumpiffainted bank, address
  1146. .byte 0xe3
  1147. .byte \bank
  1148. .4byte \address
  1149. .endm
  1150.  
  1151. .macro naturepowereffect
  1152. .byte 0xe4
  1153. .endm
  1154.  
  1155. .macro pickupitemcalculation
  1156. .byte 0xe5
  1157. .endm
  1158.  
  1159. .macro actualcastformswitch
  1160. .byte 0xe6
  1161. .endm
  1162.  
  1163. .macro castformswitch
  1164. .byte 0xe7
  1165. .endm
  1166.  
  1167. .macro settypebasedhalvers address
  1168. .byte 0xe8
  1169. .4byte \address
  1170. .endm
  1171.  
  1172. .macro seteffectbyweather
  1173. .byte 0xe9
  1174. .endm
  1175.  
  1176. .macro recycleitem address
  1177. .byte 0xea
  1178. .4byte \address
  1179. .endm
  1180.  
  1181. .macro settypetoterrain address
  1182. .byte 0xeb
  1183. .4byte \address
  1184. .endm
  1185.  
  1186. .macro pursuitwhenswitched address
  1187. .byte 0xec
  1188. .4byte \address
  1189. .endm
  1190.  
  1191. .macro snatchmove
  1192. .byte 0xed
  1193. .endm
  1194.  
  1195. .macro removereflectlightscreen
  1196. .byte 0xee
  1197. .endm
  1198.  
  1199. .macro pokemoncatchfunction
  1200. .byte 0xef
  1201. .endm
  1202.  
  1203. .macro catchpoke
  1204. .byte 0xf0
  1205. .endm
  1206.  
  1207. .macro capturesomethingf1 address
  1208. .byte 0xf1
  1209. .4byte \address
  1210. .endm
  1211.  
  1212. .macro capturesomethingf2
  1213. .byte 0xf2
  1214. .endm
  1215.  
  1216. .macro capturesomethingf3 address
  1217. .byte 0xf3
  1218. .4byte \address
  1219. .endm
  1220.  
  1221. .macro removehp
  1222. .byte 0xf4
  1223. .endm
  1224.  
  1225. .macro curestatusfirstword
  1226. .byte 0xf5
  1227. .endm
  1228.  
  1229. .macro atkf6
  1230. .byte 0xf6
  1231. .endm
  1232.  
  1233. .macro activesidesomething
  1234. .byte 0xf7
  1235. .endm
  1236.  
  1237. .macro callasm address
  1238. .byte 0xf8
  1239. .4byte \address
  1240. .endm
  1241.  
  1242. .macro setword ramaddr romaddr
  1243. .byte 0xfa
  1244. .4byte \ramaddr
  1245. .4byte \romaddr
  1246. .endm
  1247.  
  1248. .macro jumpifhelditemeffect bank effect address
  1249. .byte 0xFF
  1250. .byte 0x7
  1251. .byte \bank
  1252. .byte \effect
  1253. .4byte \address
  1254. .endm
  1255.  
  1256. .macro endurance bank compare address
  1257. .byte 0xFF
  1258. .byte 0x12
  1259. .byte \bank
  1260. .byte \compare
  1261. .4byte \address
  1262. .endm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement