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:
2025-08-14 21:03:03 +02:00
parent 9f295b2fb9
commit d5314ce046
11 changed files with 331 additions and 42 deletions

View File

@@ -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
}
}
}