diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-10-01 12:30:15 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-10-01 12:30:15 -0700 |
commit | fb7e66fd4b30cc4c0aa9abcdf64ab7e33a0e9ef3 (patch) | |
tree | 0677e9ce372bf8e91e3b6b832e28e106b6ab5529 /subx/036global_variables.cc | |
parent | 2b51cba67ce8fc41fb6963637f53a836938479a8 (diff) | |
download | mu-fb7e66fd4b30cc4c0aa9abcdf64ab7e33a0e9ef3.tar.gz |
4640 - clear error message on missing library
Diffstat (limited to 'subx/036global_variables.cc')
-rw-r--r-- | subx/036global_variables.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subx/036global_variables.cc b/subx/036global_variables.cc index f278ee29..e34c5b73 100644 --- a/subx/036global_variables.cc +++ b/subx/036global_variables.cc @@ -69,6 +69,8 @@ void replace_global_variables_with_addresses(program& p, const map<string, uint3 for (int j = 0; j < SIZE(inst.words); ++j) { const word& curr = inst.words.at(j); if (!contains_key(address, curr.data)) { + if (!looks_like_hex_int(curr.data)) + raise << "missing reference to global '" << curr.data << "'\n" << end(); new_inst.words.push_back(curr); continue; } |