An ugly, but working CPU register SUB/PUSH encoder.