backwardspy / spacelib

an unfinished C64 game development library for 64tass. spacelib2 is a thing now, go check that out https://github.com/backwardspy/spacelib2
0 stars 0 forks source link

64tasm segfault #1

Open hirschenberger opened 4 years ago

hirschenberger commented 4 years ago

Hi, when I try to compile spacelib I get a segfault in 64tasm. It's the Debian Bullseys/Sid packaged version. Which Version of 64tasm do you use?

❯ make
64tass --ascii --long-branch --case-sensitive -Iinclude -Wall -Werror --m6502 --list=spacegame.prg.lst -o spacegame.prg src/main.s
64tass Turbo Assembler Macro V1.55.2200
64TASS comes with ABSOLUTELY NO WARRANTY; This is free software, and you
are welcome to redistribute it under certain conditions; See LICENSE!

Assembling file:   src/main.s
Assembling file:   include/spacelib/util.s
Reading file:      src/sprites.spd
Reading file:      src/charset.bin
Assembling file:   include/spacelib/memory.s
Assembling file:   include/spacelib/input.s
Assembling file:   include/spacelib/screen.s
Assembling file:   include/spacelib/sprite.s
Assembling file:   include/spacelib/math.s
Assembling file:   src/player.s
Assembling file:   src/aliens.s
Assembling file:   src/bullets.s
make: *** [Makefile:12: spacegame.prg] Speicherzugriffsfehler
hirschenberger commented 4 years ago

Found out that it was the --list=$@.lst option in the Makefile.

backwardspy commented 4 years ago

That is interesting. I was using an older version of 64tass when I wrote this library, but I couldn't tell you exactly which one. It looks like the listing functionality in 64tass has seen changes since then, so perhaps there is some incompatibility. Were you able to get listing working in any way? It would be a shame to lose it - I found it to be a valuable debugging tool!

hirschenberger commented 4 years ago

No, only removing the list option helped.

But I got another issue:

When I want to start the prj with:

x64 spacegame.prg

I get a CPU jam.

AUTOSTART: Injecting program data at $0000 (size $8153)
***    Main CPU: JAM at $0007
hirschenberger commented 4 years ago

Oh, I realized that it actually created the lst file and seem to crash afterwards, no prg created.

backwardspy commented 4 years ago

This weekend I'll get a toolchain set up and play around with it. I will let you know if I find anything. :) Thank you for checking out my project!