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".
Содержание S5U1C17001C
Страница 6: ......
Страница 17: ...1 General S5U1C17001C Manual 1 General ...
Страница 18: ......
Страница 21: ...1 2 Install S5U1C17001C Manual 2 Installation ...
Страница 22: ......
Страница 29: ...3 SoftDev S5U1C17001C Manual 3 Software Development Procedures ...
Страница 30: ......
Страница 103: ...4 SrcFiles S5U1C17001C Manual 4 Source files ...
Страница 104: ......
Страница 121: ...5 IDE S5U1C17001C Manual 5 gnU17 iDE ...
Страница 122: ......
Страница 365: ...6 Compiler S5U1C17001C Manual 6 C Compiler ...
Страница 366: ......
Страница 385: ...7 Library S5U1C17001C Manual 7 library ...
Страница 386: ......
Страница 404: ...7 18 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 7 liBrary THIS PAGE IS BLANK ...
Страница 405: ...8 Assemblr S5U1C17001C Manual 8 assembler ...
Страница 406: ......
Страница 438: ...8 32 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 8 aSSEMBlEr THIS PAGE IS BLANK ...
Страница 439: ...9 Linker S5U1C17001C Manual 9 linker ...
Страница 440: ......
Страница 448: ...9 8 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 9 linkEr THIS PAGE IS BLANK ...
Страница 449: ...10 Debugger S5U1C17001C Manual 10 Debugger ...
Страница 450: ......
Страница 625: ...10 174 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 10 DEBUggEr THIS PAGE IS BLANK ...
Страница 626: ...11 Tools S5U1C17001C Manual 11 Other Tools ...
Страница 627: ......
Страница 695: ...11 68 EPSON S5U1C17001C Manual C Compiler Package for S1C17 Family Ver 1 5 0 11 OTHEr TOOlS THIS PAGE IS BLANK ...
Страница 696: ...S1C17 Family C Compiler Package Quick Reference Reference ...