X-Git-Url: http://cloudbase.mooo.com/gitweb/avrcpm.git/blobdiff_plain/6efd62917aa6ec2eac5fc633c21c28c4830c2087..a8cde371bfde7e3b77ecad8b3935cfe972125ea7:/avr/init.asm
diff --git a/avr/init.asm b/avr/init.asm
index 914f399..dcc9459 100644
--- a/avr/init.asm
+++ b/avr/init.asm
@@ -1,7 +1,7 @@
; Hardware initialisation, disk, mmc, timer, DRAM test
;
; Copyright (C) 2010 Sprite_tm
-; Copyright (C) 2010 Leo C.
+; Copyright (C) 2010-2013 Leo C.
;
; This file is part of avrcpm.
;
@@ -18,7 +18,7 @@
; You should have received a copy of the GNU General Public License
; along with avrcpm. If not, see .
;
-; $Id$
+; $Id: init.asm 241 2015-12-10 09:38:25Z rapid $
;
#define REFR_PRE 8 /* timer prescale factor 1/8 */
@@ -34,7 +34,8 @@ regval_tab:
regval_tab_e:
start:
- ldi temp,low(RAMEND) ; top of memory
+ ldi temp,low(RAMEND) ; top of memory; vim:set ts=8 noet nowrap
+
out SPL,temp ; init stack pointer
ldi temp,high(RAMEND) ; top of memory
out SPH,temp ; init stack pointer
@@ -57,18 +58,23 @@ cp_l: lpm xh,z+
outm8 WDTCSR,temp
ldi temp,(1<