From fd1bc0ba7652e5e499702339b746ce0b8d0cb734 Mon Sep 17 00:00:00 2001 From: dwsJason Date: Sat, 22 Feb 2020 14:04:49 -0500 Subject: [PATCH] Fix address corruption issue with when code segment is pushed beyond 32kb --- x65.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x65.cpp b/x65.cpp index 1d73a49..449d993 100644 --- a/x65.cpp +++ b/x65.cpp @@ -7737,7 +7737,7 @@ StatusCode Asm::WriteA2GS_OMF(strref filename, bool full_collapse) { // insert all SUPER_RELOC2 / SUPER_RELOC3 for (int b = 0; b <= 1; b++) { int count_offs = -1; - int prev_page = 0; + int prev_page = -1; int inst_curr = instruction_offs; instructions[inst_curr++] = OMFR_SUPER; int len_offs = inst_curr;