I don't know about "self-modifying". Makes it sound like polymorphism. It's more like an ASM switch case.