mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-11 12:29:46 +00:00
Generate .INF file for every output file
This commit is contained in:
parent
eba91e26e5
commit
0cba2dec04
@ -157,6 +157,12 @@ object Main {
|
||||
errorReporting.debug("Writing output to " + path.toAbsolutePath)
|
||||
errorReporting.debug(s"Total output size: ${code.length} bytes")
|
||||
Files.write(path, code)
|
||||
if (platform.generateBbcMicroInfFile) {
|
||||
val start = platform.codeAllocators(bankName).startAt
|
||||
val codeLength = code.length
|
||||
Files.write(Paths.get(prgOutput +".inf"),
|
||||
s"${path.getFileName} ${start.toHexString} ${start.toHexString} ${codeLength.toHexString}".getBytes(StandardCharsets.UTF_8))
|
||||
}
|
||||
}
|
||||
errorReporting.debug(s"Total time: ${Math.round((System.nanoTime() - startTime)/1e6)} ms")
|
||||
c.runFileName.foreach{ program =>
|
||||
@ -165,12 +171,6 @@ object Main {
|
||||
errorReporting.debug(s"Running: ${cmdline.mkString(" ")}")
|
||||
new ProcessBuilder(cmdline.toArray: _*).directory(new File(program).getParentFile).start()
|
||||
}
|
||||
if (platform.generateBbcMicroInfFile) {
|
||||
val start = platform.codeAllocators("default").startAt
|
||||
val codeLength = result.code("default").length
|
||||
Files.write(Paths.get(defaultPrgOutput+".inf"),
|
||||
s"$defaultPrgOutput ${start.toHexString} ${start.toHexString} ${codeLength.toHexString}".getBytes(StandardCharsets.UTF_8))
|
||||
}
|
||||
}
|
||||
|
||||
private def getDefaultIncludePath: Either[String, String] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user