To work with AMS v1, v2, v3 boards, you can use AMS v4 instruction taking into account some differences in functionality.