AmodB subroutine tested