<?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>Compare a nibble to a number</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/32823/compare-a-nibble-to-a-number</link><description> 
Hi, I would like to get some help on a simple program. I wanted to
compare the most significant nibble from P2(so P2.4 to P2.7) with a
number using CJNE, but I don&amp;#39;t know how to select that number from
the nibble to introduce it in the CJNE 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Compare a nibble to a number</title><link>https://community.arm.com/thread/129058?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2015 02:35:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bcd03364-8d86-4001-9a82-48c752942693</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
But &amp;quot;mask with&amp;quot; isn&amp;#39;t really &amp;quot;the full answer&amp;quot;. It most definitely
takes a visit to the processor instruction set documentation to get a
usable solution.&lt;/p&gt;

&lt;p&gt;
The important thing is that there are normally many different ways
something can be solved. Solving and handing in one specific solution
would not make a student see/realize other choices.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare a nibble to a number</title><link>https://community.arm.com/thread/117873?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2015 00:06:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:bf1f03dd-4efa-4581-8f6c-dae6be9c7acc</guid><dc:creator>K Keeth</dc:creator><description>&lt;p&gt;&lt;p&gt;
And don&amp;#39;t hesitate to ask all your other assignment questions
here.&lt;/p&gt;

&lt;p&gt;
There will always be someone available to provide the full
answer.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare a nibble to a number</title><link>https://community.arm.com/thread/108478?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2015 17:02:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9891274e-374c-4e38-a708-61c63e6a54f4</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Don&amp;#39;t forget that instead of shifting down 4 steps, you can also
mask your nibble and do a SWAP to exchange place of low/high nibble
of A.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare a nibble to a number</title><link>https://community.arm.com/thread/82845?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2015 16:23:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:40a52471-b77d-4892-91a5-3a61ae79cf2f</guid><dc:creator>ricardo dinis</dc:creator><description>&lt;p&gt;&lt;p&gt;
oh, right, I don&amp;#39;t how I didn&amp;#39;t think of that... been tired
lately. But thanks!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compare a nibble to a number</title><link>https://community.arm.com/thread/69384?ContentTypeID=1</link><pubDate>Sun, 11 Oct 2015 16:21:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:58b853ee-3843-4c71-a23c-4059775d8879</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
How about shifting it down 4 steps?&lt;/p&gt;

&lt;p&gt;
Or mask with 0xf0 and compare with a 16 times larger value?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>