Extended Instructions - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

4.3.3 Extended instructions

The extended instructions are such that the contents which normally are written in multiple instructions including
the ext instruction can be written in one instruction. Extended instructions are expanded into the smallest possible
basic instructions by the as assembler.
Types of extended instructions
xadd
xadd.a
xcmp.a
xcmc
sadd
sadd.a
scmp.a
scmc
xand
xoor
sand
soor
xld
xld.a
sld
sld.a
xjpr
xjpr.d
xjrne.d
xjrgt
xjrle
xjrle.d
xjrult.d
xjrule
sjpr
sjpr.d
sjrne.d
sjrgt
sjrle
sjrle.d
sjrult.d
sjrule
xld.cw
xld.ca
sld.cw
sld.ca
Method for using extended instructions
The value or symbol for the expanded immediate size can be written directly in the operand.
Examples: xcall
LABEL
sld.a
%r1,imm16
xld.a
%r1,imm24
In addition to the immediate expansion function of the basic instructions, a special operand specification like
the one shown below is accepted for some instructions.
Examples: xld.a
%r0,symbol + 0x10
xjpa
LABEL + 5
For details about the extended instructions that include operands, refer to Section 8.6, "Extended Instructions".
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
xadc
xsub
sadc
ssub
xxor
sxor
xld.b
xld.ub
sld.b
sld.ub
xjpa
xjpa.d
xjrgt.d
xjrge
xjrugt
xjrugt.d
xjrule.d
xcall
sjpa
sjpa.d
sjrgt.d
sjrge
sjrugt
sjrugt.d
sjrule.d
scall
xld.cf
sld.cf
; ext
LABEL[23:10]
; call
LABEL[9:0]
; ext
imm16[15:7]
; ld.a
%r1,imm16[6:0]
; ext
imm24[23:20]
; ext
imm24[19:7]
; ld.a
%r1,imm24[6:0]
EPSOn
xsub.a
xsbc
ssub.a
ssbc
xjreq
xjreq.d
xjrge.d
xjrlt
xjruge
xjruge.d
xcall.d
xcalla
sjreq
sjreq.d
sjrge.d
sjrlt
sjruge
sjruge.d
scall.d
scalla
; R0 ← symbol + 0x10
; Jumps to address LABEL + 5.
4 SOUrCE filES
4
SrcFiles
x c m p
s c m p
x j r n e
x j r l t . d
x j r u l t
xcalla.d
s j r n e
s j r l t . d
s j r u l t
scalla.d
4-11

Advertisement

Table of Contents
loading

Table of Contents