You can rotate a BG tile 180deg with "BGPUT L,X,Y,C OR &H2000", and you can flip a BG tile vertical with "BGPUT,L,X,Y,C OR &H8000". L is BG layer number, and C is BG character number(0-4095).