Skip to content

Offline Compiling (cc65) VCSLib Demo (C), 3 of 4 font_bitmap's don't display #202

@araesmojo-eng

Description

@araesmojo-eng

Hi,

Interested in cc65 and VCSLib so I tried downloading the VCSLib Demo (C) project from

https://8bitworkshop.com/v3.12.1/?platform=vcs&amp%253Bfile=vcslib%2Fdemo_vcslib.c&file=vcslib%2Fdemo_vcslib.c

to try for offline compiling with a local cc65 install.

After a bit of searching, found the config file that appears to be the correct memory allocation mapping for cc65 at:

https://github.com/sehugg/8bitworkshop/blob/bc3bc334cbafd08a83409c201d441ca11eee8c22/src/worker/lib/vcs/atari2600.cfg

On a positive note, the offline compiling succeeds, and produces a functional file that works with Stella 7.0. The functioning file can be found at:

https://github.com/araesmojo-eng/araesmojo-eng.github.io/blob/main/projects/retro/demo_vcslib.a26

However, ran into a small issue.

ISSUE: Of the four 'tinyfont48_build' bitmaps with 'font_bitmap' and 'CAPTIONS[NCAPTIONS]' only the first caption will ever show on screen.

"HELLO WORLD!" displays, then each of the later three fonts are always blank, and then cycle back to "HELLO WORLD!" again.

Appears to be an issue with the compiling process, because loading the completed file back onto 8bitworkshop online produces the same result.

Music plays, and sounds at least similar to the version compiled online. 'music_ptr' appears to be incrementing correctly (used for selecting captions).

Font flashing halts when music stops, much like the version online.

Compilation did not throw any related issues (although a couple warnings about Frame0 and ColorFrame0 pointer conversion to unsigned char* from char*)

REQUEST: Any advice on what may be wrong with compilation or not setup correctly with offline cc65? Perhaps certain flags used in compilation? Wrong config file possibly? Read through https://8bitworkshop.com/docs/posts/2023/vcslib-c-programming-for-atari-2600.html and didn't see any mention of special compiler settings that needed to used.

Compilation is on Windows using:

cc65 -O -t atari2600 for .c files
ca65 for .ca65 and resulting .s files from .c files
ld65 -t atari2600 -o <demo_output_filename> <object_filenames> atari2600.lib

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