forgot the program
This commit is contained in:
parent
5c4e702999
commit
e11bfceee9
2 changed files with 18 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -8,7 +8,6 @@ disk/
|
|||
*.orig
|
||||
*.rej
|
||||
|
||||
*.c64
|
||||
*.pet
|
||||
*.prg
|
||||
*.d81
|
||||
|
@ -17,4 +16,4 @@ disk/
|
|||
*.dbg
|
||||
*.map
|
||||
*~
|
||||
*.session
|
||||
*.session
|
||||
|
|
17
src/program.c64
Normal file
17
src/program.c64
Normal 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;
|
||||
}
|
Loading…
Add table
Reference in a new issue