Hi I am fairly new to programming 68hc11 assembly and was wondering how to go about proceeding with this problem.
A conveyor belt sensor is connected to bit zero at memory location $8000, write a program to count the number of objects that pass (this is < 10 000)
From what I understand the sensor will increase the counter every time it is on (bit zero == 1). But I only want the counter to be increased once for each object not the total time the sensor is on
Here is what I have programmed thus far
START LDY 8000
LDX #0 count is initially 0;
w1 BRSET 0,Y,$01 w1
w2 BRCLR 0,Y $01 w2
INCX
BNE w1
done BRA done