incbin in IR

This commit is contained in:
Irmen de Jong
2022-09-10 14:51:46 +02:00
parent 6886b61186
commit aacea3e9db
9 changed files with 86 additions and 41 deletions
@@ -136,4 +136,9 @@ internal class VmCodeInlineAsm(asm: String): VmCodeLine() {
val assembly: String = asm.trimIndent()
}
internal class VmCodeInlineBinary(val file: Path, val offset: UInt?, val length: UInt?): VmCodeLine()
internal class VmCodeInlineBinary(val file: Path, val offset: UInt?, val length: UInt?): VmCodeLine() {
init {
require(file.isAbsolute)
require(file.toFile().isFile)
}
}