diff options
author | IIMarckus <iimarckus@gmail.com> | 2011-04-10 22:30:02 -0600 |
---|---|---|
committer | IIMarckus <iimarckus@gmail.com> | 2011-04-10 22:30:02 -0600 |
commit | 6dae2db72a283c9a5e3202ce2c585886ddf94336 (patch) | |
tree | e51c3017e678c1e6b565e5ce75028f63bd9da7c2 | |
parent | 74b45506dfbdf69c3f0c525e340c906b04add607 (diff) |
Function that copies the attack data to memory.
hg-commit-id: d2b2f3874e47
-rw-r--r-- | pokered.asm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/pokered.asm b/pokered.asm index 5c22aa0c..b818932c 100644 --- a/pokered.asm +++ b/pokered.asm @@ -3239,7 +3239,24 @@ db SUBSTITUTE ,$4F,$00,NORMAL,$FF,10 db STRUGGLE ,$30,$32,NORMAL,$FF,10 ; trainer data: from 5C53 to 652E -INCBIN "baserom.gbc",$383DE,$39C53 - $383DE +INCBIN "baserom.gbc",$383DE,$39884 - $383DE + +ReadAttack: ; 5884 + push hl + push de + push bc + dec a + ld hl,Attacks + ld bc,6 + call AddNTimes + ld de,$CFCC + call CopyData + pop bc + pop de + pop hl + ret + +INCBIN "baserom.gbc",$3989B,$39C53 - $3989B ReadTrainer: ; 5C53 ; don't change any moves in a link battle |