Forum
SLS <reg> - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Help & Support (https://www.boriel.com/forum/forumdisplay.php?fid=16)
+---- Thread: SLS <reg> (/showthread.php?tid=457)



SLS <reg> - britlion - 04-22-2012

Technically undocumented - but the assembler doesn't support the shift instruction SLS. Unfortunately, not being documented, it doesn't have an official name - I've seen the same instructions called "SLL" as well - and shift left logical does seem to match with shift right logical.

Have a look at:
<!-- m --><a class="postlink" href="http://www.ime.usp.br/~einar/z80table/">http://www.ime.usp.br/~einar/z80table/</a><!-- m -->


In particular CB30 - CB37


That table is quite useful, actually Smile


Re: SLS <reg> - boriel - 04-22-2012

They're supported as SLL as you said (I've just re-check it).

SLL r

You can edit z80.py to see the supported instruction set.


Re: SLS <reg> - britlion - 04-22-2012

Aha. Missed that. Derp!

Excellent. It's quite a useful set of instructions, actually. I remember looking through the manual a few years back going "but...how do I shift it back the other way?"