Not sure how familiar you are with assembly (of any sort), but both of these will involve some. You'd need to modify the existing swap tables (and probably expand, depending on what else you're doing involving commands) which are found in bank C2, and I think possibly C3.