private static boolean is16BitRegister(final String register){
  return register.equals("ax") || register.equals("bx") || register.equals("cx")|| register.equals("dx")|| register.equals("si")|| register.equals("di")|| register.equals("sp")|| register.equals("bp")|| register.equals("ip");
}

private static boolean is16BitRegister ( final String register ) { return register . equals ( "ax" ) || register . equals ( "bx" ) || register . equals ( "cx" ) || register . equals ( "dx" ) || register . equals ( "si" ) || register . equals ( "di" ) || register . equals ( "sp" ) || register . equals ( "bp" ) || register . equals ( "ip" ) ; }
determines whether a passed register is a 16 bit register ( ax , bx , . . . ) .
