Master 512 Technical Guide

Contents

Introduction

Purpose and Scope
Terminology

Acknowledgements

1: System Overview

Functional requirements
Host connection
Limitations
Memory Size
Screen Facilities
The Keyboard
Discs
The Printer
The RS232 Serial Port
The Mouse

2: The 80186 Processor

Processor Registers

General purpose registers
Segment Registers
Index and pointer registers

80186 instructions
Memory addressing - segmentation

Addressing techniques

The RAM - Memory size

Expansion

3: Firmware

Tube Initialization
The Bootstrap Loader
The 80186 Monitor
Monitor Commands

D    - Dump specified memory to screen
DOS  - Re boot DOS+
F    - Fill memory with a constant
GO   - Execute code starting at the specified address
MON  - Enter the 80186 monitor
S    - Show memory contents (for editing)
SR   - Search memory for a text string
TFER - Transfer between the 512's RAM and host's

Host Errors

4:The Tube

General Description
Tube Operations

Tube Protocol

The Tube Registers

Host MOS calls

OSWRCH
OSRDCH
OSCLI
OSBYTE
OSWORD
OSARGS
OSBGET
OSBPUT
OSFIND
OSFILE
OSGBPB

A Short Conversation

5: 6502.SYS functions

Functional Overview

Event Processing
Unknown OSWORDs
IRQ1V

OSWORD Functions

6845 Control
Screen Output
Block Transfers

WD1770/2 control

Hard disc control

Event Functions

Outstanding FDC operations
Keyboard Processing

Asynchronous Operations

IRQ1V functions

The User Port

6: DOS Plus MOS calls

Calling the MOS
MOS call types
MOS call definitions

OSFIND - INT 40h
OSGBPB - INT 41h
OSBPUT - INT 42h
OSBGET - INT 43h
OSARGS - INT 44h
OSFILE - INT 45h
OSRDCH - INT 46h
OSASCI - INT 47h
OSNEWL - INT 48h
OSWRCH - INT 49h
OSWORD - INT 4Ah
OSBYTE - INT 4Bh
OSCLI  - INT 4Ch

Coding of MOS Calls
Block Data Transfer

7: DOS Plus

A Short History
Elements of DOS Plus

The BDOS
The DOS emulator

The Console Command Processor

The XIOS

Executable files

BAT files
COM files

Spawning

EXE files
CMD files

RSX files

Sticky memory
Background tasks

Notes

8: DOS Plus Interrupts

Introduction

Internal hardware interrupts
External hardware interrupts
Software interrupts

The vector table

512 DOS emulation

INT 21h - The function dispatcher
INT 22h - The terminate handler
INT 23h - The CTRL-C handler
INT 24h - The critical error handler
INT 25h - Absolute disc read
INT 26h - Absolute disc write
INT 27h - Terminate and stay resident

BDOS calls - INT 224

BDOS call notes

Host Application Errors
80186 Error Messages

Escape Processing

9: DOS Plus Disc Structure

Introduction
Directories

Disc organization

Clusters

The File Allocation Table

12 and 16 bit FATs

10: The MOVE Utility

Introduction
Operation

Command Parameters and Syntax

<source filespec>
<dest dirspec>
<-fs>
[/option]

Single file moves
Multiple copies between DOS and MOS

Copying whole directories

DOS to MOS Directory Mapping

Copying Files Between MOS and MOS

Moving MOS directories

Wild Card File Specifications

Filename Character Translation

11: EDBIN - The binary editor

Introduction
Invoking EDBIN

EDBIN Command Syntax

EDBIN Commands

C(ompare) two areas of memory
D(ump) specified memory to screen
E(dit) an area of memory
F(ill) memory with a constant value
H(elp)
M(ove) a block of memory
Q(uit)
R(ead) a file into memory
S(earch) for a string
W(rite) a file to disc

EDBIN Error Messages

Appendices

A: Interrupt Summaries

The Interrupt Vectors
INT 21h Summary by Function Number

INT 21h Function Summary by Operation Type

INT E0h (BDOS) Summary by Function Number

INT E0h Function Summary by Operation Type

INT E0h Function 32h XIOS Subfunctions

B: DOS Interrupts - INT 20h to 27h

INT 20h - program terminate
INT 21h - general function dispatcher
INT 21h - functions 0 to 57h

INT 25h - Absolute disc read
INT 26h - absolute disc write
INT 27h - Terminate and Stay Resident

C: BDOS interrupts - INT E0h

Functions 0 to FFh

D: Example CP/M and DOS disc structures

E: Tube host code

Model B/B+ Source listing
Master 128 source listing

F: 6502.SYS code

6502.SYS source listing
OSWORD &FA source listing

G: Hardware Projects

Clock add on
Master 512 RAM expansion board
Building your own hard disc

H: Third Party Products

Beebug

512 articles

Dabs Press
Essential Software

Various utility packages
512K expansion board

Interactive Software Services

Fortran development package

Margolis & Co.

Communications Software

Permanent Memory Systems

Real Time Clock

Shibumi Soft

Problem Solver

Solidisk Technology Ltd.

PC+

Tull Computer Services

Mouse Driver

I: Glossary

J: The Programs Disc

K: Bibliography

L: Other Dabs Press Products

Index