Skip to content

Instantly share code, notes, and snippets.

@anna328p
anna328p / closest-color.rb
Created June 2, 2020 06:56
Closest color
# 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 ]
]
@anna328p
anna328p / isa.md
Last active November 13, 2020 04:19

ISA Spec

Registers

These are the standard registers:

DEC BIN Name Width Purpose
0 0000 Z 16 Wired to 0000h
1 0001 A 16 Accumulator