Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

compile issue with ca65 #19

Description

@lorenxviola

Hello Seth,

I´m assembling the Ben´s breadboard 6502, I found your simulator and I wanted to try out couple of things.... Basically I found very helpful the cc65 in order to avoid tonns of ASM... I do cc65, ca65, ld65 and thereafter sim65 for my "hello world" (below it´s a shortcut).... when I try to load mine into your Simulator, it doesn´t work and what I find just weird, your code/samples are not compiled by ca65 (several syntax issues).

//////////////////////////////
here is my code (example.c):
#include <stdio.h>
int main()
{
printf("Hello!\n");
return 5;
}
//////////////////////////////
Build and run:
cl65 -t sim6502 -o example.prg example.c
sim65 example.prg
//////////////////////////////
if you pick one of your samples, try to compile with:
ca65 -t sim6502 -o example.o example.s
//////////////////////////////

I donwloaded cc65 from https://cc65.github.io/ as Ben reccomends in the video!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions