mirror of
https://github.com/RevCurtisP/C02.git
synced 2025-02-17 21:30:34 +00:00
Fixed a02 Segmentation Fault in Linux
This commit is contained in:
parent
0c4e6f1ff8
commit
becc10ce3b
3
a02.c
3
a02.c
@ -397,7 +397,7 @@ void asminf(void) {
|
|||||||
}
|
}
|
||||||
incnam[incidx] = 0; //Terminate Include Name
|
incnam[incidx] = 0; //Terminate Include Name
|
||||||
if (incidx == 0) xerror("INCLUDE requires file name\n", "");
|
if (incidx == 0) xerror("INCLUDE requires file name\n", "");
|
||||||
if (debug) printf("Include File Set to Name to ''\n", incnam);
|
if (debug) printf("Include File Set to Name to '%s'\n", incnam);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Assemble END Pseudo-Op */
|
/* Assemble END Pseudo-Op */
|
||||||
@ -622,6 +622,7 @@ void asmfil(int pass) {
|
|||||||
blknum = 1; //Initialize Local Block Number
|
blknum = 1; //Initialize Local Block Number
|
||||||
orgadr = -1; //Origin Address Not Set
|
orgadr = -1; //Origin Address Not Set
|
||||||
curadr = orgadr; //Set Current Address to Origin
|
curadr = orgadr; //Set Current Address to Origin
|
||||||
|
if (debug) printf("Rewinding Input File\n");
|
||||||
rewind(inpfil); //Start at Beginning of Input File
|
rewind(inpfil); //Start at Beginning of Input File
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
if (incfil) linptr = fgets(inplin, MAXSTR, incfil);
|
if (incfil) linptr = fgets(inplin, MAXSTR, incfil);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user