Mz3500 – Sharp MZ-3500 User Manual

Page 45

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

Advertising
background image

MZ3500

[Explanation]

C - COMMAND CODE 1 To A

P_

parameter

»

Display dot, specify the display address of the VRAM and

the dot address. Set the command code of the SET mode

(set

mode

plus

CLEAR,

REPLACE,

and

COMPLEMENT

modes

using

"WRITE",

and

specify

to

start

with

"VECTE". Dot address is structured on the screen in the

following manner.

Address 0001

XI

dAD= 0 1

2 3 t 5 6

7 8 9 10 11 12 13 14 15

[Dot display program example-1]

LD

HL , 5 0 0 0 H '

L D

( H L ) . 4 9 H

5000 ^ 49 H

INC

L

5001 — 01 H

CSRWdata

LD

( H L ) , 0 1 H

5002 ^ 00 H

I NC

L

5003 — 30 H

LD

( H L ) , О О Н

5004 23 H } WRITE data

1 NC

L

5005 — 6CH } VECTE data

LD

( H L ) З О Н

I N C

L

L D

( H L ) , 2 3 H

I N C

L

L D

( H L ) , 6 C H -

1

L D

1

C , 6 0 H

C — 60H (port address during graphic draw)

LD

В , 4H

В — Byte size CSRW data

LD

HL , 5 0 0 0 H

1

HL — Top address of the CSRW data

CALL

1

GDC

1

Command, parameter of CSRW — GDC

LD

1

C , 60H

LD

В . IH

В — Byte size of the WRITE data

LD

HL . 5 0 0 4 H

1

; HL — Top address of the W R I T E data

C A L L

1

G D C

1

Command, parameter

of WRITE - GDC

LD

1

C , 60H

LD

в . IH

; В — Byte number of the VECTE data

LD

HL , 5 0 0 5 H

1

; H L — Top address of the VECTE data

CALL

1

GDC

; Command, parameter of the VECTE — GDC

SO

Advertising