That would be Super Mario Bros. 3, but I believe that the game should work.
Are you using the latest version of TempGBA with the latest game_config.txt?
Im using the latest version of tempgba yes, dont know about the game config.txt.
emulator settings: sound on/off (doesnt matter) and cpu level 5. frameskip doesnt matter too.