affiliation if I change departments within university
Of course it’s also possible to have


  Zero the Hero, Department of Nothing and Institute of Heroes, Gong University


or else you can have your “old” address on the byline with a footnote to your new address:


  Zero the Hero*, Department of Nothing, Gong University


(* now at Institute of Heroes, Gong University )

The latter (and variations on this) is the model used for sabbaticals or for people who have moved since the work was completed: the researcher will acknowledge the host institution but will have a footnote to the current or the permanent address.