Repository navigation
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$01plan. 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 lintchecks 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_asmnow reports all assembler errors with file and line, and can return a listing with cycles.c64_test unitruns 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.diagnosenow 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,fuzzandmatrix: 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_profilesets 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_bitmapfiles,convert_sample,convert_upicandconvert_led;importreads SpritePad, Spritemate, CharPad, Tiled, Petmate, Koala and Art Studio files. c64_graphics:capture_sequence,compare_framesandanalyze_motion(judder, stalls, tearing);recordwrites an animated GIF of the video stream.c64_sound audition_sfxplays 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 resourcec64://gamedev/exemplar.
Ultimate hardware
c64_disk uploadcopies a host file or folder to the SD card or a USB drive over FTP.c64_stream statusreports whether a video stream is running, andcapture_frameuses a running stream instead of replacing its target.sidwaveis 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_flashandreset_defaultswork on the U2 family.wait_for_statewithexpectedPCmatches only a stopped CPU.render_petscii_textandrender_petscii_artreturn after the screen holds the picture.snapshot_saverefuses while a drive is in 1581 mode, because VICE 3.10 cannot restore that snapshot.run_prgon a U2 explains HTTP 500 when the host C64U has Cartridge Preference set to Auto.
Limits
profile_frame,fuzzandmatrixneed VICE;profile_frameneeds 3.10. Thec64uentry ofmatrixis reported as unavailable.convert_ledoutput is not verified on hardware.convert.driverPathandsid_info.sidIdPathwere 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