projects
/
my-code
/
atmel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f597890
)
full intensity 2/3 *0xff
author
hackbard
<hackbard>
Sun, 14 Nov 2004 17:11:08 +0000
(17:11 +0000)
committer
hackbard
<hackbard>
Sun, 14 Nov 2004 17:11:08 +0000
(17:11 +0000)
beginners/rgb_mali.asm
patch
|
blob
|
history
diff --git
a/beginners/rgb_mali.asm
b/beginners/rgb_mali.asm
index
3b9815d
..
3cdbda3
100644
(file)
--- a/
beginners/rgb_mali.asm
+++ b/
beginners/rgb_mali.asm
@@
-93,7
+93,7
@@
mov zero,tmp
mov countrgb,tmp
ldi uart_count,0
ldi count,0
mov countrgb,tmp
ldi uart_count,0
ldi count,0
-ldi RED,CM
1
+ldi RED,CM
2
ldi GREEN,0x0
ldi BLUE,0x0
; led pins are outputs
ldi GREEN,0x0
ldi BLUE,0x0
; led pins are outputs
@@
-135,7
+135,7
@@
rjmp MAKE_RGB
; reset rgb
;
RESET_RGB:
; reset rgb
;
RESET_RGB:
-ldi RED,CM
1
+ldi RED,CM
2
mov GREEN,zero
mov BLUE,zero
mov desc,zero
mov GREEN,zero
mov BLUE,zero
mov desc,zero
@@
-163,11
+163,13
@@
rjmp MAKE_RGB
MAKE_RGB:
ldi tmp,(1<<RUP)
and tmp,desc
MAKE_RGB:
ldi tmp,(1<<RUP)
and tmp,desc
+add tmp,tmp
add RED,tmp
ldi tmp,(1<<GUP)
and tmp,desc
lsr tmp
lsr tmp
add RED,tmp
ldi tmp,(1<<GUP)
and tmp,desc
lsr tmp
lsr tmp
+add tmp,tmp
add GREEN,tmp
ldi tmp,(1<<BUP)
and tmp,desc
add GREEN,tmp
ldi tmp,(1<<BUP)
and tmp,desc
@@
-175,16
+177,19
@@
lsr tmp
lsr tmp
lsr tmp
lsr tmp
lsr tmp
lsr tmp
lsr tmp
+add tmp,tmp
add BLUE,tmp
ldi tmp,(1<<RDOWN)
and tmp,desc
lsr tmp
add BLUE,tmp
ldi tmp,(1<<RDOWN)
and tmp,desc
lsr tmp
+add tmp,tmp
sub RED,tmp
ldi tmp,(1<<GDOWN)
and tmp,desc
lsr tmp
lsr tmp
lsr tmp
sub RED,tmp
ldi tmp,(1<<GDOWN)
and tmp,desc
lsr tmp
lsr tmp
lsr tmp
+add tmp,tmp
sub GREEN,tmp
ldi tmp,(1<<BDOWN)
and tmp,desc
sub GREEN,tmp
ldi tmp,(1<<BDOWN)
and tmp,desc
@@
-193,6
+198,7
@@
lsr tmp
lsr tmp
lsr tmp
lsr tmp
lsr tmp
lsr tmp
lsr tmp
+add tmp,tmp
sub BLUE,tmp
add countrgb,one
reti
sub BLUE,tmp
add countrgb,one
reti