[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen Holes (was: Prodos Woes)



Willi Kusche wrote:
>     Here's another version that's one instruction shorter...

About a minute after I posted I realized I could trim it by
one instruction.  My second version is the same size as yours.

     LDX #$F8
L1   LDA $6000-1,X
     STA $0400-1,X
     LDA $6100-1,X
     STA $0500-1,X
     LDA $6200-1,X
     STA $0600-1,X
     LDA $6300-1,X
     STA $0700-1,X
     DEX
     BEQ L2         ;=>DONE
     CPX #$80
     BNE L1         ;=>DO NOT SKIP
     LDX #$78
     BNE L1         ;=>ALWAYS
L2   RTS

But I think I like yours better.

--
Paul
Monroe, Michigan USA