SymbOS

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search
Screenshot of the SymbOS desktop running on the Amstrad CPC
SymbOS MSX running on a MSX2 computer; all applications are platform independant
SymbOS PCW is the third port to a different Z80 system and supports a screen resolution of 720x255

Parts of this article have been copied from the english Wikipedia article.

SymbOS is a free multitasking operating system for Z80 based 8-bit computer systems written by Prodatron. At present it is available for the computers of the Amstrad CPC as well as for all MSX models starting from the MSX2 standard, all Amstrad PCW (Joyce) models until the PcW10 and the Enterprise 64/128. Contrary to early 8-bit operating systems it is based on a microkernel, which provides pre-emptive and priority oriented multitasking and manages RAM memory with a size of up to 1024 kB for the executed applications. SymbOS contains an MS-Windows like GUI, supports hard discs with a capacity of up to 2 TB and can already be booted on an unexpanded Amstrad CPC-6128, a PCW, an MSX2 or an Enterprise 128 with floppy disc drive.


History

Already in the 80's, only few years after the release of the Commodore 64, the legendary GEOS by Berkeley Softworks appeared and set the standard for a windows-based operating system on c64. It was a graphical user-interface (GUI) which was similar to the old desktop of the Apple Macintosh. Powerfull applications were made available for GEOS like GeoWrite (similar to MS-Word) or GeoCalc (similar to MS-Excel). It was incredible, that an 8bit-machine with only 64K was able to realize such an operating system.

On the Amstrad CPC many efforts to build a decent GUI were made as well. In most cases they were just extensions to realize a WIMP (Windows, Icons, Menus and Pointers) environment but weren't true operating systems with their own kernel, memory-management and so on. The CEUS Desktop 2.0 (1990) by Prodatron was just such an extension-system.

Therefore, the CPC's own OS (in combination with AmsDOS) and CP/M (plus) were the only two known OSes for the series, but the question remained: since most CPCs have 128K (most C64 only have 64K), a screen-resolution of 320x200 with 4 colours (C64 only has 2 colours for each 8x8 area in 320x200) and some more advantages, why not have something similar? So the SymbOS-Project was born. SymbOS stands for "SYmbiosis Multitasking Based Operating System". SymbOS is a demonstration of what has been achieved on the CPC: real preemptive multitasking, dynamic memory-management for up to 1024K and a totaly MS-Windows-like GUI are the three most important features.


Events

The following is a list of important events during the SymbOS development.

  • 11/2000: Development started
  • 06/2001: First preview of the desktop on the CPC Reunion 1
  • 07/2001: First screen shots in the internet, causing several rumours about a possible hoax
  • 06/2002: Second preview of the desktop on the CPC Reunion 2
  • 09/2004: SymbOS development has been continued after a break of three years
  • 12/2004: Full CPC IDE support implemented; preview of a harddisc based movie player, which used the SymbOS IDE/FAT routines
  • 01/2005: Release of the first official preview on the SymbOS Preview party
  • 09/2005: SymbOS development has been continued again
  • 12/2005: Full SYMBiFACE II support implemented
  • 01/2006: SymbOS is part of the CPC TREX startup system now
  • 04/2006: SymbOS release 1.0 is out
  • 05/2006: Development of the MSX version started
  • 12/2006: SymbOS release 1.1 is out
  • 05/2007: 1MB and richtext support together with the graphical browser SymZilla have been implemented
  • 07/2007: Development of the PCW version started
  • 08/2007: SymbOS release 2.0 is out
  • 11/2012: development continues
  • 08/2014: SymbOS release 2.1 is out
  • 11/2014: Development of the Enterprise version started
  • 03/2015: Development of network support started
  • 08/2017: SymbOS release 3.0 is out
  • 12/2021: SymbOS release 3.1 is out


Technical background

Even the Z80 8-bit CPU is able to run a pre-emptive multitasking environment. Missing mechanisms like memory protection, which are often called as a condition for multitasking, are system stability issues only. The MP/M operating system already proved, that multitasking on Z80 computers is possible.

While the MOS Technology 6502 can not move the stack, the Z80 can freely replace it to any position in the memory, which is more or less a condition for pre-emptive multitasking. The existence of an alternative register set accelerates context switching between tasks dramatically. The restriction of Z80 systems to a 64 kB address space can be solved with bank switching. In this way computers like the Amstrad CPC and PCW, MSX, Enterprise or SAM Coupé are able to access hundreds or thousands of kilobytes of memory.


