Problem when compiling C64 images

suddenly (actually, it’s been a while since i’ve made c64 disk images so i can’t say how suddenly) when i compile an ‘aastory’ into a c64 disk image, this happens:

> >MBCZ

that is, everything works perfectly until i hit the SPACE bar and instead of a space i get that “>MBCZ”.

i don’t think this is a VICE/emulation problem as hitting space-bar outside of the interpreter works normally.

i’ve gone back and tried this with several dialog games, compiling them to aastory and making C64 images, but get the same result, always with the same > MBCZ instead of a space.

i’m using the prebuilt macos aambundle from the “public” dialog repository.

Hmm, that’s not good. MBCZ are adjacent characters in the C64 keyboard matrix, which suggests that something is going wrong on the 6502 level.

I shall investigate!

What happens if you use the old aambundle from Linus’s site? All the keyboard-matrix reading happens in scankeyboard in c64_frontend.s, and that’s not something I’ve touched since the community fork.

i can’t use the older aambundle from linus’ site because then i get the old:

Unsupported story file version 1.0

error message

Yeah, you’ll need a file from an earlier Å-machine. There’s one in /examples in the Å-machine distribution. That also comes with a disk image produced with an earlier aambundle.

I haven’t been able to reproduce this though. Any files I run through current aambundle work properly in VICE.

hm. i can’t reproduce this on my work windows PC. so maybe it IS a (macos) VICE issue.

Try a much much much different rev of VICE, like 2.4, and see if it still happens.

it doesn’t do it using the SDL2 version, only the GTK3 version. i don’t know the different underpinnings of the two versions but, yes, it does seem to be a VICE problem, specifically, a macos GTK3 version.