AIM-120's would be rather far-fetched (and an AIM-7 would me more similar to the 530D's), replacing the Magic II's by Sidewinders however is perfectly possible and was, in fact, intended irl to start with.
If I'm not mistaken, the Magic II and Sidewinder were interchangeable on the Mirage from the very start.