
switch( S1STA & 0xF8 ){
  case 0x00:
  case 0x08:
  ...
