mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-12 23:54:04 +09:00
the pip(needs proper name) program loader and the example program
This commit is contained in:
4095
assets/bios/pip_basic_loader_source.js
Normal file
4095
assets/bios/pip_basic_loader_source.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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
BIN
assets/bios/pipboot.rom
Normal file
Binary file not shown.
@@ -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
|
||||||
@@ -111,7 +111,7 @@ class ExtDisp(val vm: VM, val width: Int, val height: Int) : PeriBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun dispose() {
|
override fun dispose() {
|
||||||
framebuffer.dispose()
|
try { framebuffer.dispose() } catch (e: Throwable) {}
|
||||||
try { tex.dispose() } catch (e: Throwable) {}
|
try { tex.dispose() } catch (e: Throwable) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,5 +35,5 @@ object BasicRom : VMProgramRom("./assets/bios/basic.bin")
|
|||||||
object TBASRelBios : VMProgramRom("./assets/bios/tbasdist.js")
|
object TBASRelBios : VMProgramRom("./assets/bios/tbasdist.js")
|
||||||
object WPBios : VMProgramRom("./assets/bios/wp.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")
|
object PipROM : VMProgramRom("./assets/bios/pipcode.bas")
|
||||||
Reference in New Issue
Block a user