Esempio n. 1
0
        public int parseOperand(op_type type, string op)
        {
            switch (type)
            {
            case op_type.OP_MEMB:
            case op_type.OP_MEMW:
                return(map.getAddress(op));

            case op_type.OP_CONB:
                return(parseBin(op));

            case op_type.OP_CONW:
                return(parseNumber(op));

            case op_type.OP_NONE:
            case op_type.OP_OV:
            default:
                return(0);
            }
        }
Esempio n. 2
0
 public ParseOpElement(string o, int e, op_type t)
 {
     op       = o;
     expected = e;
     typ      = t;
 }