Yes, I asked for an exampe of an AR code. I guess the most convenient code type would be the one that changes the slot 1 pokémon?
For what I see they are just command-value-adress, but I don't quite get what those "end code" are used for in the OT/nickname, unless they are just to make sure the code inputs a terminator character and they typed it that way so people don't forget it.
If that's all there is to it, the program is really trivial, I've wrapped this up real quick: just drag and drop a pk2 file (make it with pkhex) onto the exe and an ar.txt file will be generated. Please tell me if the code worked, currently it generates an AR code for pokémon crystal to change the pokémon in the first party slot with the pk2 file.
If it works fine I'll make some executables for the other games.
poke2ar.zip