From 4e1f35f813973bdcbca817d70f5b161dc751d6ce Mon Sep 17 00:00:00 2001 From: Philip Smart Date: Fri, 29 May 2020 23:38:40 +0100 Subject: [PATCH] Updates for the tranZPUter development --- common/tranzputer.c | 21 ++++++++++++++++++++- include/tools.h | 2 +- include/tranzputer.h | 2 ++ libraries/lib/libimath2-k64f.a | Bin 12504 -> 12504 bytes libraries/lib/libumansi-k64f.a | Bin 124218 -> 124218 bytes libraries/lib/libummath-k64f.a | Bin 2660 -> 2660 bytes libraries/lib/libummathf-k64f.a | Bin 63972 -> 63972 bytes libraries/lib/libummisc-k64f.a | Bin 6222 -> 6222 bytes libraries/lib/libumstdio-k64f.a | Bin 80050 -> 80050 bytes startup/app_k64f_crt0.s | 2 +- startup/mk20dx128.c | 2 +- zOS/src/zOS.cpp | 2 +- 12 files changed, 26 insertions(+), 5 deletions(-) diff --git a/common/tranzputer.c b/common/tranzputer.c index 00d4e18..b2d996b 100644 --- a/common/tranzputer.c +++ b/common/tranzputer.c @@ -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; } diff --git a/include/tools.h b/include/tools.h index 8856d0c..8758a14 100644 --- a/include/tools.h +++ b/include/tools.h @@ -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. diff --git a/include/tranzputer.h b/include/tranzputer.h index 8facdd7..16f1199 100755 --- a/include/tranzputer.h +++ b/include/tranzputer.h @@ -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. diff --git a/libraries/lib/libimath2-k64f.a b/libraries/lib/libimath2-k64f.a index 8fb4532d06bcb0008b759a029f3788b9ad264f15..1382a59fa95e7b2c4a197e9b05950911428eff33 100644 GIT binary patch delta 66 zcmcbScq4IwEUTrVv9akyrFsZs@;XWJjeFmT*c~8v9Uy?%am7kPCHWZ2yn<-X9N?D>=jfI67Z!txr-cGY% zj@%kWqU5JM>`;UhDRyi$?wfn>%)>5dw9f@U-! zmQ1g#OFwmy=_2sxjpf1cD2aU2Dr&rH{?0lkTqO`5GrI1D+oFA0Z(GF`N^{%codB~QpoTu1eqI+Jk7zQ zV7I=XJOn}KRv7zI7zPTs7pm{#HD&UVk*LV3kUy`DR+@ut;p-`0AOtBhL$`Z|rg@qY!F-4@_PO}(u zG08X8Fh*(`faOIA&&xc0Mo zX(}!a-`$7*P_@nq1wz}fviM$P{RT7)RgdLx9QQT-Khdzij28tyvY6?S?8Jgtlgc;H4j~6!h8)Di~jUH7%D?hq3SE*44=efxv z5&GE-PhvOnum&pq=zuIYAM%E$4?_98;RK-veh^644n>4!JKeIAEx16 zvOC{T@8-Z1Ryg}Y7<%)B7pCtKHDmJA!Klni==v563#RQoup}uHXrph(uqqnKeAXp= KO9xDKIp-IiaM=<7 diff --git a/libraries/lib/libummath-k64f.a b/libraries/lib/libummath-k64f.a index 6420cd748b666426e36c98c92293ed604ff3fed8..175dc5fbfc9f254b3b17f4fc3dde96a0a45203bc 100644 GIT binary patch delta 25 ccmaDN@)SBqKbPOUQ1$QHjF6GsY+o(} zGZ^HU+=dE%sAJ@;B{nlnSPs*-Zsv1jg&P_y?>V6Q&fU_7$;eqdZFYGw6UGI()SBqKbPOUQ1$QHjF6GsY+o(} zGZ^HU+=dE%sAJ@;B{nlnSPs*-Zsv1jg&P_y?>V6Q&fU_7$;eqdZFYGw6UGI(`H%s#$;em4{Hvf@UN63n8 zw$pqm4VM+)?CiRN55nF2As9uWQKF>`RHmSIJ~xsc?amB{1*SmjqbA$Qux`H%s#$;em4{Hvf@UN63n8 zw$pqm4VM+)?CiRN56rdP{2>^s&=P2>*k+?dOBtw4LG65Q2ooqHzFE6717ZP4Vbo+h z8Me(orXEKKiEqBWXa_QP{rVFSCxA4FZ=SsO3{1A5R$_C_smUm&U(