![]() |
Routines |
| Prev: 9337 | Up: Map | Next: 9359 |
|
|
||||
|
Check if there is a straight flush.
|
||||
| CheckStraightFlush | 9341 | CALL Handler_StraightFlush | Call Handler_StraightFlush. | |
| 9344 | JR NZ,CheckFourOfAKind | Jump to CheckFourOfAKind if there are no straight flushes. | ||
|
There is a straight flush! Process it.
Find the "seed" card value from its position in the duplicates table.
|
||||
| 9346 | DEC HL | Decrease HL by one. | ||
| 9347 | CALL CalculateCard | Call CalculateCard. | ||
| 934A | LD ($949C),A | Write this card to *TableHandEvaluation_BaseCard. | ||
|
Also find the high card in case it's a draw.
|
||||
| 934D | CALL CalculateSuit | Call CalculateSuit. | ||
| 9350 | LD ($949D),A | Write A to *TableHandEvaluation_BaseCardSuit. | ||
|
Record this hand "type".
|
||||
| 9353 | LD A,$09 | Write "Straight Flush" to *TableHandEvaluation_Type. | ||
| 9355 | LD ($949B),A | |||
| 9358 | RET | Return. | ||
| Prev: 9337 | Up: Map | Next: 9359 |