Prev: AE04 Up: Map Next: AE3C
AE17: Routine at AE17
Used by the routines at 9D42, Messaging_YouWin, A41E and AADC.
AE17 LD DE,$AF51 DE=AF51.
AE1A LD HL,$AF49 HL=AF49.
AE1D LD B,$04 B=04.
AE1F PUSH BC Stash BC on the stack.
AE20 LD B,H B=H.
AE21 LD C,L C=L.
AE22 PUSH DE Stash DE on the stack.
AE23 LD E,(HL) E=*HL.
AE24 INC HL Increment HL by one.
AE25 LD D,(HL) D=*HL.
AE26 EX DE,HL Exchange the DE and HL registers.
AE27 POP DE Restore DE from the stack.
AE28 CALL $AEF0 Call AEF0.
AE2B LD H,B H=B.
AE2C LD L,C L=C.
AE2D INC DE Increment DE by three.
AE2E INC DE
AE2F INC DE
AE30 INC HL Increment HL by two.
AE31 INC HL
AE32 POP BC Restore BC from the stack.
AE33 DJNZ $AE1F Decrease counter by one and loop back to AE1F until counter is zero.
AE35 LD DE,$AF51 DE=AF51.
AE38 CALL $AE3C Call AE3C.
AE3B RET Return.
Prev: AE04 Up: Map Next: AE3C