git://git.gir.st
/
Chiptunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f99fd6f
)
conserve 6 bytes of progmem
author
Tobias Girstmair
<t@thi3nkpad.lan>
Fri, 21 Dec 2018 19:33:10 +0000
(20:33 +0100)
committer
Tobias Girstmair
<t@thi3nkpad.lan>
Fri, 21 Dec 2018 19:33:10 +0000
(20:33 +0100)
replace NOPs in intr.vector with useful instructions
foo.S
patch
|
blob
|
blame
|
history
diff --git
a/foo.S
b/foo.S
index 6ea9716490a3a43eb5e42100f8cec2c5c8846c14..e426ebfa89c5110c347a50f2612679c653ebf93b 100644
(file)
--- a/
foo.S
+++ b/
foo.S
@@
-40,6
+40,9
@@
FLASHM = 0x4000
.section .text
.org 0x0000 ; RESET interrupt
+ CLR i0
+ CLR i1
+ CLR i2
RJMP main
.org 0x0008 ; TIM0_OVF interrupt
RJMP sample
@@
-240,9
+243,7
@@
g: ; g(i, t) -> t
RET ; TODO: replace CALL/RET with IJMP?
main: ; setup routine
- CLR i0
- CLR i1
- CLR i2
+ ; NOTE: clr i0..i2 moved to .ord 0x0
CLR i3
CLR acc ; we output a dummy sample before the actual first one
LDI Xhi, hi8(FLASHM + notes) ; never changes