beautypg.com

Zilog Z80195 User Manual

Page 20

background image

Z80185/195 D

EVELOPMENT

K

IT

U

SER

'

S

M

ANUAL

2-12

UM951800100

Z

ILOG

9.

Press ENTER at the command prompt to disassemble more of the instructions in DISTEST.

Note:

The file, which preceded, is not intended to be an executable program. Rather, it is the test

file for the disassembly command in this Debug Monitor. DISTEST includes all the instructions
that can be executed by the Z8018x family processors.

10.

Type another “L” at the command prompt, then type “TSTRST20” as the file name, followed
pressing ENTER.

11.

Again you should see the final count followed by the “ Intel hex lines—Done” and a Monitor
command prompt.

12.

Type “G” at the monitor command prompt. The screen should show the message “Go Starting
at Address:”. Press ENTER to start the TSTRST20 program.

Note:

Chapter 3 describes the I/O services that the Debug Monitor provides to downloaded

programs.

The first two lines displayed by TSTRST20 tests the ‘message’ service, and should appear as:
(message) Test RST 20 services (date)

A.

Enter a hex value up to 4 digits (in_hl)

B.

Enter a 1- to 4-digit hex value followed by pressing ENTER. This tests the ‘in_hl’ service. The

following display tests three services called ‘out_hl’, ‘out_a’, and ‘out_char’, and should appear
as follows:

16-bit value we saw (out_hl) :

XXXX

the terminating character was (out_a) : 0D
and the ‘any digits’ CC was (out_char) : NZ
Waiting for you (test_char) :

C.

Check that the value shown above as

XXXX

is the hex value you entered.

D.

Type any data character on the keyboard. This tests two services called ‘test_char’ and

‘in_char’.

After you type a character, the concluding messages from TSTRST20 should appear as
follows:

Your character was (in_char) : XX
A F B C D E H L A’ F’ B’ C’ D’ E’ H’ L’ I IX IY SP EI 75 00 03 00 01 0D 82 6A 00 00 00
00 00 00 00 00 00 0000 0000 0000 0 814C EF RST 28
Z80185>

13.

Check whether the value shown as

XX

in the preceding paragraph is the hex value of the

character entered. The second through fourth lines above indicate that the TSTRST20 program
ended with a Breakpoint instruction.

This completes the Initial Checkout/Sample Session.