Code:
.NOLIST
.INCLUDE "E:\Programme\Atmel\AVR Tools\AvrAssembler2\Appnotes\M32def.inc"
.LIST
.CSEG
.DEF dot = R20
.DEF hsync = R21
.DEF vsync = R22
.DEF hvsync = R23
.DEF off = R24
reset: RJMP main
main:
LDI dot,0b00100000
LDI hsync,0b00001000
LDI vsync,0b00000100
LDI off,0b00000000
LDI R16,0xFF
OUT DDRB,R16
OUT DDRD,R16
rjmp pause16320
ende: rjmp ende
;----------------------------------------
pause960:
ldi r16,255
loopXA:
dec r16
brne loopXA
ldi r16,63
loopXB:
dec r16
brne loopXB
ret
;........................................
pause16320:
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
rjmp pause960
ldi r16,255
loopXC:
dec r16
brne loopXC
ldi r16,63
loopXD:
dec r16
brne loopXD
ret
;........................................
Lesezeichen