Prev: 36442 Up: Map Next: 36614
36578: Handler: Showdown
Used by the routines at PlayGame and CheckShowdown.
Handler_Showdown 36578 LD A,(36419) Return if *36419 is not zero.
36581 OR A
36582 RET NZ
36583 POP HL Restore HL from the stack.
Messaging options:
ID Message ID Message
1 message-09-00 2 message-09-01
3 message-09-02
36584 LD A,9 Call Messaging_Girl using message block 9.
36586 CALL Messaging_Girl
Show the girls hand in place of the players hand.
36589 LD IX,38604 IX=GirlsHand.
36593 CALL PrintHand Call PrintHand.
Compare the hand evaluation tables to see who won.
36596 LD HL,38585 HL=Table_PlayerEvaluation.
36599 LD DE,38592 DE=Table_GirlEvaluation.
36602 LD B,7 B=7.
CardChecking_Loop 36604 LD A,(DE) Jump to PlayerWonRound if *DE is lower than *HL.
36605 CP (HL)
36606 JR C,PlayerWonRound
36608 JR NZ,GirlWonRound Jump to GirlWonRound if *DE is not equal to *HL.
36610 INC HL Increment HL by one.
36611 INC DE Increment DE by one.
36612 DJNZ CardChecking_Loop Decrease counter by one and loop back to CardChecking_Loop until counter is zero.
Continue on to GirlWonRound.
Prev: 36442 Up: Map Next: 36614