mirror of
https://github.com/cc65/cc65.git
synced 2025-01-24 04:34:35 +00:00
fixed VLIR linker (case when chain length was equal to n*254)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1931 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
443efb5f3a
commit
a5eefc2734
@ -96,8 +96,13 @@ int blocks,rest;
|
||||
if (bytes==0)
|
||||
AbEnd("couldn't read %s:%s\n",argv[i],strerror(errno));
|
||||
blocks = bytes / 254;
|
||||
rest = bytes % 254 + 1;
|
||||
if (rest>255) rest=255;
|
||||
rest = bytes % 254;
|
||||
if (rest==0) {
|
||||
rest = 255;
|
||||
--blocks;
|
||||
} else {
|
||||
++rest;
|
||||
}
|
||||
vlirtabt[j]=blocks+1; vlirtabs[j]=rest;
|
||||
fwrite(buffer,1,(blocks+1)*254,outCVT);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user