Thank you very much Tony!
I tried this, and working, but not by move instruction.
It works only with classic lda, sta couple. (My experience, the move is not usable is several situations...)
The complete source for this prog the following:
org $ee00
lda #$01
sta $001f ;COP power off
lda #%11111111
sta $0005 ;All portb pin to output
lda #%00110110 ;Timer1 speed cycle /64
sta $0020 ;Timer1 setting up
bclr 5,$0020 ;Timer1 start!
cykl:
brclr 7,$0020,* ;Wait until timcounter overflow
bset 0,$0001 ;Portb0 led ON
bclr 7,$0020 ;Clear overflow bit
brclr 7,$0020,* ;wait until timcounter overflow again
bclr 0,$0001 ;Portb0 led OFF
bclr 7,$0020 ;Clear overflow bit
bra cykl ; branch to cykl to restart process
Oh one more little question:
When CPU run in user mode induvidually, the clock is really 8 Mhz?
Thanks!