case I_DT:
wsize = 10;
break;
+ case I_DO:
+ wsize = 16;
+ break;
default:
break;
}
if (instruction->opcode == -1)
return 0;
- if (instruction->opcode == I_DB ||
- instruction->opcode == I_DW ||
- instruction->opcode == I_DD ||
- instruction->opcode == I_DQ || instruction->opcode == I_DT) {
+ if (instruction->opcode == I_DB || instruction->opcode == I_DW ||
+ instruction->opcode == I_DD || instruction->opcode == I_DQ ||
+ instruction->opcode == I_DT || instruction->opcode == I_DO) {
extop *e;
int32_t isize, osize, wsize = 0; /* placate gcc */
case I_DT:
wsize = 10;
break;
+ case I_DO:
+ wsize = 16;
+ break;
default:
break;
}
continue;
}
- if ((i == TOKEN_FLOAT && is_comma_next()) || i == '-') {
- int32_t sign = +1L;
+ if ((i == TOKEN_FLOAT && is_comma_next())
+ || i == '-' || i == '+') {
+ int32_t sign = +1;
- if (i == '-') {
+ if (i == '+' || i == '-') {
char *save = stdscan_bufptr;
+ int token = i;
+ sign = (i == '-') ? -1 : 1;
i = stdscan(NULL, &tokval);
- sign = -1L;
if (i != TOKEN_FLOAT || !is_comma_next()) {
stdscan_bufptr = save;
- i = tokval.t_type = '-';
+ i = tokval.t_type = token;
}
}
case I_DT:
eop->stringlen = 10;
break;
+ case I_DO:
+ eop->stringlen = 16;
+ break;
default:
error(ERR_NONFATAL, "floating-point constant"
- " encountered in `d%c' instruction"
- ? (result->opcode == I_DO) ? 'o' : 'b');
+ " encountered in `db' instruction");
/*
* fix suggested by Pedro Gimeno... original line
* was: