Add clearer pipeline output info
This commit is contained in:
parent
00379b472b
commit
0277e26422
@ -431,6 +431,13 @@ fun main(args: Array<String>){
|
|||||||
error(e.message ?: "Compilation failed with an unknown error", lineCount)
|
error(e.message ?: "Compilation failed with an unknown error", lineCount)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(currentLine > 127){
|
||||||
|
System.err.println("Instruction count overflow: $currentLine instructions")
|
||||||
|
System.exit(1)
|
||||||
|
}
|
||||||
|
|
||||||
|
System.err.println("INFO: Microcompilation succeeded! Instruction count: $currentLine")
|
||||||
|
|
||||||
for(instr in insns)
|
for(instr in insns)
|
||||||
builder.append(instr.compiledValue.toInstruction()).append("\n")
|
builder.append(instr.compiledValue.toInstruction()).append("\n")
|
||||||
print(builder.toString())
|
print(builder.toString())
|
||||||
|
@ -145,7 +145,7 @@ fun main(args: Array<String>){
|
|||||||
val value = rawValue.replace(" ", "").replace("\t", "")
|
val value = rawValue.replace(" ", "").replace("\t", "")
|
||||||
|
|
||||||
if(value.length == 0 || value.startsWith("#")) continue
|
if(value.length == 0 || value.startsWith("#")) continue
|
||||||
else if((weaveUCode && index() >= state.microMemory.size) || (!weaveUCode && index() >= state.programMemory.size)) error("Program memory out of bounds! Did you pass too much data?")
|
else if((weaveUCode && index() >= state.microMemory.size) || (!weaveUCode && index() >= state.programMemory.size)) error("Memory out of bounds: ${index()}! Did you pass too much data?")
|
||||||
else if(value.startsWith("@")){
|
else if(value.startsWith("@")){
|
||||||
if(value == "@u") weaveUCode = true
|
if(value == "@u") weaveUCode = true
|
||||||
else if(value == "@p") weaveUCode = false
|
else if(value == "@p") weaveUCode = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user