100
Chapter 15. D10V Dependent Features
f1
Flag 1
c
Carry flag
15.2.5. Addressing Modes
as
understands the following addressing modes for the D10V.
Rn
in the following refers to any of the
numbered registers, but not the control registers.
Rn
Register direct
@Rn
Register indirect
@Rn+
Register indirect with post increment
@Rn
Register indirect with post decrement
@ SP
Register indirect with pre decrement
@(disp, Rn)
Register indirect with displacement
addr
PC relative address (for branch or rep).
#imm
Immediate data (the
#
is optional and ignored)
15.2.6. @WORD Modifier
Any symbol followed by
@word
will be replaced by the symbol's value shifted right by 2. This is used
in situations such as loading a register with the address of a function (or any other code fragment).
For example, if you want to load a register with the location of the function
main
then jump to that
function, you could do it as follows:
ldi
r2, main@word
jmp
r2
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved