do i first process all lines horizontally and then vertically? is that the way to go?
.for i in 0,39 adc screen+i lsr tax lda times_3_over_2,x sta screen+i lda times_1_over_2,x .endfor
clc lda value1 adc value2 ; computes a 9 bit sum in [carry, acc7..acc0] lsr ; divides result by two, leaving 8 bit value in A sta result
It's ROR and not LSR, right? Otherwise the usable value range is half.
Quoting sociIt's ROR and not LSR, right? Otherwise the usable value range is half. Argh! Yes, you're right of course. Same applies to my code in comment #6, I meant to use ROR there, too. Thanks for catching that.