diff --git a/bin/x65_win32.zip b/bin/x65_win32.zip index 03b7cf6..b449219 100644 Binary files a/bin/x65_win32.zip and b/bin/x65_win32.zip differ diff --git a/bin/x65_x64.zip b/bin/x65_x64.zip index bba0c37..5547db8 100644 Binary files a/bin/x65_x64.zip and b/bin/x65_x64.zip differ diff --git a/x65.cpp b/x65.cpp index e69f0d3..4e3d201 100644 --- a/x65.cpp +++ b/x65.cpp @@ -1857,7 +1857,8 @@ void Asm::SetSection(strref name, int address) { if (allSections.size()==allSections.capacity()) { allSections.reserve(allSections.size()+16); } Section newSection(name, address); // don't compile over zero page and stack frame (may be bad assumption) - if (address<0x200) { newSection.SetDummySection(true); } + if (address<0x200) { + newSection.SetDummySection(true); } allSections.push_back(newSection); current_section = &allSections[allSections.size()-1]; } @@ -2132,7 +2133,7 @@ uint8_t* Asm::BuildExport(strref append, int &file_size, int &addr) { for (std::vector
::iterator i = allSections.begin(); i != allSections.end(); ++i) { if (i->type == ST_REMOVED) { continue; } if (((!append && !i->export_append) || append.same_str_case(i->export_append)) && i->type != ST_ZEROPAGE) { - if (i->start_address>=0x200&&i->size()>0) { + if (i->size()>0) { memcpy(output+i->start_address-start_address, i->output, i->size()); } }