beautypg.com

Zilog Z8F0130 User Manual

Page 64

background image

eZ8

CPU Core

User Manual

UM012820-0810

eZ8

CPU Instruction Set Summary

49

binary format must be followed if you prefer manual program coding or
intend to implement their own assembler.

Example 1

If the contents of Registers

43h

and

08h

are added and the result is stored

in

43h

, the assembly syntax and resulting object code is:

Example 2

In general, when an instruction format requires an 8-bit register address,
that address can specify any register location in the range 0–255 or, using
Escaped Mode Addressing, a working register R0–R15. If the contents of
Register 43h and Working Register R8 are added and the result is stored
in 43h, the assembly syntax and resulting object code is:

Refer to the Zilog Product Specification specific to your Z8 Encore!
device to determine the exact register file range available. The register
file size varies, depending on the device type.

Table 8. Assembly Language Syntax Example 1

Assembly Language Code

ADD

43h,

08h

(ADD dst, src)

Object Code

04

08

43

(OPC src, dst)

Table 9. Assembly Language Syntax Example 2

Assembly Language Code

ADD

43h,

R8

(ADD dst, src)

Object Code

04

E8

43

(OPC src, dst)