From b93869c06904f905a27c2f005c1ccc0a1eedc75e Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Mon, 24 Aug 2020 01:24:39 +0200 Subject: [PATCH] Added MEGA65 conio.c constructor. And "Hello World" program. #507 --- src/main/kc/lib/conio-mega65.c | 2 +- src/test/ref/examples/mega65/helloworld-mega65.asm | 2 +- src/test/ref/examples/mega65/helloworld-mega65.log | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kc/lib/conio-mega65.c b/src/main/kc/lib/conio-mega65.c index 8cf5eb4eb..afd1d5416 100644 --- a/src/main/kc/lib/conio-mega65.c +++ b/src/main/kc/lib/conio-mega65.c @@ -17,7 +17,7 @@ const char CONIO_TEXTCOLOR_DEFAULT = LIGHT_BLUE; #include "conio-cbm-shared.c" // Initializer for conio.h on MEGA65 -#pragma constructor_for(conio_mega65_init, cputc) +#pragma constructor_for(conio_mega65_init, cputc, clrscr, cscroll) // Enable 2K Color ROM void conio_mega65_init() { diff --git a/src/test/ref/examples/mega65/helloworld-mega65.asm b/src/test/ref/examples/mega65/helloworld-mega65.asm index a38ad6782..670a3e7f5 100644 --- a/src/test/ref/examples/mega65/helloworld-mega65.asm +++ b/src/test/ref/examples/mega65/helloworld-mega65.asm @@ -48,7 +48,7 @@ __start: { sta.z conio_line_color lda #>COLORRAM sta.z conio_line_color+1 - // #pragma constructor_for(conio_mega65_init, cputc) + // #pragma constructor_for(conio_mega65_init, cputc, clrscr, cscroll) //#pragma constructor jsr conio_mega65_init jsr main diff --git a/src/test/ref/examples/mega65/helloworld-mega65.log b/src/test/ref/examples/mega65/helloworld-mega65.log index ba7f6277a..c0a3bbf72 100644 --- a/src/test/ref/examples/mega65/helloworld-mega65.log +++ b/src/test/ref/examples/mega65/helloworld-mega65.log @@ -2650,7 +2650,7 @@ __start: { sta.z conio_line_color lda #>COLORRAM sta.z conio_line_color+1 - // #pragma constructor_for(conio_mega65_init, cputc) + // #pragma constructor_for(conio_mega65_init, cputc, clrscr, cscroll) // [5] call conio_mega65_init //#pragma constructor jsr conio_mega65_init