<div dir="ltr">Hi<div><br></div><div>I haven't checked the correctness of the new code, but I should mention that MSR is a no-op on ARM3 and earlier, so it would be good for the macro to be fully 26/32-bit neutral instead of just one or the other.</div><div><br></div><div>Are these used anywhere that could be used to verify the correctness in practice?</div><div><br></div><div>Regards</div><div>Cameron</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Fri, 17 Jul 2026 at 09:41, Jean-Michel via oslib-user <<a href="mailto:oslib-user@lists.compton.nu">oslib-user@lists.compton.nu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi<br>
<br>
I just noticed that the oslib.Hdr.macros was not up to date: there are 26b <br>
instructions!<br>
<br>
eg.<br>
MACRO<br>
$label SetN<br>
;C=0 V=0 Z=0 N=1<br>
$label CMN PC, #&80000000<br>
MEND<br>
<br>
idem for SetV; SetZ, SetC<br>
<br>
I hope the version below is correct:?<br>
; 32 bit PSR:<br>
; N|Z|C|V<br>
MACRO<br>
$label SetN<br>
;C=0 V=0 Z=0 N=1<br>
MSR CPSR_flg,#0x80000000 ; Set all the flags regardless<br>
; of their previous state<br>
; (does not affect any control bits)<br>
<br>
Thanks,<br>
-- <br>
Jean-Michel<br>
<br>
_______________________________________________<br>
oslib-user mailing list<br>
<a href="mailto:oslib-user@lists.compton.nu" target="_blank">oslib-user@lists.compton.nu</a><br>
<a href="https://lists.compton.nu/mailman/listinfo/oslib-user" rel="noreferrer" target="_blank">https://lists.compton.nu/mailman/listinfo/oslib-user</a><br>
</blockquote></div>