Optimizations...
* Make the CRT0 even smaller. The gsinit code can be overriden, too.
* Remove bitmap icons as we currently don't use them
diff --git a/contiki-cpc/arch/crt0.s b/contiki-cpc/arch/crt0.s
index eb65e85..f5608ce 100644
--- a/contiki-cpc/arch/crt0.s
+++ b/contiki-cpc/arch/crt0.s
@@ -23,8 +23,6 @@
.area _HOME
.area _CODE
.area _INITIALIZED
- .area _GSINIT (REL)
- .area _GSFINAL (REL)
.area _DATA
.area _BSEG
@@ -39,6 +37,8 @@
; would be in ROM, and GSINIT would copy it to RAM. Of course in that case,
; The initializer space can't be reclaimed for the heap...
.area _INITIALIZER
+ .area _GSINIT (REL)
+ .area _GSFINAL (REL)
; -----------------------------------------------------------------------------
@@ -55,8 +55,7 @@
; Clear BSS sections
ld hl,#s__DATA
ld (hl),#0
- ld de,#s__DATA
- inc de
+ ld de,#s__DATA + #1
ld bc,#l__DATA
ldir
diff --git a/contiki-cpc/conf/ctk-conf.h b/contiki-cpc/conf/ctk-conf.h
index 0ba9df1..cfe4925 100644
--- a/contiki-cpc/conf/ctk-conf.h
+++ b/contiki-cpc/conf/ctk-conf.h
@@ -64,7 +64,7 @@
#define CTK_CONF_ICONS 1 /* 107 bytes */
/* Toggles support for icon bitmaps. */
-#define CTK_CONF_ICON_BITMAPS 1
+#define CTK_CONF_ICON_BITMAPS 0
/* Toggles support for icon textmaps. */
#define CTK_CONF_ICON_TEXTMAPS 1