summaryrefslogtreecommitdiff
path: root/assemble.c
diff options
context:
space:
mode:
authorKeith Kanios <spook@dynatos.net>2007-08-19 18:49:26 +0000
committerKeith Kanios <spook@dynatos.net>2007-08-19 18:49:26 +0000
commitd94764bec02ad5f8351c8df41cd7c7c64abcc714 (patch)
tree082e41be1d0d657d847fd361059a35d37db656e1 /assemble.c
parent48af17738ce6c15c7110c6d67dc2b7191c46693b (diff)
downloadnasm-d94764bec02ad5f8351c8df41cd7c7c64abcc714.tar.gz
nasm-d94764bec02ad5f8351c8df41cd7c7c64abcc714.tar.bz2
nasm-d94764bec02ad5f8351c8df41cd7c7c64abcc714.zip
Fixed RIP address processing ambiguity found by Charles Crayne.
Diffstat (limited to 'assemble.c')
-rw-r--r--assemble.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/assemble.c b/assemble.c
index a733055..d9471b5 100644
--- a/assemble.c
+++ b/assemble.c
@@ -1648,6 +1648,7 @@ static ea *process_ea(operand * input, ea * output, int addrbits,
{
int rip = FALSE; /* Used for RIP-relative addressing */
+ output->rip = 0;
/* REX flags for the rfield operand */
output->rex |= rexflags(rfield, rflags, REX_R|REX_P|REX_W|REX_H);