RESISTOR: The Colour Code, Both Ways
RESISTOR
- Type
- Utility
- Language
- Commodore BASIC V2
- Length
- 112 lines · 20 blocks (4,829 bytes)
- Keys
- 1 or 2 on the menu; digits and G, S, N for the colours; Q quits
- Special keys
- None
Every resistor carries its value in coloured bands. RESISTOR reads them both ways: press the colours and it tells you the value, with the range the tolerance allows; type a value like 4.7k and it tells you the colours. Either way it draws the resistor on the screen and paints each band as you go, in the C64’s own colours.
![]() |
| Red, violet, orange, gold: each band is painted as soon as its key is pressed. |




