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:
parent
70f0d841b5
commit
b93869c069
@ -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() {
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user