Prev: C8A8 Up: Map Next: C96B
C8C0: Bonus Print
Used by the routine at C3FB.
BonusPrint C8C0 LD HL,$4000
C8C3 LD DE,$4001
C8C6 LD BC,$17FF
C8C9 LD (HL),$00
C8CB LDIR
C8CD LD HL,$5800
C8D0 LD DE,$5801
C8D3 LD BC,$02FF
C8D6 LD (HL),$07
C8D8 LDIR
C8DA LD DE,$C8A8 DE=BonusCopy (text).
C8DD LD BC,$0018 BC=18 (counter).
C8E0 CALL $203C Call PR_STRING.
C8E3 LD A,$07
C8E5 LD ($5C8D),A
C8E8 LD B,$1E
BonusPrint_0 C8EA HALT
C8EB DJNZ BonusPrint_0
C8ED LD A,($5B91)
C8F0 LD B,$00
C8F2 LD C,A
BonusPrint_1 C8F3 PUSH HL
C8F4 PUSH BC
C8F5 PUSH DE
C8F6 LD HL,($5B8E)
C8F9 INC HL
C8FA LD ($5B8E),HL
C8FD CALL $C949
C900 CALL BonusPrint_3
C903 POP DE
C904 POP BC
C905 POP HL
C906 DEC BC
C907 XOR A
C908 CP C
C909 JP NZ,BonusPrint_1
C90C CP B
C90D JP NZ,BonusPrint_1
C910 LD B,$1E
BonusPrint_2 C912 HALT
C913 DJNZ BonusPrint_2
C915 LD HL,$4000
C918 LD DE,$4001
C91B LD BC,$1AFF
C91E LD (HL),$00
C920 LDIR
C922 RET
BonusPrint_3 C923 PUSH HL
C924 PUSH DE
C925 PUSH BC
C926 LD A,C
C927 AND $1F
C929 LD B,A
BonusPrint_4 C92A PUSH BC
C92B LD DE,$0001
C92E LD A,B
C92F OR $01
C931 RLCA
C932 LD L,A
C933 LD H,$00
C935 CALL $03B5
C938 POP BC
C939 DJNZ BonusPrint_4
C93B POP BC
C93C POP DE
C93D POP HL
C93E RET
C93F LD D,$0E
C941 LD A,(BC)
C942 LD D,E
C943 LD B,E
C944 LD C,A
C945 LD D,D
C946 LD B,L
C947 LD A,($1120)
C94A CCF
C94B RET
C94C LD BC,$000A
C94F LD A,$00
C951 LD ($5C6B),A
C954 CALL $203C
C957 LD A,$02
C959 LD ($5C6B),A
C95C LD HL,($5B8E)
C95F PUSH HL
C960 POP BC
C961 CALL $2D2B
C964 CALL $2DE3
C967 LD A,$30
C969 RST $10
C96A RET
Prev: C8A8 Up: Map Next: C96B