load profiles from json WIP

This commit is contained in:
minjaesong
2022-10-25 14:39:47 +09:00
parent b5b3be772e
commit 22472e6103
5 changed files with 98 additions and 27 deletions

View File

@@ -23,7 +23,7 @@ class VM(
val assetsDir: String,
_memsize: Long,
val worldInterface: WorldInterface,
val roms: Array<VMProgramRom?>, // first ROM must contain the BIOS
val roms: Array<VMProgramRom>, // first ROM must contain the BIOS
_peripheralSlots: Int = 8,
) {
@@ -71,9 +71,9 @@ class VM(
peripheralTable[0] = PeripheralEntry(
IOSpace(this),
HW_RESERVE_SIZE,
MMIO_SIZE.toInt() - 256,
64
// HW_RESERVE_SIZE,
// MMIO_SIZE.toInt() - 256,
// 64
)
init()
@@ -231,9 +231,9 @@ class VM(
class PeripheralEntry(
val peripheral: PeriBase? = null,
val memsize: Long = 0,
val mmioSize: Int = 0,
val interruptCount: Int = 0, // max: 4
// val memsize: Long = 0,
// val mmioSize: Int = 0,
// val interruptCount: Int = 0, // max: 4
) {
val type = peripheral?.typestring
}

View File

@@ -33,9 +33,9 @@ class V2kRunTest : ApplicationAdapter() {
vm.peripheralTable[1] = PeripheralEntry(
gpu,
GraphicsAdapter.VRAM_SIZE,
16,
0
// GraphicsAdapter.VRAM_SIZE,
// 16,
// 0
)
batch = SpriteBatch()