Try inserting the following codes between line 42 and 43 of your attached program.
SPCHR 0 OUT U,V,W,H,A
SPCHR 0,U,V,W,H,1 OR #SPREVH
This is the example for horizontal flip. If you want to flip vertically, write #SPREVV instead of #SPREVH.
1そうだね 未プレイ