'165 could be $32, $32B or $6E.
You might be able to get away with using a 4cyl MEMCAL from a '7730 style ECM, I believe the '165 uses the same style, just doesn't have a built in knock filter.
You could likely also modify the original MEMCAL, to have a proper value a lot like what is done to 6 cyl MEMCALs to use with a V8, but obviously shorting the pins wouldn't be the proper way to do it. Using the correct resistor between the correct pins would be the way to do it. I recall seeing values for each cylinder count needed at the pin from the MEMCAL, in a thread on here. I think it was a thread dedicated to Limp Home tuning.
If It were me, I'd just use the '7730 and run SD, you know $59, and it does work on 4 cyl engines.