beautypg.com

Reading program (com = 04 – Sharp Z-336J User Manual

Page 111

background image

9-34

Chapter 9: Message transfers

9

Reading program (COM = 04

(H)

)

[Format]

COM

= 04

(H)

PSEG

= Program segment (08

(H)

, 09

(H)

)

See page 9-20.

PADR

L,H

= Program address (0000

(H)

to 7DFF

(H)

)

See page 9-20.

L

L,H

= Data length (number of words)

DATA

1 to N

= Read data (2 bytes = one step)

[Function]
- Read a program with a length (number of words) shown by L, from address PSEG, PADR.
- Up to 512 words can be read at a time.

[Execution condition]
- Write enable mode

: Mode 0, mode 1 and mode 2

- PC operation status

: Stopping, operating

[Example]
- Read the contents of the program address 000000 to 000002 (file number 8).

Note: Inquiries concerning the bit configuration of programs cannot be accepted.

Ë

Command

Ë

Response

COM

L

L

......

DATA

N

DATA

1

COM

RSLT

PSEG

PSEG

PADR

L

PADR

L

PADR

H

PADR

H

L

H

L

L

L

H

Top program

address

Top program

address

Address

000000 contents

Address

000001 contents

Address

000002 contents

Ë

Command

Ë

Response

04

08

00

00

03

00

04

00

08

00

00

03

00

00

80

00

91

08

B8

Data length

Data length

This manual is related to the following products: