mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
Merge a bunch of common code in the handling of modr/m generation. Make the handing of compressed disp8 simpler and more transparent by exporting a the shift factor for the compressed immediate in ea_data. For the case of no compression, the shift factor is simply 0; there is no need to distinguish "compressed" from "uncompressed". The tidied up version of the disp8 code is simple enough that it makes more sense to inline it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>