Updates for the tranZPUter development

This commit is contained in:
Philip Smart
2020-05-29 23:38:40 +01:00
parent 11d996754d
commit 4e1f35f813
12 changed files with 26 additions and 5 deletions

View File

@@ -1937,8 +1937,11 @@ void loadTranZPUterDefaultROMS(void)
{
fillZ80Memory(MZ_MROM_STACK_ADDR, MZ_MROM_STACK_SIZE, 0x00, 1);
}
z80Control.disableRefresh = 1;
// No longer need refresh on the mainboard as all operations are in static RAM.
z80Control.disableRefresh = 1;
}
return;
}
// Method to set the service status flag on the Z80 (and duplicated in the internal
@@ -2867,6 +2870,22 @@ void processServiceRequest(void)
status=svcCacheDir((const char *)svcControl.directory, 0);
break;
// Load the 40 column version of the SA1510 bios into memory.
case TZSVC_CMD_LOAD40BIOS:
if((status=loadZ80Memory((const char *)MZ_ROM_SA1510_40C, 0, MZ_MROM_ADDR, 0, 0, 1)) != FR_OK)
{
printf("Error: Failed to load %s into tranZPUter memory.\n", MZ_ROM_SA1510_40C);
}
break;
// Load the 80 column version of the SA1510 bios into memory.
case TZSVC_CMD_LOAD80BIOS:
if((status=loadZ80Memory((const char *)MZ_ROM_SA1510_80C, 0, MZ_MROM_ADDR, 0, 0, 1)) != FR_OK)
{
printf("Error: Failed to load %s into tranZPUter memory.\n", MZ_ROM_SA1510_80C);
}
break;
default:
break;
}

View File

@@ -103,7 +103,7 @@ extern "C" {
#define CMD_APP_MBASIC 141 // Mini Basic
#define CMD_APP_KILO 142 // Kilo Editor
#define CMD_APP_ED 143 // Ed Editor
#define CMD_TZ_ZPU 150 // tranZPUter interface/test.
#define CMD_TZ_TZPU 150 // tranZPUter interface/test.
#define CMD_TZ_LOAD 151 // tranZPUter memory load/save tool.
#define CMD_TZ_DUMP 152 // tranZPUter memory dump tool.
#define CMD_TZ_CLEAR 153 // tranZPUter memory clear tool.

View File

@@ -115,6 +115,8 @@
#define TZSVC_CMD_SAVEFILE 0x09 // Service command to save a file directly from tranZPUter memory.
#define TZSVC_CMD_ERASEFILE 0x0A // Service command to erase a file on the SD card.
#define TZSVC_CMD_CHANGEDIR 0x0B // Service command to change active directory on the SD card.
#define TZSVC_CMD_LOAD40BIOS 0x20 // Service command requesting that the 40 column version of the SA1510 BIOS is loaded.
#define TZSVC_CMD_LOAD80BIOS 0x21 // Service command requesting that the 80 column version of the SA1510 BIOS is loaded.
#define TZSVC_DEFAULT_DIR "MZF" // Default directory where MZF files are stored.
#define TZSVC_DEFAULT_EXT "MZF" // Default file extension for MZF files.
#define TZSVC_DEFAULT_WILDCARD "*" // Default wildcard file matching.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -372,5 +372,5 @@ BSS_END: .word __bss_section_end__
.equ funcAddr, funcAddr+funcNext;
defapifunc loadTranZPUterDefaultROMS funcAddr
.equ funcAddr, funcAddr+funcNext;
defapifunc convertSharpFilename funcAddr
defapifunc convertSharpFilenameToAscii funcAddr
.end

View File

@@ -1021,7 +1021,7 @@ void _ZPUTA_Vectors(void)
__asm__ volatile ("b getZ80IO");
__asm__ volatile ("b clearZ80Reset");
__asm__ volatile ("b loadTranZPUterDefaultROMS");
__asm__ volatile ("b convertSharpFilename");
__asm__ volatile ("b convertSharpFilenameToAscii");
#endif
}

View File

@@ -283,7 +283,7 @@ printf("Got an IO request, addr:%02x, Data:%02x\n", ioAddr, ioData);
// Indicate the thread is free.
//
G.ctrlThreadBusy = 0;
threads.delay(100);
threads.delay(1);
threads.yield();
}
}