mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
a) Fix handling of DZ/ZWORD; b) don't crash on TIMES JMP
a) Fix a number of missing instances of DZ and ZWORD. b) NASM would crash if TIMES was used on an instruction which varies in size, e.g. JMP. Fix this by moving the handling of TIMES at a higher level, so we generate the instruction "de novo" for each iteration. The exception is INCBIN, so we can avoid reading the included file over and over. c) When using the RESx instructions, just fold TIMES into the reserved space size; there is absolutely no point to iterate over it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
@@ -282,6 +282,9 @@ static void cv8_typevalue(int32_t type)
|
||||
case TY_YWORD:
|
||||
cv8_state.last_sym->symtype = TYPE_REAL256;
|
||||
break;
|
||||
case TY_ZWORD:
|
||||
cv8_state.last_sym->symtype = TYPE_REAL512;
|
||||
break;
|
||||
case TY_UNKNOWN:
|
||||
break;
|
||||
case TY_LABEL:
|
||||
|
Reference in New Issue
Block a user