The emulators itself are probably legal, but since you download roms for them, it's illegal.
Not like anyone would care.