Platform Timex TS2068
This port is an improvement of the ZX Spectrum one, which already includes some automatic fix to solve the compatibility problems on the TS2068.
Most of the extra functionalities permit to take benefit of the extended video mode for text and graphics.
Please refer to the ZX Spectrum platform docs for further information about most of the available features (appmake, etc).
Spectrum mode:
zcc +ts2068 -subtype=nohrg -create-app program.c
Extended mode:
zcc +ts2068 -create-app program.c
Omitting the -subtype option causes CRT_ORG_CODE to assigned the value 40000
-or-
zcc +ts2068 -clib=ansi -create-app program.c
Extra functionalities are available for such platform, notably the Sprite Pack 1 library supporting the 512x192 graphics resolution.
The ROM calculator is supported by use of the -lm2068
library.
It should be noted that the ZX Maths libraries are of a lower precision than both genmath and math48 and are also less performant. As a trade off, the amount of memory used is much reduced.
Using the ANSI terminal forces the use of hires mode. You may want to consider using the ANSI/gencon bridge to facilitate screen mode handling.
The generic console supports switching between the Timex screen modes:
- Mode 0 = Standard ZX Screen mode (256x192)
- Mode 1 = Uses Time Screen 1 (256x192)
- Mode 2 = Timex High colour screen (256x192)
- Mode 6 = Timex Hires screen (512x192)
The colours for the hires mode can modified by OR (|) the following values with the mode value:
Value | Colour |
---|---|
0x00 | Black on white |
0x08 | Blue on yellow |
0x10 | Red on cyan |
0x18 | Magenta on green |
0x20 | Green on magenta |
0x30 | Yellow on blue |
0x38 | White on black |
The graphics library is now integrated and supports all graphics modes, only change the screen mode using console_ioctl()
- the ts_vmod()
function cannot update the appropriate variable.
- Overview
- Platform List
- Unsupported Platforms
- i8080/5 Support
- Homebrew hardware quickstart
- Retargetting
- Building the libraries
- Clang support
- Pragmas
- Adding to Classic
- Introduction
- Library Configuration
- CRT
- Header Files
- Assembly Language
- Library in Depth
- Embedded Platform
- Adding to NewLib
- Benchmarks
- Datatypes
- Debugging
- Decompression
- More than 64k
- Deficiencies
- Compiling Larger Applications
- Importing routines written in 8080 assembly mnemonics
- Using CP/M libraries in REL format with z88dk
- Writing optimal code
- Speeding up Compilation
- CMake usage