S5U1C17001C ManUal
EPSOn
4-11
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
4 SOUrCE filES
4
SrcFiles
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
xadc
xsub
xsub.a
xsbc
x c m p
xcmp.a
xcmc
sadd
sadd.a
sadc
ssub
ssub.a
ssbc
s c m p
scmp.a
scmc
xand
xoor
xxor
sand
soor
sxor
xld
xld.a
xld.b
xld.ub
sld
sld.a
sld.b
sld.ub
xjpr
xjpr.d
xjpa
xjpa.d
xjreq
xjreq.d
x j r n e
xjrne.d
xjrgt
xjrgt.d
xjrge
xjrge.d
xjrlt
xjrlt.d
xjrle
xjrle.d
xjrugt
xjrugt.d xjruge
xjruge.d x j r u l t
xjrult.d xjrule
xjrule.d xcall
xcall.d
xcalla
xcalla.d
sjpr
sjpr.d
sjpa
sjpa.d
sjreq
sjreq.d
s j r n e
sjrne.d
sjrgt
sjrgt.d
sjrge
sjrge.d
sjrlt
sjrlt.d
sjrle
sjrle.d
sjrugt
sjrugt.d sjruge
sjruge.d s j r u l t
sjrult.d sjrule
sjrule.d scall
scall.d
scalla
scalla.d
xld.cw
xld.ca
xld.cf
sld.cw
sld.ca
sld.cf
Method for using extended instructions
The value or symbol for the expanded immediate size can be written directly in the operand.
Examples:
xcall LABEL
; ext LABEL[23:10]
; call LABEL[9:0]
sld.a %r1,imm16
; ext imm16[15:7]
; ld.a %r1,imm16[6:0]
xld.a %r1,imm24
; ext imm24[23:20]
; ext imm24[19:7]
; ld.a %r1,imm24[6:0]
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, 0x10
; R0
←
0x10
xjpa LABEL + 5
;
Jumps to address LABEL + 5.
For details about the extended instructions that include operands, refer to Section 8.6, "Extended Instructions".
Summary of Contents for S5U1C17001C
Page 6: ......
Page 17: ...1 General S5U1C17001C Manual 1 General ...
Page 18: ......
Page 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Page 22: ......
Page 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Page 30: ......
Page 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Page 104: ......
Page 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Page 122: ......
Page 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Page 366: ......
Page 385: ...7 Library S5U1C17001C Manual 7 library ...
Page 386: ......
Page 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Page 406: ......
Page 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Page 440: ......
Page 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Page 450: ......
Page 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Page 627: ......
Page 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...