These are the standard registers:
| DEC | BIN | Name | Width | Purpose |
|---|---|---|---|---|
| 0 | 0000 | Z | 16 | Wired to 0000h |
| 1 | 0001 | A | 16 | Accumulator |
| # Closest Color Algorithm | |
| require 'matrix' | |
| RGB_XYZ_MATRIX = Matrix[ | |
| [ 0.4124564, 0.3575761, 0.1804375 ], | |
| [ 0.2126729, 0.7151522, 0.0721750 ], | |
| [ 0.0193339, 0.1191920, 0.9503041 ] | |
| ] |