This is very similar to the Berserk thread...
While under Charm/Confuse, the character may execute their last command before actually doing stuff in Confuse status.
This occurs in the WSC port and GBA Jap 1.0 and US ports. This was fixed in the GBA Jap 1.1 and Euro port.
A notable behavior occurs between the two ports (WSC and GBA).
In the GBA port, most black magic can be used when available, except for Meteor (I dunno if its the RNG or intentional, but more likely the latter).
When Quake is used, it targets the monsters... why that occurs I don't have any idea why.
In the WSC port, most black magic can be used when available, except for Quake (similar to above).
When Meteor is used, it targets the monsters. Go figure.

Also, White Magic in the GBA port does not select Holy. Anything goes in the SNES and WSC port.