Hi edenli,
The AMMCLIB comes with different processors support. The MagniV S12 would be closed but not the same with your processor S12SXS.
The MagniV S12 family reuses many features from the S12/S12X product portfolio with particular differentiating features on enhanced S12Z core and the combination peripherals like dual-ADC synchronized with PWM generation and the integration of “high-voltage” analog modules.
So, it might be logic to start from AMMCLIB for MagniV S12ZVM and see it works on S12X, but keep in mind that the NXP library is optimized to squeeze most of the performance out of the core by employing special optimization in assembly ISA. Since the library is created and supported for a newer version of the S12Z core some functionalities might not work on S12X.
Also, most likely the AMMCLIB version you have is the evaluation copy. If you really want's to migrate it to other processors (including non NXP's ones) then you most likely need the source code option of the library. That will give you access to the source code of the math and motor control functions and you could potentially port that to any other processor.
Hope this helps!
Daniel