Skip to content

1.6.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 12:16
· 3 commits to main since this release
228f93a

Version 1.6.0 gives your coding agent what it needs to build, test and tune a C64 game: a project with a memory plan, a headless 6502 test runner, scripted playtests, profiling, asset converters and a complete example game.

It also adds file upload to Ultimate storage, GIF recording of the video stream, and corrections to the Ultimate knowledge files.

Build and check

Create a game project, build it, and tell me which routine misses the frame.

  • c64_project (init, build, status): a manifest with named segments, address ranges, byte budgets, the VIC bank and the $01 plan. The build uses the built-in assembler or 64tass and fails on overlapping segments, a segment over budget, VIC data outside its bank, and code under ROM.
  • c64_program lint checks game assembly for missing interrupt saves, restores and acknowledges, page-crossing branches in timed blocks, shared zero page, ROM writes and similar mistakes. upload_run_asm now reports all assembler errors with file and line, and can return a listing with cycles.
  • c64_test unit runs subroutines on a CPU emulator with no backend and reports cycles and stack use.
  • c64_debug profile_frame (VICE 3.10) reports cycles per routine per frame and the jitter of the frame interrupt. diagnose now also runs on Ultimate hardware from a crash record, and lists the last instructions on VICE 3.10.

Test the game

  • c64_test run_scenario: joystick and keyboard input at exact frames, with assertions on memory, screen text, sprites, SID output and the picture. Runs on VICE and on the C64U/U64 (exact mode with the test hook, tolerance mode without). A host-side leaderboard server can be attached for programs that use UCI sockets.
  • record, replay, fuzz and matrix: record a play-through and replay it, fuzz the joystick to find crashes and softlocks, and run one scenario across PAL/NTSC and SID models.
  • c64_config apply_profile sets turbo, REU, SIDs and video standard for a run and restores them afterwards.

Assets, sound and graphics

  • Converters: convert_sprites, convert_font, convert_tiles, render_bitmap files, convert_sample, convert_upic and convert_led; import reads SpritePad, Spritemate, CharPad, Tiled, Petmate, Koala and Art Studio files.
  • c64_graphics: capture_sequence, compare_frames and analyze_motion (judder, stalls, tearing); record writes an animated GIF of the video stream.
  • c64_sound audition_sfx plays one of eight sound effect presets or your own effect and reports its cycles.
  • Starfall, a small shooter in examples/starfall/, shows the pieces together: raster interrupts, double-buffered sprites, music and six scenarios. It is served as the resource c64://gamedev/exemplar.

Ultimate hardware

  • c64_disk upload copies a host file or folder to the SD card or a USB drive over FTP.
  • c64_stream status reports whether a video stream is running, and capture_frame uses a running stream instead of replacing its target.
  • sidwave is updated to 0.10.0 (SIDWave 1.6).
  • Knowledge files for networking and streaming, an address map of all C64U keyboard and case LEDs, and corrections to the UCI, sampler and multi-SID documentation.

Fixes

  • load_flash, save_flash and reset_defaults work on the U2 family.
  • wait_for_state with expectedPC matches only a stopped CPU.
  • render_petscii_text and render_petscii_art return after the screen holds the picture.
  • snapshot_save refuses while a drive is in 1581 mode, because VICE 3.10 cannot restore that snapshot.
  • run_prg on a U2 explains HTTP 500 when the host C64U has Cartridge Preference set to Auto.

Limits

  • profile_frame, fuzz and matrix need VICE; profile_frame needs 3.10. The c64u entry of matrix is reported as unavailable.
  • convert_led output is not verified on hardware.
  • convert.driverPath and sid_info.sidIdPath were not exercised by the release test.

Tested on

Every operation that a backend supports was run three times in a row, without retries, on VICE 3.10, an Ultimate 64 Elite (firmware 3.15a), a C64 Ultimate (firmware 1.2.1) and an Ultimate II+L (firmware 3.15a) in the C64 Ultimate's cartridge port. Power-off and power cycle were not run on the Ultimate 64 and the C64 Ultimate. The U2 test needs the host's Cartridge Preference set to External.

Full Changelog: 1.5.1...1.6.0