by damianknz · 11y ago · 0 comments
return -1;
Anyway, using assembler for CPU I made up in my head just now, how about
shl r0,1
and r0,1
I've actually tried to come up with a simpler example. It's tougher than you'd think, and you pretty much have to do weird stuff with flags. The superoptimiser trick is pretty neat.
xor r0, r0