Giter Club home page Giter Club logo

c64_users_guide_examples's People

Contributors

lacerto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

digitsensitive

c64_users_guide_examples's Issues

Add a normal size preview

Add a sprite that shows a normal sized preview of the currently shown character.
Simply putting the screen code in screen memory is not an option as we cannot show all the characters in CHARGEN as display is limited to 256 characters and is affected by the chosen character set: graphics/uppercase or lowercase/uppercase.
The extended background color text mode limits this even further as only the first 64 characters are available.

inc does not affect the carry flag

In the updatepreview subroutine of pixie the zero page address pointer is increased using inc and the overflow of the lower byte is checked using the carry flag.
However the inc instruction does not affect the carry flag (only N and Z) thus the high byte would never be increased. The routine only functions as the pointer points to sprite block 13 ($0340-$037f) which address area does not cross the page boundary.
In order to fix this the zero flag must be queried after the lower address byte has been increased.

White cursor after exit

If the user enters a character index and exits the program then the cursor is white:

Bildschirmfoto 2020-06-12 um 10 04 59

At location GDCOL ($0287) I found $81 or $01 probably causing the cursor to become white. If you enter something it turns light blue as it should.
At COLOR ($0286) the value is correct: $0e for light blue.

Use other background for "capitals"

As we are using extended color background text mode only the first 64 shapes in the screen code table can be used.
This means that if we use the lowercase/uppercase character set then we do not have capital letters as printing "A" will result in printing "a" with another background color.

Currently printing a "capital" uses the same background color in bgcol1 as the character view for the bits that are on. Maybe use another color register for the on bits.
Subroutine prtline prints $60 (space with bgcol1) for the on bits and $a0 (space with bgcol2) for the 0 bits.

togglepixel bug

Subroutine togglepixel:

For instance in row 7 column 17 the screen address calculation does not work as expected.
PLOT returns with $04f0 in PNT and $10 in PNTR. The routine adds PNTR to the low byte of PNT but does not take any overflow into account.

Refactor printing text (index, offset, etc.)

Printing the following texts:

  • index
  • offset
  • address
  • preview

means to first position the cursor then simply print the text.

Currently there are separate subroutines for this that do the same and only differ in the string pointer and the x,y coordinates.

Add a logo & title

Add a multi-color sprite logo with the program title printed on screen.

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.