Next: D10V-Addressing, Previous: D10V-Chars, Up: D10V-Syntax [Contents][Index]
You can use the predefined symbols ‘r0’ through ‘r15’ to refer to the D10V registers. You can also use ‘sp’ as an alias for ‘r15’. The accumulators are ‘a0’ and ‘a1’. There are special register-pair names that may optionally be used in opcodes that require even-numbered registers. Register names are not case sensitive.
Register Pairs
r0-r1r2-r3r4-r5r6-r7r8-r9r10-r11r12-r13r14-r15The D10V also has predefined symbols for these control registers and status bits:
pswProcessor Status Word
bpswBackup Processor Status Word
pcProgram Counter
bpcBackup Program Counter
rpt_cRepeat Count
rpt_sRepeat Start address
rpt_eRepeat End address
mod_sModulo Start address
mod_eModulo End address
ibaInstruction Break Address
f0Flag 0
f1Flag 1
cCarry flag