projects
/
platform
/
upstream
/
nasm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44d3552
)
BR 2172659: Fix incorrect output value for byte operands
author
H. Peter Anvin
<hpa@zytor.com>
Thu, 16 Oct 2008 20:01:43 +0000
(13:01 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Thu, 16 Oct 2008 20:01:43 +0000
(13:01 -0700)
A typo in checkin
c1377e9a98dd5ca6f7900c048df5d346d1733d05
caused a
bunch of signed-byte immediates to incorrectly be issued as zero.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
assemble.c
patch
|
blob
|
history
diff --git
a/assemble.c
b/assemble.c
index 0550d956aba59cbcd8381284768840e8507bb753..aade9d4c51d2aac12f13aa122398bc511c410fd2 100644
(file)
--- a/
assemble.c
+++ b/
assemble.c
@@
-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 = u
m
;
+ data = u
v
;
out(offset, segment, &data, OUT_ADDRESS, 1,
opx->segment, opx->wrt);
} else {
- bytes[0] = u
m
;
+ bytes[0] = u
v
;
out(offset, segment, bytes, OUT_RAWDATA, 1, NO_SEG,
NO_SEG);
}