Prev: 8B2B Up: Map Next: 8B4F
8B2C: Compare the current score with an existing one
Used by the routine at 8B0C.
Input
HL Existing score
DE Current score
C On exit, holds the slot the score should go
8B2C LD B,$00
8B2E INC C
8B2F PUSH BC
8B30 LD A,(DE)
8B31 CP (HL)
8B32 JR Z,$8B38
8B34 JR NC,$8B4B
8B36 JR C,$8B42
8B38 INC B
8B39 LD A,B
8B3A CP $07
8B3C JR Z,$8B42
8B3E INC HL
8B3F INC DE
8B40 JR $8B30
8B42 LD A,$01
8B44 POP BC
8B45 POP HL
8B46 LD HL,$8B25
8B49 PUSH HL
8B4A RET
8B4B LD A,$00
8B4D POP BC
8B4E RET
Prev: 8B2B Up: Map Next: 8B4F