Răsfoiți Sursa

Save some space on ATTiny28 since it doesn't have any ram.

git-svn-id: trunk@32445 -
Jeppe Johansen 9 ani în urmă
părinte
comite
49f8d574db
3 a modificat fișierele cu 12 adăugiri și 1 ștergeri
  1. 1 0
      .gitattributes
  2. 1 1
      rtl/embedded/avr/attiny28.pp
  3. 10 0
      rtl/embedded/avr/start_noram.inc

+ 1 - 0
.gitattributes

@@ -8524,6 +8524,7 @@ rtl/embedded/avr/attiny9.pp svneol=native#text/plain
 rtl/embedded/avr/avrcommon.inc svneol=native#text/plain
 rtl/embedded/avr/avrsim.pp svneol=native#text/plain
 rtl/embedded/avr/start.inc svneol=native#text/plain
+rtl/embedded/avr/start_noram.inc svneol=native#text/pascal
 rtl/embedded/buildrtl.lpi svneol=native#text/plain
 rtl/embedded/buildrtl.pp svneol=native#text/plain
 rtl/embedded/check.inc svneol=native#text/plain

+ 1 - 1
rtl/embedded/avr/attiny28.pp

@@ -107,7 +107,7 @@ label
    rjmp TIMER0_OVF_ISR
    rjmp ANA_COMP_ISR
 
-   {$i start.inc}
+   {$i start_noram.inc}
 
    .weak INT0_ISR
    .weak INT1_ISR

+ 10 - 0
rtl/embedded/avr/start_noram.inc

@@ -0,0 +1,10 @@
+    _start:
+        clr r1
+
+{$ifdef RELBRANCHES}
+        rjmp PASCALMAIN
+{$else RELBRANCHES}
+        jmp PASCALMAIN
+{$endif RELBRANCHES}
+        .text
+