protected int getAddressingMethod(String code)
    {
        if (this.register.equalsIgnoreCase("0")) {
            this.isIndexed = false;
        } else {
            this.isIndexed = true;
        }

        if (code.indexOf("*") == -1) {
            this.isIndirect = false;
        } else {
            this.isIndirect = true;
        }

        if ((this.isIndirect) || (this.isIndexed)) {
            if (this.isIndexed) {
                if (this.isIndirect) {
                    return 3;
                }
                return 1;
            }
            return 2;
        }
        return 0;
    }