mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
BR 2172659: Fix incorrect output value for byte operands
A typo in checkin c1377e9a98
caused a
bunch of signed-byte immediates to incorrectly be issued as zero.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
44d3552ab9
commit
779ed8bcfd
@ -1534,11 +1534,11 @@ static void gencode(int32_t segment, int64_t offset, int bits,
|
||||
"signed byte value exceeds bounds");
|
||||
}
|
||||
if (opx->segment != NO_SEG) {
|
||||
data = um;
|
||||
data = uv;
|
||||
out(offset, segment, &data, OUT_ADDRESS, 1,
|
||||
opx->segment, opx->wrt);
|
||||
} else {
|
||||
bytes[0] = um;
|
||||
bytes[0] = uv;
|
||||
out(offset, segment, bytes, OUT_RAWDATA, 1, NO_SEG,
|
||||
NO_SEG);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user