commit c1c8a0a2eb9cc0064349c28d4dad1febdde95986 Author: Elizabeth Cray Date: Fri Jul 30 21:53:27 2021 -0400 Apple ][ Helper diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f98198f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +Tools/cc65 +Tools/ac.jar \ No newline at end of file diff --git a/Example/Example.c b/Example/Example.c new file mode 100644 index 0000000..3164ef8 --- /dev/null +++ b/Example/Example.c @@ -0,0 +1,8 @@ +#include +#include "../Library/clear.h" + +int main(void) { + clear(40, 40); + cputs("HELLO MADELINE CRAY\n\rWOULD YOU LIKE TO PLAY A GAME?\n\r"); + cgetc(); +} \ No newline at end of file diff --git a/Example/Example.dsk b/Example/Example.dsk new file mode 100644 index 0000000..3abfe66 Binary files /dev/null and b/Example/Example.dsk differ diff --git a/Library/clear.h b/Library/clear.h new file mode 100644 index 0000000..4acd5a3 --- /dev/null +++ b/Library/clear.h @@ -0,0 +1,16 @@ +#ifndef CLEAR_H +#define CLEAR_H + +#include + +void clear(int w, int h){ + int i = 0; + int j = 0; + for(i=0; i