You only have to follow the following steps:
Install Super Mario 64 DS ROM (NDS) in the NDS emulator is a procedure that will help you to install all the ROMS of Nintendo DS games. Install Super Mario 64 DS ROM (NDS) for NDS Emulator (WinDS Pro)
There we explain you in a simple way how to complete the process step by step.