<?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>Define variables in assembly file</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/39114/define-variables-in-assembly-file</link><description> 
How do define short, byte and integer variables in the startup.s
file? 

 
what are names of this directives? 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Define variables in assembly file</title><link>https://community.arm.com/thread/78954?ContentTypeID=1</link><pubDate>Sat, 15 Jan 2011 12:45:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b16f80ae-1bd9-40c0-920e-3315e5aa28fa</guid><dc:creator>Bulent Unalmis</dc:creator><description>&lt;p&gt;&lt;p&gt;
I solved my problem.&lt;/p&gt;

&lt;p&gt;
For example my asm functions use my_var1 in the startup.s&lt;/p&gt;

&lt;p&gt;
export my_var1&lt;/p&gt;

&lt;p&gt;
AREA HEAP, NOINIT, READWRITE, ALIGN=3&lt;/p&gt;

&lt;p&gt;
my_var1 DCB 0x00&lt;/p&gt;

&lt;p&gt;
__heap_base&lt;/p&gt;

&lt;p&gt;
HeapMem SPACE Heap&lt;br /&gt;
__heap_limit&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Define variables in assembly file</title><link>https://community.arm.com/thread/66183?ContentTypeID=1</link><pubDate>Sat, 15 Jan 2011 03:50:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4ccd64af-9b57-4904-9fcf-1abe6249e8ed</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
I guess this is the same topic: &lt;a href="http://www.keil.com/forum/18242"&gt;http://www.keil.com/forum/18242&lt;/a&gt;
&lt;b&gt;?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;
Did you try: &lt;a href="http://www.keil.com/support/man/"&gt;http://www.keil.com/support/man/&lt;/a&gt;
&lt;b&gt;?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;
specifically: &lt;a href="http://www.keil.com/support/man/docs/armasm/"&gt;http://www.keil.com/support/man/docs/armasm/&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>