As far as I understand, hardware reset does set to zero all registers of R65C22.
As far as I understand, reading of upper half of T1 timer does not affect the state of the counter (at least I have not seen mention of this in the datasheet). But, the following program outputs into the port PA1 alternating values $00 and $FF, I would say, 'meander'.
Code: Select all
RESET LDA #$FF ;All pins of port A are outputs
STA DDRA1
LOOP LDA T1C_H ;reading upper half of T1 counter (reg#5)
STA ORA1 ;output into port PA1
BRA LOOP