Wouldn't be suprising if the emulator used in Contra 4 actually is a DS Port of PocketNES. Konami used it before for a few GBA games and loopy said that that's exactly why he made PocketNES public domain. There's a thread about that somewhere buried in the PocketHeaven boards.