You need the number stamped on the front of the block just above the water pump and below the head gasket line
should start YBG for a red top (pre 92 emmisions spec) or YBJ for a green top( cat and lambda spec) for a 4x4 - the engines are the same its the bolt ons and ecu which differ