ca65 problems
Posted: Mon Apr 04, 2011 4:27 pm
Hi there.
It's my intention to start work on a homebrew game for the unexpanded Vic 20. I'm new to the machine and unfortunately I'm having difficulty getting started.
I thought a good place to get get up and running would be the unexpanded version of quikman, ie quikman2k8.
Unfortunately, I can't get it built with the cc65 tools. I suspect that the version of cc65 I've installed is newer than the one used by Robert Hurst when he was working on quikman. (I have V2.13.9).
Here's what RIchard proposes:
; to assemble this source using cc65.org project:
; ca65.exe --cpu 6502 --listing quikman2k8.s
; ld65.exe -C doc/vic20.cfg -o quikman2k8.prg quikman2k8.o
Here's what I get:
$ ca65 --cpu 6502 --listing quikman2k8.s
ca65: No input files
The problem here is that the --listing now consumes an argument. Leaving out --listing generates me a .o file as expected.
The version of ld65 I have seems to have built in vic20 cfg file. Here's what happens if I try to link:
$ ld65 -t vic20 -o quikman2k8.o ld65:
Warning: Option `-o' should precede options `-t' or `-C'
ld65: Warning: [builtin config](39): Segment `EXEHDR' does not exist
ld65: Warning: [builtin config](39): Segment `ZPSAVE' does not exist
ld65: Warning: [builtin config](10): Memory area overflow in `RAM', segment `STARTUP' (1038 bytes)
ld65: Error: Cannot generate output due to memory area overflow
Understanding this seems to require a combination of knowledge about both the Vic and CC65 which I don't have yet.
Can anyone suggest how to proceed?
Malcolm
It's my intention to start work on a homebrew game for the unexpanded Vic 20. I'm new to the machine and unfortunately I'm having difficulty getting started.
I thought a good place to get get up and running would be the unexpanded version of quikman, ie quikman2k8.
Unfortunately, I can't get it built with the cc65 tools. I suspect that the version of cc65 I've installed is newer than the one used by Robert Hurst when he was working on quikman. (I have V2.13.9).
Here's what RIchard proposes:
; to assemble this source using cc65.org project:
; ca65.exe --cpu 6502 --listing quikman2k8.s
; ld65.exe -C doc/vic20.cfg -o quikman2k8.prg quikman2k8.o
Here's what I get:
$ ca65 --cpu 6502 --listing quikman2k8.s
ca65: No input files
The problem here is that the --listing now consumes an argument. Leaving out --listing generates me a .o file as expected.
The version of ld65 I have seems to have built in vic20 cfg file. Here's what happens if I try to link:
$ ld65 -t vic20 -o quikman2k8.o ld65:
Warning: Option `-o' should precede options `-t' or `-C'
ld65: Warning: [builtin config](39): Segment `EXEHDR' does not exist
ld65: Warning: [builtin config](39): Segment `ZPSAVE' does not exist
ld65: Warning: [builtin config](10): Memory area overflow in `RAM', segment `STARTUP' (1038 bytes)
ld65: Error: Cannot generate output due to memory area overflow
Understanding this seems to require a combination of knowledge about both the Vic and CC65 which I don't have yet.
Can anyone suggest how to proceed?
Malcolm