asm for getts

Technical questions regarding the XTC tools and programming with XMOS.
User avatar
skoe
Experienced Member
Posts: 94
Joined: Tue Apr 27, 2010 10:55 pm
Contact:

Post by skoe »

John,

It's the "XS1 Assembly Language Manual" (xas99.pdf), chapter 8. There's one notation in upper case and one in lower case. I use the latter one, refer to the second coloumn "Mnemonic" and "Operands".

It's all well documented, but I know, there's so much to read at the beginning :)


User avatar
paul
XCore Addict
Posts: 169
Joined: Fri Jan 08, 2010 12:13 am
Contact:

Post by paul »

Sometimes it can be helpful to get a dump from the compiler and see what it does. This can be done using the following command:

Code: Select all

xobjdump -d $(TARGET) > $(TARGET).dump
So for getts you would get:

Code: Select all

getts (2r)      r7, res[r0]
Just ignore the stuff in the parenthesis (it is the instruction description, i.e. it has 2 register operands)
Paul

On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
Post Reply