GithubHelp home page GithubHelp logo

davervw / ch64edit Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 11.58 MB

C64 Character Set Editor

Home Page: https://techwithdave.davevw.com/2024/04/edit-vic-20-programmable-characters.html

License: MIT License

Shell 1.82% Assembly 98.18%
c64 c64-tool commodore commodore-64 fonts 6502 6502-assembly tools

ch64edit's People

Contributors

davervw avatar

Stargazers

 avatar  avatar

Watchers

 avatar

ch64edit's Issues

disable scanline IRQ during load/save

loading from disk disables interrupts from time to time causing fonts to display wrong in different areas of the screen. Would be best to disable scanline interrupts during this time, and not display character sets to avoid confusion and screen glitches.

need feature: apply set1 to set2, and generate inverse characters

Between the uppercase/graphics and uppercase/lowercase character sets (512 characters total, 4096 bytes total) there are plenty of duplicates between the sets. And the inverse portions of the sets can be easily computed as well (assuming inverse is wanted, and not further custom characters).

The program "APPLY SET2.PRG" was created to do this from BASIC, but is cumbersome to run (need to move BASIC up to $4000) before loading/running, and use another monitor to save results to disk (not included).

Prefer feature is implemented (with are you sure? prompt)

displaying custom fonts sometimes fails

maybe the scanline interrupt is fragile, may have lost an interrupt, not to be seen again, stuck with ROM charset instead of switching between ROM/RAM/RAM which normally displays 3 different sets.

Workaround: cold restart system to reset VIC-II and load program again, load font again

Syntax error in 10 when exit program

image

start of basic is where fonts are loaded. The initial SYS command is overwritten by ROM font at initial startup. Exiting the program now shows syntax error because the BASIC interpreter is trying to interpret font image data as tokenized BASIC statements.

Very slight risk of having valid instructions there, would have to maliciously load font file with BASIC statements at the beginning of the font. But usually this is just an inconvenience.

Ideal fix would be to move BASIC next token pointer to a place that interprets the end of program (zero bytes) probably by adding $1000 to where a copy of the SYS command has been implemented for restarting the program at the new start of BASIC RAM.

Nice to rework address space to move font and video screen to top of memory

top of BASIC RAM is $9fff

The way the VIC II works, it can access any bank of 16K of RAM in the 64 (one of four). Usually it uses the first 16K with video at $0400 and characters at $1000 which magically maps to ROM $D000. The custom font at $0800 is visible to the VIC, but the second set at $1000 is not visible, so is copied to $3800 to be visible, and the scanline interrupts switch between $D000/$0800/$3800 for showing all three fonts.

But loading fonts also require copying to $3800 to display. And upper/lowercase switch has issues too.

proposed is to move VIC II RAM up to top of BASIC RAM. also need to update lower memory to include pointer to video memory.
video $8c00-$8fff
charset1 $9000-$97ff
charset2 $9800-$9fff

Could also work better with user's own programs using multiple character sets, and upper/lowercase switch (e.g. CBM+SHIFT)

fill_color should not fill the grid

the grid is temporarily filled with the foreground color, then quickly filled with grid colors, causing screen glitch that could be avoided

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.