Zero page (CP/M)

Zero page (CP/M)

The Zero Page (or Base Page) is a data structure used in CP/M systems for programs to communicate with the operating system. In 8-bit CP/M versions it is located in the first 256 bytes of memory, hence its name.

The equivalent structure in MS-DOS is the Program Segment Prefix.

In 8-bit CP/M, it has the following structure:

Offset Size Contents -------------------------------------------------------------------- 00-02 Code Exit program (jumps to the BIOS, and is also used to find BIOS entry points). 03 Byte I/O byte, an optional feature allowing device reassignment in CP/M 2. 04 Byte Current command processor drive (low 4 bits) and user number (high 4 bits). 05-07 Code Jump to CP/M BDOS entry - main system call entry point. This is also the address of the first byte of memory not usable by the program. 08-3A Code 8080 restart/interrupt vectors. 3B-4F Bytes Reserved 50 Byte The drive from which the program was loaded (CP/M 3) 51-52 Word Address of the password for the first FCB (CP/M 3) 53 Byte Length of the password for the first FCB (CP/M 3) 54-55 Word Address of the password for the second FCB (CP/M 3) 56 Byte Length of the password for the second FCB (CP/M 3) 57-5B Bytes Reserved 5C-6B Default FCB 1 6C-7F Default FCB 2 (overwritten if FCB 1 is opened) 80 Byte Number of characters in command tail. 81-FF Bytes Command tail (everything after the program name).

In CP/M-86, the structure is:

Offset Size Contents -------------------------------------------------------------------- 00-02 Bytes Length of code group in bytes 03-04 Word Segment address of code group 05 Byte 8080 model flag - set if program only has one segment 06-08 Bytes Length of data group in bytes 09-0A Word Segment address of data group 0B Byte Reserved 0C-11 Descriptor for extra group - same format as for data 12-17 Descriptor for stack group 18-1D Descriptor for X1 group 1E-23 Descriptor for X2 group 24-29 Descriptor for X3 group 2A-2F Descriptor for X4 group 30-4F Bytes Reserved 50 Byte The drive from which the program was loaded (CP/M 3) 51-52 Word Address of the password for the first FCB (CP/M 3) 53 Byte Length of the password for the first FCB (CP/M 3) 54-55 Word Address of the password for the second FCB (CP/M 3) 56 Byte Length of the password for the second FCB (CP/M 3) 57-5B Bytes Reserved 5C-6B Default FCB 1 6C-7F Default FCB 2 (overwritten if FCB 1 is opened) 80 Byte Number of characters in command tail. 81-FF Bytes Command tail (everything after the program name).

References

[http://www.cpm.z80.de/drilib.html Tim Olmstead Memorial CP/M library] - in particular, the [http://www.cpm.z80.de/manuals/cpm3-pgr.pdf CP/M 3 Programmers' Manual] and the [http://gaby.s100-manuals.com/DRI/CPM-86_System_Guide.pdf CP/M-86 System Guide] .


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Zero Page — Zero Page,   ein Bereich von 256 Byte Umfang, der sich bei verschiedenen Mikroprozessoren, z. B. 6502 oder 6510, am Anfang des Adressbereichs befand. Dieser Bereich konnte von dem Prozessor besonders schnell angesprochen werden und wurde daher… …   Universal-Lexikon

  • Zero page — The zero page is the series of memory addresses at the absolute beginning of a computer s address space; that is, the page whose starting address is zero. The size of a page depends on the context, and the significance of zero page memory versus… …   Wikipedia

  • Zéro — Pour les articles homonymes, voir Zéro (homonymie). Le chiffre zéro (de l’italien zero, dérivé de l’arabe sifr, d’abord transcrit zefiro en italien) est un symbole marquant une position vide dans l’écriture des nombres en notation positionnelle.… …   Wikipédia en Français

  • Zéro (homonymie) — Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom. Sur les autres projets Wikimedia : « Zéro (homonymie) », sur le Wiktionnaire (dictionnaire universel) Sommaire …   Wikipédia en Français

  • Zero — Zéro (homonymie) Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom …   Wikipédia en Français

  • Zero (homonymie) — Zéro (homonymie) Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom …   Wikipédia en Français

  • Zero-knowledge web application — Zero knowledge web applications are a special kind of online services that were defined and introduced by the development team at [http://www.clipperz.com Clipperz] in 2006. They dubbed their online password manager the first zero knowledge web… …   Wikipedia

  • Zéro absolu — Cet article concerne une notion de physique. Pour la bande dessinée, voir Zéro absolu (bande dessinée). Pour les articles homonymes, voir Zéro (homonymie) et Absolu. Le zéro absolu est la température la plus basse qui puisse exister dans l… …   Wikipédia en Français

  • Zero Halliburton — was originally a metal fabrication company called Zierold Company, which in 1946 changed its name to Zero Corporation. In 1952 Zero, which until then had no relation to Halliburton, bought the luggage division of Halliburton, the Texas oilfield… …   Wikipedia

  • Zero d'Akutan — Pour les articles homonymes, voir Akutan. Le Zero d Akutan inspecté par des militaires sur l île Akutan le 11 juillet  …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”