generated from rnentjes/kotlin-server-web-undertow
Add MemoryView component for memory rendering, refactor BufferedImage for RGB manipulation, and cleanup unused methods and comments in several classes.
This commit is contained in:
@@ -67,7 +67,6 @@ class MonTanaMiniComputer {
|
||||
// reset memory
|
||||
initMemory()
|
||||
|
||||
|
||||
val codeBoundary = code.size
|
||||
code.copyInto(memory, 0, 0, codeBoundary)
|
||||
setRegisterValue(Register.CB, codeBoundary - 1)
|
||||
@@ -843,7 +842,7 @@ class MonTanaMiniComputer {
|
||||
breakpoints[address] = (if (active) 1.toByte() else 0.toByte())
|
||||
}
|
||||
|
||||
private fun start() {
|
||||
fun start() {
|
||||
console.start() // start the interactive console
|
||||
}
|
||||
|
||||
@@ -1011,16 +1010,8 @@ class MonTanaMiniComputer {
|
||||
return true
|
||||
}
|
||||
val isMcp = getBits(16, 8, instruction) == 5.toShort()
|
||||
if (isMcp) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val computer = MonTanaMiniComputer()
|
||||
computer.speed = 1 // default to 1hz
|
||||
computer.start()
|
||||
return isMcp
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user