1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2025-01-11 20:30:08 +00:00

Added MEGA65 conio.c constructor. And "Hello World" program. #507

This commit is contained in:
jespergravgaard 2020-08-24 01:24:39 +02:00
parent 70f0d841b5
commit b93869c069
3 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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

View File

@ -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