To load the programm :

a) into MZ-800: Load the programm after switching on the MZ-800 into the
   IPL system (press key "C"). The programm starts automatically.
b) into MZ-700: Load the programm into the Monitor with LOAD-command
   (press key "L" ).

Failing programms, e.g. due to appearance of CHECK SUM ERROR, simply 
return it for a free replacement.

Other programms available for MZ-800/700 :

Pascal -Compiler, Basic-Compiler, Assembler, LISP, Machinelanguages, 
Textsystems, Chess, wide range of MC-games and commercial software.

                      BBG Software 
                      Schimmelmannstr. 90 
                      D-2070 Ahrensburg 
                      West-Germany 
                      Tel: 04102/43940

                    6502 SYSTEM description

This 6502 system is as well for the beginner as for advanced programm 
worthwhile to handle the 6502 machinelanguage. You can write and exe- 
cute 6502 programms. The 6502 system consist out of 2 parts: 
a) Disassembler
b) Interpreter

The start:
Load the programm directly into the monitor. Subsequently it will appear 
with a cleared screen the 6502 system. A flickering cursor is waiting for a 
request.

generally : You can jump to the Promptmodus back by pressing "SHIFT" & 
"BREAK". In general you can make a RESET and then press JC206 to start 
the 6502 system again. You can stop listings with "SHIFT" & "BREAK"

Problems while compiling the 6502 system
a) Hardware/Interrupt
   The 6502 Processor makes use of two Interrupts. It exists the NMI (Non 
   maskabel Interrupt) and IRQ. Both are using an adress, which is in an un- 
   accessable area. Thereby it is not possible to use either the Interrupt or
   the Hardwarepossibilities.
b) Decimalflag
   The 6502 Processor can use by setting a flag with $ED a decimalarith- 
   metic. Thereby you can only calculate number until 99, not as normal to 
   $FF. You can set this flag, but it will calculate like before.

Zeropage
The Zeropage lies in the area from $0000 to $00FF. This area is rather un- 
accessable here, so that is changed to $1200 to $12FF. Beware of this mat- 
ter of fact by using 3 byte commands.

Stack
The Stack lies normally in the margin from $0100 to $01FF. As the Zero- 
page it is transfered to an upper part of the memory, here to $1300. But it 
doesn't matter, because you use the Stack only by the commands JSR or 
RET.

Register
The registerset consists out of
1) PC Programmcounter       (16 bit register, not access able)
2) X  Register              (8 bit register)
3) Y  Register              (8 bit register)
4) A  Akkumulator           (8 bit register)
5) SR Status Register       (8 bit register)
6) SP Stackpointer          (8 bit register)

Accessable programm margin
The accessable programm margin lies between $2000 and ends at $BFFF.You 
have to write your parogrammstart at $2000.

You can use the following commands

WRITE-command
a) press "W"-key
b) a 16 bit hexadecimal number is exspected
c) hexadecimal numbers are exspected (your machineprogramm)

This command enables you to write a programm directly into the RAM, by 
hexadecimal numbers. The programm should be written at $2000 and further 
on, due to the start of the interpreter, that begin to emulate the programm
with adress $2000.
e.g. :
W 2000
2000 A0 00 C8 98 99 00 D0 4C
2008 02 20 00 00 00 00 00 00
This programm shows all characters of the MZ computer. If you press an ir- 
regular number, e.g. 1G, than 00 will be accept.

RUN-command 
a) press "G"

This effects, that the written programm at $2000 will emulate.

LOAD-command 
a) press "L"

A programm written in 6502 code (not from other computers like APPLE 
and so on) will be load in.

SAVE-command
a) press "S"
b) a 16 bit hexadecimal number is exspected 
c) the name is exspected (CR) .

You save the written programm with this command. Therefor you have to 
define the endadress of the programm, the start should be automatically 
$2000.

MEMORYDUMP-command
a) press "M"
b) a 16 bit hexadecimal number is exspected

Shows the contents of the memory in hexadecimal notation, with the start- 
adress defined by yourself.

REGISTERSET-command
a) press "C"
b) a number between 1 to 5 is exspected
c) a hexadecimal number (8-bit) is exspected

You can modify the 5 registers from the directmodus.

Cl = Akku-register
C2 = Y-Register 
C3 = X-Register 
C4 = Statusregister 
C5 = Stackpointer
e.g : C5 FF sets the Stackpointer to $FF.

REGISTERSHOW-command 
a) press "R"

All registers will be printed out.

DISASSEMBLE-command
a) press "D"
b) a 16 bit hexadecimal number is exspected 
c) press "CR"

After pressing "D" you will hear a tone, the screen will be cleared and the 
cursor is waiting for a 16 bit hexadecimal number. This is the startadress of
the disassembleprocedure. The disassembler shows the adress, their content 
and the Mnemoniccode.
To break the disassemblerlisting press "SHIFT" & "BREAK". To return to the 
Interpreter press "CR" (you will hear a tone).

SYSTEMROUTINES :

A new command (hexadecimal 80) is added to the normal 6502 commandset. 
This command effects the possibility to call a subroutine, either directly or
from the Implemented systemroutineset shown beneath :

$003E you will hear a tone
$0021 write header on tape
$0024 write programm on tape
$0027 load header from tape
$002A load programm from tape
$CA16 prints the content of the Akku, like $0012 in the MZ-700/800 moni- 
      tor.
$CA12 prints a SPACE, like $000C in the MZ-700/800 monitor
$CA0D prints the Akku as a 8-bit number from momentary cursorposition 
$CA35 Linefeed, like $0006 in the MZ-700/800 monitor
$CA25 request a character from the keyboard, which is stored in the Akku, 
      like $001B in the MZ-700/800 monitor
$CA43 defines the musictempo, with a value from 1 to 7 in the Akku, like 
      $0041 in the MZ-700/800 monitor
$CA4E changes a value in the Akku from ASCII- to Videocode
$CA48 a flickering cursor is exspecting a request from the keyboard. The 
      ASCII-value is stored in the Akku
$CA1B Getline. The adress to memorisation for the stored text has to be 
      stored at Zeropageadress $00 and $01. Like $0003 in the MZ-700/ 
      800 monitor
$CA39 A text will be print out in ASCII-format. The adress of this text has 
      to be stored at Zeropageadress $02 and $03. Like $0015 in the MZ- 
      700/800 monitor

$CA54 comprises two ASCII-characters, which stands at adress $XXXX to 
      an 8 bit hexadecimal number and stores it in the Akku. The adress 
      $XXXX must be stored at Zeropageadress $04 and $05.
$CA5F Plays music from the stored data, which are standing at adress 
      $XXXX.The adress $XXXX has to be stored at Zeropogeadress $06 
      and $07.


KILL-command 
a) press "K"

The memory of programming area will be cleared.


Copying, lending or broadcasting of this programm is specifically forbidden
All rights belong to BBG-Software
                     Schimmelmannstr. 90 
                    D-2070 Ahrensburg 
                    West Germany