basic update; removing the need of dummy texture pal.png

This commit is contained in:
minjaesong
2021-04-28 15:50:28 +09:00
parent e232181f3d
commit 57b59995e0
4 changed files with 3642 additions and 2499 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -23,14 +23,16 @@ public class AppLoader {
appConfig.resizable = false;
appConfig.title = appTitle;
appConfig.forceExit = true;
appConfig.width = 720;//480;
appConfig.height = 480;//128;
appConfig.width = 720;
appConfig.height = 480;
// val vm = VM(64.kB(), TheRealWorld(), arrayOf(GenericBios))
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{BasicBios.INSTANCE, BasicRom.INSTANCE});
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{OEMBios.INSTANCE, BasicRom.INSTANCE});
VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{TandemBios.INSTANCE, BasicRom.INSTANCE});
// uncomment to target the TerranBASIC runner
//VM vm = new VM(64 << 10, new TheRealWorld(), new VMProgramRom[]{TBASRelBios.INSTANCE});
EmulInstance reference = new EmulInstance(appConfig, vm, "net.torvald.tsvm.peripheral.ReferenceGraphicsAdapter", "assets/disk0");

View File

@@ -557,7 +557,7 @@ open class GraphicsAdapter(val vm: VM, val config: AdapterConfig, val sgr: Super
}
override fun dispose() {
testTex.dispose()
//testTex.dispose()
framebuffer.dispose()
rendertex.dispose()
spriteAndTextArea.destroy()
@@ -749,7 +749,7 @@ open class GraphicsAdapter(val vm: VM, val config: AdapterConfig, val sgr: Super
}
private val testTex = Texture("./assets/pal.png");
//private val testTex = Texture("./assets/pal.png");
private fun blendNormal(batch: SpriteBatch) {
Gdx.gl.glEnable(GL20.GL_TEXTURE_2D)

View File

@@ -178,7 +178,7 @@ From the start of the memory space:
Pointer to raw pixmap data in Scratchpad Memory
2 bytes
Cursor position in: (y*32 + x)
Cursor position in: (y*80 + x)
2560 bytes
Text foreground colours
2560 bytes
@@ -233,4 +233,4 @@ MMIO
Text-mode-font-ROM is immutable and does not belong to VRAM
Even in the text mode framebuffer is still being drawn onto the screen, and the texts are drawn on top of it
Even in the text mode framebuffer is still being drawn onto the screen, and the texts are drawn on top of it