Loaging GT1 programs to RAM
Posted: 22 May 2019, 08:02
Hi,
I'm trying to use the ROM emulator to also load GT1 files directly to RAM and, while programs are actually loaded and run, I got lots of hangs and bad behavior, so there is something wrong.
This is my loading procedure:
- Stop the Gigatron while refreshing the video to be sure the vCPU emulator is not running.
- Copy the GT1 segments to their locations in RAM.
- Copy the starting address at RAM[0x16:0x17] (vPC)
- Reset RAM[0x1C]=0 (vSP)
- Continue the execution.
I guest some other things also need to be initialized (vLR?)... Any hint is welcome.
I'm trying to use the ROM emulator to also load GT1 files directly to RAM and, while programs are actually loaded and run, I got lots of hangs and bad behavior, so there is something wrong.
This is my loading procedure:
- Stop the Gigatron while refreshing the video to be sure the vCPU emulator is not running.
- Copy the GT1 segments to their locations in RAM.
- Copy the starting address at RAM[0x16:0x17] (vPC)
- Reset RAM[0x1C]=0 (vSP)
- Continue the execution.
I guest some other things also need to be initialized (vLR?)... Any hint is welcome.