summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor van den Elzen <victor.vde@gmail.com>2008-10-01 12:18:28 +0200
committerVictor van den Elzen <victor.vde@gmail.com>2008-10-01 12:18:28 +0200
commitcf9332ca511526ab5cabe429c479c781be2b4ac7 (patch)
tree65d0ea7524a074e8a632c7a519bc4b71793e9e17
parent1abb9e5370eb700ce98f4403ac686f463aa49d2b (diff)
downloadnasm-cf9332ca511526ab5cabe429c479c781be2b4ac7.tar.gz
Apply patch from BR 1197827
-rw-r--r--assemble.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/assemble.c b/assemble.c
index 91a45d54..5d926a2c 100644
--- a/assemble.c
+++ b/assemble.c
@@ -1805,6 +1805,13 @@ static void gencode(int32_t segment, int64_t offset, int bits,
s = p - bytes;
out(offset, segment, bytes, OUT_RAWDATA, s, NO_SEG, NO_SEG);
+ /*
+ * Make sure the address gets the right offset in case
+ * the line breaks in the .lst file (BR 1197827)
+ */
+ offset += s;
+ s = 0;
+
switch (ea_data.bytes) {
case 0:
break;