aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-03-01 18:05:08 +0100
committertomsmeding <tom.smeding@gmail.com>2017-03-01 18:05:08 +0100
commit8a3ba59193b0487fdffa4dc05abd4487b1ebf7fb (patch)
tree6aaf53c01f103b3727501d4ca5b8cb3a48eed2e2 /main.cpp
parent029f4e66a157a01f094c20d11569f4876379bcfb (diff)
Fix jump parsing bug (and better debug logging)
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index a4c8714..20eb1fe 100644
--- a/main.cpp
+++ b/main.cpp
@@ -76,7 +76,7 @@ Argument parseArgument(const string &str,const unordered_map<string,Location> &l
}
Location ref=labels.find(str.substr(1))->second;
assert(ref.bank==ip.bank);
- return {arg_t::number,false,ref.bank-ip.bank,{}};
+ return {arg_t::number,false,ref.pos-ip.pos,{}};
} else if(str[0]=='$'){
return {arg_t::constant,false,0,str.substr(1)};
} else if(isdigit(str[0])){