Difference between revisions of "Z80:Opcodes:SLA"

From Learn @ Cemetech
Jump to navigationJump to search
(Initial automated import)
 
(Added summary. I assume this is correct, given the info in the Effects section and in Z80:Opcodes:SRA)
 
Line 1: Line 1:
 
<!-- Short summary of instruction -->
 
<!-- Short summary of instruction -->
 +
Arithmetic shift left 1 bit, bit 7 goes to carry flag, bit 0 remains unchanged.
  
 
== Syntax ==
 
== Syntax ==

Latest revision as of 22:28, 10 March 2017

Arithmetic shift left 1 bit, bit 7 goes to carry flag, bit 0 remains unchanged.

Syntax

   sla op8

Allowed Instructions

   SLA A
   SLA B
   SLA C
   SLA D
   SLA E
   SLA H
   SLA L
   SLA (HL)
   SLA (IX+n)
   SLA (IY+n)

Effects

S and Z by definition, H and N reset, C from bit 7, P/V set if result is even.

Uses

T-States

r denotes 8-bit register.

r 8
(hl) 15
(ix+X) 23
(iy+X) 23

See Also

RL,RLA,RLC,RLCA,RLD,RR,RRA,RRC,RRCA,RRD,SLL/SL1,SRA,SRL