mirror of
https://github.com/fachat/xa65.git
synced 2025-04-08 18:37:12 +00:00
Fix issue#3 by resetting segment correctly between pass1 and pass2
This commit is contained in:
parent
a98b3770ee
commit
003f35f45b
@ -392,6 +392,8 @@ int main(int argc,char *argv[])
|
||||
r_mode(RMODE_RELOC);
|
||||
segment = SEG_TEXT;
|
||||
} else {
|
||||
/* prime old_segment in r_mode with SEG_TEXT */
|
||||
segment = SEG_TEXT;
|
||||
r_mode(RMODE_ABS);
|
||||
}
|
||||
|
||||
@ -461,6 +463,8 @@ int main(int argc,char *argv[])
|
||||
seg_pass2();
|
||||
|
||||
if(!relmode) {
|
||||
/* prime old_segment in r_mode with SEG_TEXT */
|
||||
segment = SEG_TEXT;
|
||||
r_mode(RMODE_ABS);
|
||||
} else {
|
||||
r_mode(RMODE_RELOC);
|
||||
|
Loading…
x
Reference in New Issue
Block a user