Some naive questions about Epiphany assembly

Some naive questions about Epiphany assembly

Postby snim2 » Fri Jun 26, 2015 5:36 pm

Hi there,

I'm writing some simple assembler programs, and I have run across some problems with compiling and understanding the code in the Epiphany architecture reference manual. There are a few snippets of code that I couldn't get to work. These are:

- The LDR (POSTMODIFY) example on pp 103 fails to compile with the error ldrdpm.s:3: Error: unrecognised form of instruction 'ldrs r31,[r2],#1'
- The LDR (DISPLACEMENT-POSTMODIFY) example on pp 105 fails to compile with the error ldrpm.s:3: Error: unrecognised form of instruction 'ldrs r31,[r2],r1'
- The STR (POSTMODIFY) example on pp 121 fails to compile with the error str_pm.s:3: Error: unrecognised form of instruction 'strs r31,[r2],r1'
- The STR (DISPLACEMENT-POSTMODIFY) example on pp 122 fails to compile with the error str_dpm.s:3: Error: unrecognised form of instruction 'strs r31,[r2],#2


Any form of load or store that deals with shorts seems to result in a syntax error. Have I misunderstood something here?

Many thanks!

Sarah
snim2
 
Posts: 53
Joined: Mon Feb 03, 2014 5:02 pm

Re: Some naive questions about Epiphany assembly

Postby piotr5 » Sat Jun 27, 2015 7:59 am

have you tried ldrh instead of ldrs? at least in my manual s is not a valid value for <size> even though the examples suggest that.
piotr5
 
Posts: 230
Joined: Sun Dec 23, 2012 2:48 pm

Re: Some naive questions about Epiphany assembly

Postby snim2 » Sat Jun 27, 2015 12:12 pm

Works perfectly, many thanks!

Sarah
snim2
 
Posts: 53
Joined: Mon Feb 03, 2014 5:02 pm


Return to Assembly

Who is online

Users browsing this forum: No registered users and 8 guests

cron