7 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) && !defined(__SDCC_pic14) // Lack of memory
10 signed char suit
, rank
;
14 SDCCBUG_Card SDCCBUG_Cards
[37];
16 SDCCBUG_Cards SDCCBUG_pack
;
17 unsigned char SDCCBUG_packN
;
18 unsigned char SDCCBUG_handN
[2];
19 SDCCBUG_Cards SDCCBUG_hand
[2];
20 signed char SDCCBUG_skill
= 1;
22 void SDCCBUG_DealCardsTo (unsigned char player
)
26 if ((int)SDCCBUG_handN
[player
] >= 6 || (int)SDCCBUG_packN
== 0) {
29 i
= (int)SDCCBUG_handN
[player
] + 1;
31 if (SDCCBUG_skill
== 4) {
32 j
= (int)SDCCBUG_packN
- 3;
33 if (SDCCBUG_pack
[SDCCBUG_packN
].rank
> SDCCBUG_pack
[j
].rank
) {
34 tmp
.suit
= SDCCBUG_pack
[SDCCBUG_packN
].suit
;
38 SDCCBUG_hand
[player
][i
].suit
= SDCCBUG_pack
[SDCCBUG_packN
].suit
;
39 SDCCBUG_hand
[player
][i
].rank
= SDCCBUG_pack
[SDCCBUG_packN
].rank
;
40 SDCCBUG_handN
[player
] = i
;
43 if ((int)SDCCBUG_packN
== 0) {
53 #if !defined(__SDCC_mcs51) && !defined(__SDCC_pdk14) && !defined(__SDCC_pdk15) && !defined(__SDCC_pic14) // Lack of memory
56 SDCCBUG_pack
[SDCCBUG_packN
].suit
= 23;
57 SDCCBUG_pack
[SDCCBUG_packN
].rank
= 42;
60 SDCCBUG_DealCardsTo (0);
62 ASSERT(SDCCBUG_hand
[0][1].suit
== 23);
63 ASSERT(SDCCBUG_hand
[0][1].rank
== 42);
64 ASSERT(!SDCCBUG_packN
);