forgot the program

This commit is contained in:
Bjorn Einar Bjarntes 2021-12-18 11:19:28 +01:00
parent 5c4e702999
commit e11bfceee9
2 changed files with 18 additions and 2 deletions

1
.gitignore vendored
View file

@ -8,7 +8,6 @@ disk/
*.orig
*.rej
*.c64
*.pet
*.prg
*.d81

17
src/program.c64 Normal file
View file

@ -0,0 +1,17 @@
#include <stdio.h>
#define BYTE unsigned char
int i;
int main(void) {
printf("Hello ant");
while (1)
{
i++;
*(BYTE*)0xd020 = i;
*(BYTE*)0xd021 = i+1;
if (i > 254)
i = 0;
}
return 0;
}