[Return to top]

6502 Shorts. By Lee Davison
[Back]


[Short code bits] Introduction.
This section is for those short bits of code that are just what you need every now and then.

Anything longer than $20 bytes should probably be elsewhere.

The code.
  • Toggle carry
  • Change the sense of the carry bit.
  • Hex to ASCII
  • Another way to convert a hex nibble.
  • Range test
  • Various ways to test that a byte is in the range n to m.
  • BCD to binary
  • Convert a BCD byte to it's binary equivalent.

    e-mail me [e-mail]
    Last page update: 27th January, 2003.