diff options
author | IIMarckus <iimarckus@gmail.com> | 2010-10-29 20:35:17 -0600 |
---|---|---|
committer | IIMarckus <iimarckus@gmail.com> | 2010-10-29 20:35:17 -0600 |
commit | f0ae1dcc352cb0f3a2867fdb56e7519ad69a0fd7 (patch) | |
tree | 4b30ec66db7b9acbb7fc3cd8f0528de757297822 | |
parent | abf21e5383b74c82e37d57617b6596fe8b273b30 (diff) |
decompose PrintText
hg-commit-id: 2541bb953956
-rw-r--r-- | pokered.asm | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/pokered.asm b/pokered.asm index 1ed3b97d..96ab3528 100644 --- a/pokered.asm +++ b/pokered.asm @@ -1151,7 +1151,21 @@ AddNTimes: ; 3A87 jr nz,.loop\@ ret -INCBIN "baserom.gbc",$3A8E,$4000 - $3A8E +INCBIN "baserom.gbc",$3A8E,$3C49 - $3A8E + +PrintText: ; 3C49 +; given a pointer in hl, print the text there + push hl + ld a,1 + ld [$D125],a + call $30E8 + call $2429 + call $3DD7 + pop hl + ld bc,$C4B9 + jp $1B40 + +INCBIN "baserom.gbc",$3C5F,$4000 - $3C5F SECTION "bank1",DATA,BANK[$1] INCBIN "baserom.gbc",$4000,$4000 @@ -3727,7 +3741,7 @@ Function674B: ; 674B call CopyData ld hl,BattleWithdrawText - call $3C49 ; print text + call PrintText ld a,1 ld [$D11D],a ld hl,$490E @@ -3866,7 +3880,7 @@ AIPrintItemUse_: ld [$D11E],a call $2FCF ; get item name ld hl,AIBattleUseItemText - jp $3C49 ; print text + jp PrintText AIBattleUseItemText: db $17 |