diff options
Diffstat (limited to 'subx/010core.cc')
-rw-r--r-- | subx/010core.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subx/010core.cc b/subx/010core.cc index 050ac932..07029ff0 100644 --- a/subx/010core.cc +++ b/subx/010core.cc @@ -152,8 +152,10 @@ void run_one_instruction() { } void load_program(const string& text_bytes) { - uint32_t addr = 1; istringstream in(text_bytes); + load_program(in, 1); +} +void load_program(istream& in, uint32_t addr) { in >> std::noskipws; while (has_data(in)) { char c1 = next_hex_byte(in); |