8E32: Displays text required based on amount staked.
Gamble_DisplayStakes |
8E32 |
LD HL,Msg_DiceStake |
|
8E35 |
CALL Object_StringExtraDisplay |
|
8E38 |
LD HL,(Gamble_leftValue) |
|
8E3B |
LD DE,($B0F0) |
|
8E3F |
AND A |
|
8E40 |
ADC HL,DE |
|
8E42 |
JR NZ,Gamble_DisplayStakes_0 |
|
8E44 |
CALL Print_StrFromStack |
|
8E47 |
DEFM "2-1 2,3,4,10,11,12" |
|
8E5B |
DEFB $5E |
|
8E5C |
JR Gamble_DisplayStakes_1 |
Gamble_DisplayStakes_0 |
8E5E |
LD HL,Gamble_leftValue |
|
8E61 |
CALL Display_DecimalValue. |
|
8E64 |
CALL Print_StrFromStack |
|
8E67 |
DEFM " bet" |
|
8E6B |
DEFB $5E |
Gamble_DisplayStakes_1 |
8E6C |
CALL Print_StrFromStack |
|
8E6F |
DEFB $16 |
|
8E70 |
DEFB $03 |
|
8E71 |
DEFB $09 |
|
8E72 |
DEFB $5E |
|
8E73 |
LD HL,(Gamble_rightValue) |
|
8E76 |
LD DE,($B0F4) |
|
8E7A |
AND A |
|
8E7B |
ADC HL,DE |
|
8E7D |
JR NZ,Gamble_DisplayStakes_2 |
|
8E7F |
CALL Print_StrFromStack |
|
8E82 |
DEFM "evens 5,6,8,9" |
|
8E8F |
DEFB $5E |
|
8E90 |
RET |
Gamble_DisplayStakes_2 |
8E91 |
LD HL,Gamble_rightValue |
|
8E94 |
CALL Display_DecimalValue. |
|
8E97 |
CALL Print_StrFromStack |
|
8E9A |
DEFM " bet" |
|
8E9E |
DEFB $5E |
|
8E9F |
RET |