<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://www.simswiki.info/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://simswiki.info/index.php?action=history&amp;feed=atom&amp;title=Sims_2_Const</id>
		<title>Sims 2 Const - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://simswiki.info/index.php?action=history&amp;feed=atom&amp;title=Sims_2_Const"/>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=Sims_2_Const&amp;action=history"/>
		<updated>2026-09-15T12:29:58Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://simswiki.info/index.php?title=Sims_2_Const&amp;diff=51176&amp;oldid=prev</id>
		<title>MogHughson: Created page with &quot;There are many uses for constants, see BCON for more details.  Referring to constants when you don't have a wizard to make life easy is a little weird.  In a wizard you will ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://simswiki.info/index.php?title=Sims_2_Const&amp;diff=51176&amp;oldid=prev"/>
				<updated>2011-07-04T20:42:15Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;There are many uses for constants, see &lt;a href=&quot;/wiki.php?title=BCON&quot; title=&quot;BCON&quot;&gt;BCON&lt;/a&gt; for more details.  Referring to constants when you don&amp;#039;t have a wizard to make life easy is a little weird.  In a wizard you will ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;There are many uses for constants, see [[BCON]] for more details.&lt;br /&gt;
&lt;br /&gt;
Referring to constants when you don't have a wizard to make life easy is a little weird.&lt;br /&gt;
&lt;br /&gt;
In a wizard you will see a constant as:&lt;br /&gt;
&lt;br /&gt;
 Const 0x1003:0x05&lt;br /&gt;
&lt;br /&gt;
which means the [[BCON]] resource with instance number 0x1003, and then the entry within it that is number 0x05 (remembering that the first line is numbered 0x00).&lt;br /&gt;
&lt;br /&gt;
Without a wizard, you will likely have three operands that allow you to refer to a constant, one that says it's a constant by containing the value '1A' and then two other operands which give you the [[Byte Order|low and high order byte]] respectively. What to put in these two operands?&lt;br /&gt;
&lt;br /&gt;
Let's break the constant into parts:-&lt;br /&gt;
&lt;br /&gt;
 Const 0x10.....03:.....0x05&lt;br /&gt;
&lt;br /&gt;
It is assumed that the constant being referred to is always going to start with 0x10..., so we can actually disregard that part. The second part is represented by, in the first of the two operands:&lt;br /&gt;
&lt;br /&gt;
  '80' - odd number&lt;br /&gt;
  '00' - even number&lt;br /&gt;
&lt;br /&gt;
and in the second&lt;br /&gt;
&lt;br /&gt;
  '00' - for 0x1000 and 0x1001&lt;br /&gt;
  '01' - for 0x1002 and 0x1003&lt;br /&gt;
  '02' - for 0x1004 and 0x1005&lt;br /&gt;
&lt;br /&gt;
and so on.&lt;br /&gt;
&lt;br /&gt;
The third part is taken as it stands and added to the first operand.&lt;br /&gt;
&lt;br /&gt;
So to get&lt;br /&gt;
  &lt;br /&gt;
 Const 0x1003:0x05&lt;br /&gt;
&lt;br /&gt;
you have the first operand containing '80' + '05' = '85' and the second operand containing '01'&lt;/div&gt;</summary>
		<author><name>MogHughson</name></author>	</entry>

	</feed>