improve code for cartridge & mapper, if crom count is 0, use cram instead.