Third rewrite of 6506 code with proper CommandBased implementation. Theoretically works - never tested lol