Ninjabba, on Mon May 14, 2012 12:06 PM, said:
what compiler version are u using?
the peg solitaire
source compiles out of the box for quite some cc65 versions. The only thing that should be modified are the paths to the tgi driver and the joystick driver in the makefile in the resident folder. I've compiled it with cygwin
$ cc65 --version
cc65 V2.13.3
SVN version: 5495
Uncompressed the solitaire source and was able to compile and run it without problems (only had to override sprpck with sprpck.exe)
make -C resident
make[1]: Entering directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/resident'
cp "D:\Development\cc65\include/../joy/lynx-stdjoy.joy" .
co65 --code-label _lynxjoy lynx-stdjoy.joy
cp "D:\Development\cc65\include/../tgi/lynx-160-102-16.tgi" .
co65 --code-label _lynxtgi lynx-160-102-16.tgi
cc65 -t lynx -Oirs resident.c
make[1]: Leaving directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/resident'
make -C intro
make[1]: Entering directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/intro'
cc65 -t lynx -Oirs --code-name INTRO_CODE \
--rodata-name INTRO_RODATA \
--bss-name INTRO_BSS \
--data-name INTRO_DATA intro.c
../sprpck -t6 -p0 -a000000 bg.bmp
---------------------------
Lynx Sprite Packer Ver 1.98
© 1997,1998 42Bastian Schick
Matthias Domin
---------------------------
echo .global _bg > bg.s
echo .segment \"INTRO_RODATA\" >> bg.s
echo _bg: .incbin \"bg.spr\" >> bg.s
ca65 -t lynx -o bg.o bg.s
../sprpck -t6 -p2 -a000000 title.bmp
---------------------------
Lynx Sprite Packer Ver 1.98
© 1997,1998 42Bastian Schick
Matthias Domin
---------------------------
echo .global _title > title.s
echo .segment \"INTRO_RODATA\" >> title.s
echo _title: .incbin \"title.spr\" >> title.s
ca65 -t lynx -o title.o title.s
make[1]: Leaving directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/intro'
make -C pegsolitaire
make[1]: Entering directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/pegsolitaire'
../sprpck -t6 -p2 -r005002 -S010010 bd.bmp
---------------------------
Lynx Sprite Packer Ver 1.98
© 1997,1998 42Bastian Schick
Matthias Domin
---------------------------
echo .global _bd000000 > bd.s
echo .global _bd001000 >> bd.s
echo .global _bd000001 >> bd.s
echo .global _bd001001 >> bd.s
echo .global _bd000002 >> bd.s
echo .global _bd001002 >> bd.s
echo .global _bd000003 >> bd.s
echo .global _bd001003 >> bd.s
echo .global _bd000004 >> bd.s
echo .global _bd001004 >> bd.s
echo .segment \"PEGSOLITAIRE_RODATA\" >> bd.s
echo _bd000000: .incbin \"bd000000.spr\" >> bd.s
echo _bd001000: .incbin \"bd001000.spr\" >> bd.s
echo _bd000001: .incbin \"bd000001.spr\" >> bd.s
echo _bd001001: .incbin \"bd001001.spr\" >> bd.s
echo _bd000002: .incbin \"bd000002.spr\" >> bd.s
echo _bd001002: .incbin \"bd001002.spr\" >> bd.s
echo _bd000003: .incbin \"bd000003.spr\" >> bd.s
echo _bd001003: .incbin \"bd001003.spr\" >> bd.s
echo _bd000004: .incbin \"bd000004.spr\" >> bd.s
echo _bd001004: .incbin \"bd001004.spr\" >> bd.s
ca65 -t lynx -o bd.o bd.s
../sprpck -t6 -p2 -a000000 bga.bmp
---------------------------
Lynx Sprite Packer Ver 1.98
© 1997,1998 42Bastian Schick
Matthias Domin
---------------------------
echo .global _bga > bga.s
echo .segment \"PEGSOLITAIRE_RODATA\" >> bga.s
echo _bga: .incbin \"bga.spr\" >> bga.s
ca65 -t lynx -o bga.o bga.s
../sprpck -t6 -p2 -a000000 bgb.bmp
---------------------------
Lynx Sprite Packer Ver 1.98
© 1997,1998 42Bastian Schick
Matthias Domin
---------------------------
echo .global _bgb > bgb.s
echo .segment \"PEGSOLITAIRE_RODATA\" >> bgb.s
echo _bgb: .incbin \"bgb.spr\" >> bgb.s
ca65 -t lynx -o bgb.o bgb.s
make[1]: Leaving directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/pegsolitaire'
make -C cart
make[1]: Entering directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/cart'
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o lnxhdr.o lnxhdr.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o encrypt1024.o encrypt1024.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o directory.o directory.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o title.o title.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/resident.o ../resident/resident.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/lynx-stdjoy.o ../resident/lynx-stdjoy.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/lynx-160-102-16.o ../resident/lynx-160-102-16.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/fileexec.o ../resident/fileexec.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/fileload.o ../resident/fileload.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/filedir.o ../resident/filedir.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/filehelp.o ../resident/filehelp.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/abcmusic.o ../resident/abcmusic.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/vbl.o ../resident/vbl.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/irq.o ../resident/irq.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/fadein.o ../resident/fadein.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/fadeout.o ../resident/fadeout.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../resident/soundbs.o ../resident/soundbs.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../intro/intro.o ../intro/intro.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../pegsolitaire/pegsolitaire.o ../pegsolitaire/pegsolitaire.s
ca65 -t lynx -I "D:\Development\cc65\include/../asminc" -l -o ../pegsolitaire/track2.o ../pegsolitaire/track2.s
make -C ../resident
make[2]: Entering directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/resident'
make[2]: `all' is up to date.
make[2]: Leaving directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/resident'
make -C ../intro
make[2]: Entering directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/intro'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/intro'
make -C ../pegsolitaire
make[2]: Entering directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/pegsolitaire'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/pegsolitaire'
cl65 -t lynx -Oirs -o cart.lnx -m cart.map -C lynxcart.cfg lnxhdr.o encrypt1024.o directory.o title.o ../resident/resident.o ../resident/lynx-stdjoy.o ../resident/lynx-160-102-16.o ../resident/fileexec.o ../resident/fileload.o ../resident/filedir.o ../resident/filehelp.o ../resident/abcmusic.o ../resident/vbl.o ../resident/irq.o ../resident/fadein.o ../resident/fadeout.o ../resident/soundbs.o ../intro/intro.o ../intro/bg.o ../intro/title.o ../pegsolitaire/pegsolitaire.o ../pegsolitaire/bd.o ../pegsolitaire/bga.o ../pegsolitaire/track2.o ../pegsolitaire/bgb.o lynx.lib
make[1]: Leaving directory `/cygdrive/d/development/cc65/samples/PegSolitaireV1.2/cart'
cp cart/cart.lnx .
Edited by Gandor, Mon May 14, 2012 7:45 PM.