<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>building a very simple assembly program.. killing me.</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/20273/building-a-very-simple-assembly-program-killing-me</link><description> 
hello all, 

 
I am trying to get my arm7tdmi.. better yet an at91sam7x256
processor to do the simplist of assembly programs.. I have the
program done and it should be flawless.. 

 
write the sum of cubes from 1 to 10 to a register.. 

 
AREA cubesum</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/98979?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2007 13:16:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3617941a-5215-4118-8cdf-df9c866884bb</guid><dc:creator>Jonny Doin</dc:creator><description>&lt;p&gt;&lt;p&gt;
Do you have the ARM RVCT Assembler guide? Read the directives
reference under ENTRY.&lt;/p&gt;

&lt;p&gt;
The ENTRY directive tells the assembler to generate correct object
file entry point, that will be used by the linker at link time to
create an entry point to the image.&lt;/p&gt;

&lt;p&gt;
The ENTRY directive is *not* required for the assembler to create
the object file, i.e., if you leave it out, the linker will only
issue a warning.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/74873?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2007 13:02:28 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8262bc88-4ebf-46f5-bfc3-7f65d12dafd9</guid><dc:creator>justin z</dc:creator><description>&lt;p&gt;&lt;p&gt;
what is the proper syntax for adding an enrty point? and in what
file do i declare it? I the other errors worked out but I get a
warning about the entry point still&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/74870?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2007 20:30:57 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c2ab7bb6-5d8d-487a-ad0d-f4b64b62a926</guid><dc:creator>Jonny Doin</dc:creator><description>&lt;p&gt;&lt;p&gt;
Just another thing, to think of after you get the white space and
line syntax right: where does the program flow go when R1 equals
0x0000000b ?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/47883?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2007 19:56:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:757ff56f-6068-45d3-8269-ce21ac591829</guid><dc:creator>Jonny Doin</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;I am trying to [...] do the simplist of assembly programs.. I
have the program done and &lt;b&gt;it should be flawless&lt;/b&gt;&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Only if you supply correct syntax.&lt;/p&gt;

&lt;p&gt;
1) Assemblers are VERY sensitive to formatting. A directive such
as AREA needs whitespace (space or TABs) preceding it. NEVER start a
assembler line at column 0;&lt;/p&gt;

&lt;p&gt;
2) The AREA directive (RVCT 3.x) does not have a section attribute
&lt;b&gt;AT&lt;/b&gt;, and even if it had, code should not be located at absolute
position 0x00000000, since this is the address of the default
interrupt vectors table. You should load the PC with your routine
address at 0x00000000;&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;and dont you need to declare the asminit &lt;b&gt;so it knows it&amp;#39;s
using assembly&lt;/b&gt;&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&amp;quot;?ASM?INIT&amp;quot; has no special meaning whatsoever to the assembler.
You could just called your entry point
&amp;quot;SUPERCALIFRAGILISTICEXPIALIDOCIOUS&amp;quot;. The way the assembler knows you
are &amp;#39;using assembly&amp;#39; is a correct line syntax, with proper column
spacing, and proper assembler directives.&lt;/p&gt;

&lt;p&gt;
Read the MANUAL Real View Compilation Tools Assembler Guide,
especially section 2.3 and section 7.8.2&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/98976?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2007 11:45:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3eb5cc9b-739c-4c94-b809-cff18570a7e2</guid><dc:creator>Per Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
I assume that he mean: how are you indenting (or not indenting)
your code?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/98978?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2007 11:42:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bad95057-e669-423a-8ad7-ac4bb2f9a67d</guid><dc:creator>Per Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, I&amp;#39;m aware that you are using the standard startup file, but
my implied question was:&lt;/p&gt;

&lt;p&gt;
Have you looked at exactly _how_ the standard startup file made
it&amp;#39;s declarations, since the standard startup file _is_ possible to
get through the assembler without any errors.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/74876?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2007 11:10:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bc40cde7-6ea5-4536-a2d1-e007249191e8</guid><dc:creator>justin z</dc:creator><description>&lt;p&gt;&lt;p&gt;
I don&amp;#39;t understand what you&amp;#39;re asking. what do you mean give a tab
for all keywords?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/74875?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2007 11:09:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:2e866a53-ac3f-4547-8890-a206565ae14a</guid><dc:creator>justin z</dc:creator><description>&lt;p&gt;&lt;p&gt;
as in my original post.. &amp;quot;&lt;b&gt;oh and I&amp;#39;m using the stock startup
file for that specific processor.&lt;/b&gt;&amp;quot;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/50472?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2007 08:02:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:562d2cdd-9062-4a58-b3c3-e5465d35fea7</guid><dc:creator>Suvidh Kankariya</dc:creator><description>&lt;p&gt;&lt;p&gt;
Give a tab for all keywords.&lt;/p&gt;

&lt;p&gt;
Suvidh&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: building a very simple assembly program.. killing me.</title><link>https://community.arm.com/thread/47884?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2007 01:33:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b05cb308-0925-49fa-b7fc-280c2efb8188</guid><dc:creator>Per Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Did you look at the sample startup files supplied with the Keil
tools?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>