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
+22
View File
@@ -0,0 +1,22 @@
#include <stdio.h>
#include <c64/kernalio.h>
int main(void)
{
// Set name for file and open it with replace on drive 9
krnio_setnam("@0:CHARS,P,W");
if (krnio_open(2, 9, 2))
{
// Write 128 bytes to the file, it would be more efficient
// to set the output channel with krnio_chkout() for the file and
// write the bytes using krnio_chrout()
for(char i=0; i<128; i++)
krnio_putch(2, i);
// Close the file again
krnio_close(2);
}
return 0;
}