switch (addr) {
case R_ADDR:
stream.writeINC(getReg(0));
break;
case E_ADDR:
Address ind = getAddress(0);
stream.writeINC(operandSize, getRegister(ind.getImg()), ind.disp);
break;
case A_ADDR:
stream.writeINC(operandSize, getAddress(0).disp);
break;
case S_ADDR:
ind = getAddress(0);
stream.writeINC(operandSize, getRegister(ind.getImg()), getRegister(ind.sreg), ind.scale, ind.disp);
break;
case G_ADDR:
ind = getAddress(0);
stream.writeINC(operandSize, (SR) X86Register.getRegister(ind.getImg()), ind.disp);
break;
default:
reportAddressingError(INC_ISN, addr);
}
}