summaryrefslogtreecommitdiff
path: root/include/nasmlib.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2017-05-01 20:28:29 -0700
committerH. Peter Anvin <hpa@zytor.com>2017-05-01 21:13:15 -0700
commit3e458a89d8c985527313305b55d5725cf382e862 (patch)
tree3b1ec93afc10e5e389ce1c74cb32f28a743ac52a /include/nasmlib.h
parent5810c594c9eeed4d809b29c9e073af76dfcd3249 (diff)
downloadnasm-3e458a89d8c985527313305b55d5725cf382e862.tar.gz
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>
Diffstat (limited to 'include/nasmlib.h')
-rw-r--r--include/nasmlib.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/nasmlib.h b/include/nasmlib.h
index 672764c6..4510f187 100644
--- a/include/nasmlib.h
+++ b/include/nasmlib.h
@@ -505,8 +505,6 @@ static inline int64_t const_func signed_bits(int64_t value, int bits)
return value;
}
-int const_func idata_bytes(int opcode);
-
/* check if value is power of 2 */
#define is_power2(v) ((v) && ((v) & ((v) - 1)) == 0)