<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 11 Mar 2012, at 23:23, peter green wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">Umm, my copy of narmcon.pas contains the following.<br><br>NR_S0 = tregister($04060000);<br>NR_S1 = tregister($04060000);<br>NR_D0 = tregister($04070000);<br><br>I can see how the compiler can tell whether i'm assigning S0 or D0 but I don't see how it can tell whether I am assigning S0 or S1 when the constants I would use to make the assignment are defined to have the exact same value.<br></span></span></blockquote></div><br><div>You can give S1, S3, S5 etc different super register numbers (> $1F, so they don't conflict with the super register numbers for D0..D31). As long as you don't change the code in tarmcgarm/Tthumb2cgarm.init_register_allocators() to explicitly tell the register allocator that it can use these "extra" registers, it will won't try to allocate them. Make sure to adjust first_mm_imreg in arm/cpubase.pas afterwards (add $10 to it, since the numbers $20..$3F will now be used by S1, S3 etc).</div><div><br></div><div><br></div><div>Jonas</div></body></html>