initial commit

This commit is contained in:
2026-07-18 20:34:55 +02:00
commit 59ad004c96
474 changed files with 226635 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#include <stdio.h>
#include <c64/kernalio.h>
struct Score
{
char name[5];
unsigned score;
};
Score score[4];
int main(void)
{
// Set name for file and open it on drive 9
krnio_setnam("HIGHSCORE,P,R");
if (krnio_open(2, 9, 2))
{
// Read the content of the file into the score arrayx
krnio_read(2, (char*)score, sizeof(score));
// Close the file
krnio_close(2);
}
// Print the result to stdout
for(int i=0; i<4; i++)
{
printf("%s : %u\n", score[i].name, score[i].score);
}
return 0;
}