Finalize update t SDCC 4.2
Overall a gain of 2K of memory, not bad at all!
diff --git a/contiki-cpc/ctk/ctk-conio-service.c b/contiki-cpc/ctk/ctk-conio-service.c
index 3985711..08f52c1 100644
--- a/contiki-cpc/ctk/ctk-conio-service.c
+++ b/contiki-cpc/ctk/ctk-conio-service.c
@@ -56,6 +56,19 @@
// The revers function does nothing in our conio driver anyway.
#define revers(x)
+#if 0
+static void revers(bool invert)
+{
+ static bool isInverted;
+ if (isInverted == invert)
+ return;
+
+ __asm
+ call 0xBB9C
+ __endasm
+}
+#endif
+
/*-----------------------------------------------------------------------------------*/
static void
s_ctk_draw_init(void)
@@ -189,7 +202,7 @@
} else {
revers(wfocus != 0 && j == w->widget.textentry.ypos);
cvlinexy(xpos, ypos, 1);
- gotoxy(xpos + 1, ypos);
+ gotoxy(xpos + 1, ypos);
cputsn(text, w->w);
i = wherex();
if(i - xpos - 1 < w->w) {
@@ -300,13 +313,13 @@
// - Y1
// - X1
__asm
+ LD d,l
+ LD e,A
+
pop bc ; RV
pop hl ; x1 y1
push bc
- LD d,l
- LD e,A
-
call 0xBB99 ; TXT GET PAPER
; A contains PAPER number