the pip(needs proper name) program loader and the example program

This commit is contained in:
minjaesong
2021-12-01 16:15:42 +09:00
parent 065dfdac6f
commit 55113ff11f
7 changed files with 4101 additions and 10 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +0,0 @@
println("Hello, Personal Information Processor!")
while (1) {
for (let i = 0; i <= 160*140; i++) {
sys.poke(-1048576 - i, Math.round(Math.random()*15));
}
}

BIN
assets/bios/pipboot.rom Normal file

Binary file not shown.

View File

@@ -1 +1,4 @@
10 PRINT "HAI!"
10 FOR K = 0 TO (160*140)
20 POKE(-1048576-K, INT(RND(1)*16))
30 NEXT
40 GOTO 10

View File

@@ -111,7 +111,7 @@ class ExtDisp(val vm: VM, val width: Int, val height: Int) : PeriBase {
}
override fun dispose() {
framebuffer.dispose()
try { framebuffer.dispose() } catch (e: Throwable) {}
try { tex.dispose() } catch (e: Throwable) {}
}

View File

@@ -35,5 +35,5 @@ object BasicRom : VMProgramRom("./assets/bios/basic.bin")
object TBASRelBios : VMProgramRom("./assets/bios/tbasdist.js")
object WPBios : VMProgramRom("./assets/bios/wp.js")
object PipBios : VMProgramRom("./assets/bios/pipboot.js")
object PipBios : VMProgramRom("./assets/bios/pipboot.rom")
object PipROM : VMProgramRom("./assets/bios/pipcode.bas")