Skip to content

Instantly share code, notes, and snippets.

@jimbob88
Created February 6, 2025 05:53
Show Gist options
  • Save jimbob88/7281ea668a29af9639932a25292fe48e to your computer and use it in GitHub Desktop.
Save jimbob88/7281ea668a29af9639932a25292fe48e to your computer and use it in GitHub Desktop.
cc65: C64 Hello World

Print "Hello World!" on C64

This follows the tutorial found in the c65 documentation overview to print hello world on the screen.

vice-screen-2025020605523915

#include <stdio.h>
#include <stdlib.h>
extern const char text[];
int main (void)
{
printf ("%s\n", text);
return EXIT_SUCCESS;
}
.export _text
_text: .asciiz "Hello world!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment