summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-26 21:48:18 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-26 21:48:18 +0000
commit14f4d04643ff638b1453969cd7777bf0a1088a58 (patch)
tree20aa20b086e589a72470d95650053994a0761d9f /nasm.c
parentf1a3f94d450a0efc3601a15ae850e5ec3afeac0b (diff)
downloadnasm-14f4d04643ff638b1453969cd7777bf0a1088a58.tar.gz
nasm-14f4d04643ff638b1453969cd7777bf0a1088a58.tar.bz2
nasm-14f4d04643ff638b1453969cd7777bf0a1088a58.zip
Undo accidental checkin of old code
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/nasm.c b/nasm.c
index e3cf2bd..7666d0d 100644
--- a/nasm.c
+++ b/nasm.c
@@ -58,11 +58,11 @@ static unsigned long cpu = IF_PLEVEL; /* passed to insn_size & assemble.c */
int global_offset_changed; /* referenced in labels.c */
static loc_t location;
-int in_abs_seg; /* Flag we are in ABSOLUTE seg */
-long abs_seg;
+int in_abs_seg; /* Flag we are in ABSOLUTE seg */
+long abs_seg; /* ABSOLUTE segment basis */
+long abs_offset; /* ABSOLUTE offset */
static struct RAA *offsets;
-long abs_offset;
static struct SAA *forwrefs; /* keep track of forward references */
static struct forwrefinfo *forwref;
@@ -964,8 +964,8 @@ static void assemble_file (char *fname)
"cannot use non-relocatable expression as "
"ABSOLUTE address");
else {
- abs_seg = reloc_seg(e);
- abs_offset = reloc_value(e);
+ abs_seg = reloc_seg(e);
+ abs_offset = reloc_value(e);
}
} else
if (pass==1) abs_offset = 0x100;/* don't go near zero in case of / */
@@ -1124,9 +1124,9 @@ static void assemble_file (char *fname)
{
int isext = output_ins.oprs[0].opflags & OPFLAG_EXTERN;
def_label (output_ins.label,
- output_ins.oprs[0].segment,
- output_ins.oprs[0].offset,
- NULL, FALSE, isext, ofmt, report_error);
+ output_ins.oprs[0].segment,
+ output_ins.oprs[0].offset,
+ NULL, FALSE, isext, ofmt, report_error);
}
else if (output_ins.operands == 2 &&
(output_ins.oprs[0].type & IMMEDIATE) &&