Re: [stella] Euchre: a tight fit

Subject: Re: [stella] Euchre: a tight fit
From: "TwoHeaded Software" <adavie@xxxxxxxxxxxxx>
Date: Tue, 4 Sep 2001 15:11:22 +1000
Perhaps a small bug?

    jsr GetHandOffsets
    ldx TrickNum
    txa
    clc
    adc HandStartOffset
    tax                                                    ; x obviously
required
    jmp PPPlayCard

[snip/snip]

PPPlayCard
    ldx CardToPlayOffset                    ; x is junked


Also this code can be optimised anyway

    jsr GetHandOffsets
    lda TrickNum
    adc HandStartOffset
    tax                                                        ; but still a
problem with x being junked
    bcc PPPlayCard                               ;


The reason being, GetHandOffsets() always has carry c on return (by my
reading), and your code didn't need to load TrickNum into x then into a.
Savings... a few bytes.  There's absolutely heaps of places in the code
where careful attention to carry values will allow you to save explicity
setting them.

Having fun :)

Cheers
A

-
Andrew Davie, TwoHeaded Software
adavie@xxxxxxxxxxxxx




-
Archives (includes files) at http://www.biglist.com/lists/stella/archives/
Unsub & more at http://www.biglist.com/lists/stella/

Current Thread