After a little bit of mucking around with the Max EV code, I found it was completely customizable.
1206F04A 00004800
0206F04C 023C0B91
1206F050 00004700
E23C0B90 00000018
61384803 82B84801
BDF8B014 0000aabb
cczzyyxx 46C046C0
Replace aa,bb,cc,zz,yy, and xx with the number of EVs you want (in hex) with the corresponding stats.
XX: HP
YY: ATK
ZZ: DEF
AA: SPDEF
BB: SPATK
Cc: SPD
Example:
1206F04A 00004800
0206F04C 023C0B91
1206F050 00004700
E23C0B90 00000018
61384803 82B84801
BDF8B014 00000000
FC0600FC 46C046C0
This code would give me 252 EVs in HP and SPD, and 6 EVs in DEF.
Wherever you don't want EVs, just put a 00 there. Activated the same way as the original code posted in the first post. I don't know the spoiler tag, so if somebody could tell me, that would be appreciated. Also, another useful tip for people who have a broken L/R button: If you want the code to be activated by the select button, change the line "94000130 FCFF0000" to "94000130 FFFB0000".