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

Re: apple II 8bit sound programmers



((A+B)/2) + 128

If you want to avoid 16-bit math then you could do...

A/2 + B/2 + 128 right?
LDA A
LSR
STA zp1
LDA B
LSR
CLC
ADC zp1
ADC #128

Or is that less efficient?  (damn I wish there were ways to add
registers together like you could in an '040)