This follows the tutorial found in the c65 documentation overview to print hello world on the screen.
Created
February 6, 2025 05:53
-
-
Save jimbob88/7281ea668a29af9639932a25292fe48e to your computer and use it in GitHub Desktop.
cc65: C64 Hello World
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
extern const char text[]; | |
int main (void) | |
{ | |
printf ("%s\n", text); | |
return EXIT_SUCCESS; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.export _text | |
_text: .asciiz "Hello world!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment