Reference
Opcode
xld.a
sadd
sadc
ssub
ssbc
sadd.a
ssub.a
xadd
xadc
xsub
xsbc
Operand
%rd, imm24
Example) xld.a %rd, imm24
%sp, imm24
Example) xld.a %sp, imm24
%rd, symbol
±
imm24
Example) xld.a %rd, imm24
%sp, symbol
±
imm24
Example) xld.a %sp, symbol-imm24
%rd, imm16
Example) sadd %rd, imm16
%rd, imm20
Example) ssub.a %rd, imm20
%sp, imm20
Example) sadd.a %sp, imm20
%rd, imm16
Example) xadc %rd, imm16
Extended instruction
Expansion format
Condition 1
imm24
≤
0x7f
ld.a
%rd, imm24(6:0)
imm24
≤
0x7f
ld.a
%sp, imm24(6:0)
Unconditional
ext
(imm24)(23:20)
ext
(imm24)(19:7)
ld.a
%rd, (imm24)(6:0)
Unconditional
ext
(symbol-imm24)(23:20)
ext
(symbol-imm24)(19:7)
ld.a
%sp, (symbol-imm24)(6:0)
imm16
≤
0x7f
add
%rd, imm16(6:0)
imm20
≤
0x7f
sub.a %rd, imm20(6:0)
imm20
≤
0x7f
add.a %sp, imm20(6:0)
imm16
≤
0x7f
adc
%rd, imm16(6:0)
Condition 2
0x7f<imm24
≤
0xfffff
ext
imm24(19:7)
ld.a
%rd, imm24(6:0)
0x7f<imm24
≤
0xfffff
ext
imm24(19:7)
ld.a
%sp, imm24(6:0)
–
–
0x7f<imm16
ext
imm16(15:7)
add
%rd, imm16(6:0)
0x7f<imm20
ext
imm20(19:7)
sub.a %rd, imm20(6:0)
0x7f<imm20
ext
imm20(19:7)
add.a %sp, imm20(6:0)
0x7f<imm16
ext
imm16(15:7)
adc
%rd, imm16(6:0)
Condition 3
0xfffff<imm24
ext
imm24(23:20)
ext
imm24(19:7)
ld.a
%rd, imm24(6:0)
0xfffff<imm24
ext
imm24(23:20)
ext
imm24(19:7)
ld.a
%sp, imm24(6:0)
–
–
–
–
–
–
Expansion Format of Extended Instructions (3)
Assembly Programming
Remarks
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 ...