[Rpcemu] PATCH: Implement OS_Reset "0x0ff"

Theo Markettos theo at markettos.org.uk
Wed Oct 31 05:15:23 PDT 2018


On Wed, Oct 31, 2018 at 11:49:00AM +0000, Ralph Corderoy wrote:
> Hi Reuben,
> 
> Couple of minor comments.
> 
> > +	/* Intercept OS_Reset to check for turning off
> > +	   https://www.riscosopen.org/wiki/documentation/show/OS_Reset
> > +	*/
> > +	if (swinum == SWI_OS_Reset) {
> > +		if (arm.reg[0] == 0x46464F26) { /* 0x0ff */
> 
> It's "&0ff", not 0x0ff.

I think it's a bug in the webpage, but the hex spells "&OFF"
(letter oh not number zero, all capitalised).

PRM 5a doesn't mention any parameters to OS_Reset - can anyone confirm the
above hex number is correct for power off?

Theo



More information about the RPCEmu mailing list