Feature overview

  • Micro kernel
    • Maximum amount of supported RAM: 1024 KB
    • Maximum number of processes: 32
    • Number of different process priorities: 9
    • Maximum number of timers: 32
    • Maximum number of open messages: 64
  • System manager
    • Maximum number of applications: 24
    • Maximum application core size: 63 KB
  • Desktop manager
    • Maximum number of windows: 32
    • Maximum number of controls per window: 1000
    • Maximum possible screen resolution: 16.000 × 16.000 pixel
  • File manager
    • Maximum hard disc size: 2 TB
    • Maximum file size: 2 GB
    • Maximum number of devices: 8
    • Maximum number of open files: 7
  • Source code
    • Source code size (OS Release 2): ~ 49.000 lines (1.5 MB)
    • Source code size (Applications): ~ 70.000 lines (2.2 MB)
    • Total size of the Z80 source code: ~ 119.000 lines (3.7 MB)
  • Supported platforms
    • Amstrad CPC-464, -664 and -6128 (unexpanded) and compatibles (CPC TREX, C-ONE)
    • MSX2 with 128KB Ram (unexpanded) and compatibles (MSX2+, MSX TurboR, OCM)
    • Amstrad PCW (all models until PcW10)
    • Enterprise 64/128
  • Supported external hardware
    • dk'tronics memory expansion 64K-512K and compatibles (Dobbertin, SYMBiFACE II, X-MEM)
    • SYMBiFACE II (realtime clock; PS/2 mouse; IDE interface, Ram/Rom expansion) and compatibles (X-MASS)
    • M4Board (ESP8266-based Wifi, SD card reader, Rom expansion)
    • HxC direct SD card access (FAT32)
    • Albireo (USB mouse)
    • MultiPlay (Amiga mouse)
    • AMX and Kempston mouse (PCW)
    • Sunrise IDE interface (MSX)
    • MegaSD card interface for OCM, MegaflashRomSCC+SD (MSX)
    • MP3MSX (MSX)
    • DenYoNet (MSX; W5100-based Ethernet)
    • GR8NET (MSX; SD card reader, W5100-based Ethernet)
    • SE-ONE (MSX; MP3, FM Radio)
    • Rookie Drive (MSX)

Kernel

SymbOS includes a micro kernel, which takes over the fundamental tasks of an operating system. They are subdivided into the task management, the memory management, the banking management and the messaging.

Task management

For the task management a combination of pre-emptive and cooperative multitasking has been choosed, which makes different task priorities possible. Pre-emptive means that tasks are interrupted after a certain amount of time by the operating system, in order to share the CPU time with other tasks. Cooperatively means, that a task stops using CPU time by itself. It does it, if it finished its current job or is waiting for a certain event. Because of this combination it is possible to assign priorities. Tasks with a low priority receive CPU time only if all tasks with higher priorities are not currently working.

Memory and banking management

The memory management divides the entire RAM into small 256 byte blocks, which can be assigned dynamically. Applications are always running in a secondary 64 kB RAM bank, where no memory space is occupied by the operating system or the video memory. That makes it possible to reserve up to 63 kB in one piece.

The banking management makes sure, that the system is able to administer memory with a size of one megabyte even with the fact that the Z80 CPU has only a 16-bit address bus. It makes transparent access to memory and functions placed in other 64 kB banks possible.

Messaging

The communication between different tasks and the operating system usually does not take place via "Calls", but is done via "Messages". This is necessarily inside a multitasking environment to avoid organisation problems with the stack, global variables and shared system resources.

Graphical user interface

The GUI of SymbOS works completely object-oriented. Regarding the look and feel it is designed like MS windows. It contains the well-known task bar with the clock and the "start" menu and can open a big amount of windows, which can be shifted, resized and scrolled. As the complete system is written in optimized assembler, the speed of the GUI is only insignificantly under this of current systems and even faster than the original Amiga workbench.

The complete content of a window is defined with "controls". These are e.g. slider, check boxes, text lines, buttons or graphics. The background or not visible areas of a window don't need to be saved in a bit-map buffer. If an area is restored on the display, its content will just be redrawed. Because of this the SymbOS GUI works much more memory-friendlier than most other 8-bit GUIs.


File system management

SymbOS supports the file systems CP/M, AMSDOS, FAT12, FAT16 and FAT32 on all platforms. With the last one SymbOS is able to address mass storage devices with a capacity of up to 128 GB. Also the ability to administer files with a size of up to 2 GB is uncommon for an 8-bit system. Because of the FAT support data exchange with other computers is quite easy, as most 32 and 64 bit operating systems do support the three FAT file systems.


Applications and executables

There are several standard applications available for SymbOS, which have beend designed as clones of well known Windows and Macintosh programs. As an example these are applications similar to the Norton Commander (SymCommander), QuickTime (SymPlay), WinAmp (SymAmp) or Minesweeper.


SymStudio

SymStudio is a Windows-based IDE (integrated development environment) by Trebmint for SymbOS similiar to MS Visual Studio. SymStudio makes it possible to develop SymbOS applications in Assembler or Basic ("SymBasic"). It is also possible to convert PC graphics and videos into the SymbOS format (SGX, VID). Have a look at its article for more information. Currently there is only a beta version available.


Porting and cross platform ability

SymbOS has been developed originally for the Amstrad CPC. Because of the modular structure with the strict separation of general and hardware components the porting to other Z80-based systems is quite easy.

The MSX computers starting with the MSX2 standard are supported since summer 2006. The Amstrad PCW port is available since August 2007. Since end of 2014 the port for the Enterprise 64/128 has been done as well. Versions for Amstrad NC100/150/200 and PCW16, Spectrum Next and others are possible, too, as they fulfill the requirements for SymbOS.

By keeping a basic condition for an operating system, the strict separation of hardware and application software by the supply of an intermediate layer, SymbOS applications run platform-independently on each computer and do not have to be adapted for a special system. Exceptions are applications, which access directly the hardware.


Motivation

SymbOS was originally started as an experiment to find out, how far it is possible to implement a multitasking based operating system with a windows GUI on an 8-bit computer of 1985. Also GEOS contributed to the motivation, but the structure and features of SymbOS aren't similiar to this system. The release in 2006 proved, that such a "mini windows" is possible on a 20 years old home computer only with quantitative limitations. SymbOS is one of the largest retro computing software projects of the last years. One of the goals of the project is to copy in combination with various hardware extensions a complete PC job.


Web links