beautypg.com

Sharp Z-336J User Manual

Page 110

background image

9-33

Chapter 9: Message transfers

9

Write to the system memory (COM = 54

(H)

)

[Format]

COM

= 54

(H)

SEG

= Segment (08

(H)

)

SADR

L, H

= System memory address (0000

(H)

to 047F

(H)

)

See page 9-21.

L

L, H

= Data length (number of bytes)

DATA

L to N

= Write data

[Function]
- Write the system memory data with the length shown by L, starting from SEG, SADR.

[Execution condition]
- Write enable mode

: Mode 2

- PC operation status

: Stopping

[Example]
- Set 81

(H)

, 00

(H)

, 00

(H)

, and 04

(H)

to system memory #204 to #207.

Ë

Command

Ë

Response

COM

SEG SADR

L

SADR

H

L

L

L

H

DATA

1

......

DATA

N

COM

RSLT

SEG

SADR

L

SADR

H

L

L

L

H

System memory

address

0084

(H)

000204

(8)

System memory

address

0084

(H)

000204

(8)

Ë

Command

Ë

Response

Value at

#204

Value at

#205

Value at

#206

Value at

#207

Data length

Data length

54

08

84

00

04

00

81

00

00

04

54

00

08

84

00

04

00

This manual is related to the following products: