On Sat, 2001-09-08 at 21:43, Wizard wrote:
> Questions regarding Bitwise operators:
> 
> > =item rol tx, ty, tz *
> ...
> > =item ror tx, ty, tz *
> 
> Are these with or without carry?
> If not, is there a need for a RCL/RCR (with carry...and carry where)?
> 

I'd think without, since I've not seen any references to a carry flag in
the VM docs (I may have missed it though).



> And what about a negate operator (neg)?
> 

Wouldn't that just be "mul tx,ty,tz" where tz (heck, even ty) is -1?


Out of curiosity, will there be a NOP instruction?  I guess we really
wouldn't need one, since things like ADD I0,I0,0  is effectively a NOP
and the Dan has indicated he wanted to keep the bytecode read-only, so
there'd be no need for it after optimization (after the bytecode has
been fixed to the disk or in memory).  

Here's a dumb question:  will parrot allow bytecode which is stored in a
perl scalar to be executed?


http://www.allegedlyfunny.com/opcodes.html
I think DWIM might be a bit much, but HCF (Halt, Catch Fire) might be
fun :)


Brian

Reply via email to