Specifications
5 Simulation
S1C33 ASIC DESIGN GUIDE
EPSON
77
EMBEDDED ARRAY S1X50000 SERIES
(2) Limitations on registers, values, and labels
• Character set
There are 3 delimiters: space, tab and comma.
If the first character is:
. ; Pseudoinstruction
0x[0-9a-fA-F]* ;Number
a-z,A-Z,_ ; Label or instruction
; ; Comment
A single line can hold any one of label definition (label:), instruction, or
pseudoinstruction.
Only lower case letters may be used in instruction and register names.
Both upper and lower case may be used in labels.
%rs, %rd, %ra, %rb : General-purpose registers(%r0, %r1, %r2 --
%r15)
%ss, %sd, %sp : Special-purpose registers (%sp, %psr, %alr,
%ahr)
immediate values : 0x0-0xffffffff (hexadecimal only)
LABEL@rh : bit22-31[12:3] For jp,call,jrcc instructions
LABEL@rm : bit9-21 For jp,call,jrcc instructions
LABEL@rl : bit1-8(sign9[8:1]) For jp,call,jrcc
instructions
(3) Allowed pseudoinstructions
.org imm32 : Address specification, only for increasing values of the
address
.half imm16 : 16-bit data
(4) Limitations
1) Only a single source file can be assembled.
2) Labels cannot be used with instructions other than jp,call and jrcc.
3) Of the extended instructions, only the 32-bit immediate value load instructions can be
used.
Example: xld.w %r0,0xabcd1234
4) Jump instructions that require an immediate value extended instruction must be coded
as following order. (A syntax error results if this is not obeyed.)
extLABEL@rh extLABEL@rm
extLABEL@rm -or- jp LABEL@rl
jpLABEL@rl