Changes

Jump to: navigation, search

Z80

2,637 bytes removed, 09:39, 7 May 2008
/* Opcodes */
|RETN||14||2||------||ED 45||Return from NMI||PC=(SP)+
|-
|RLA||4||1||--0-0*||17||Rotate Left Acc.||A={CY,A}<-
|-
|RL r||8||2||rowspan=4|**0P0*||CB 10+rb||rowspan=4|Rotate Left||rowspan=4|m={CY,m}<-
|-
|RL (HL)||15||2||CB 16
|-
|RL (IX+N)||23||4||DD CB XX 16
|-
|RL (IY+N)||23||4||FD CB XX 16
|-
|RLCA||4||1||--0-0*||07||Rotate Left Cir. Acc.||A=A<-
|-
|RLC r||8||2||rowspan=4|**0P0*||CB 00+rb||rowspan=4|Rotate Left Circular||rowspan=4|m=m<-
|-
|RLC (HL)||15||2||CB 06
|-
|RLC (IX+N)||23||4||DD CB XX 06
|-
|RLC (IY+N)||23||4||FD CB XX 06
|-
|RLD||18||2||**0P0-||ED 6F||Rotate Left 4 bits||{A,(HL)}={A,(HL)}<- ##
|-
|RRA||4||1||--0-0*||1F||Rotate Right Acc.||A=->{CY,A}
|-
|RR r||8 ||2||rowspan=4|**0P0*||CB 18+rb||rowspan=4|Rotate Right||rowspan=4|m=->{CY,m}
|-
|RR (HL)||15||2||CB 1E
|-
|RR (IX+N)||23||4||DD CB XX 1E
|-
|RR (IY+N)||23||4||FD CB XX 1E
|-
|RRCA||4||1||--0-0*||0F||Rotate Right Cir.Acc.||A=->A
|-
|RRC r||8||2||rowspan=4|**0P0*||CB 08+rb||rowspan=4|Rotate Right Circular||rowspan=4|m=->m
|-
|RRC (HL)||15||2||CB 0E
|-
|RRC (IX+N)||23||4||DD CB XX 0E
|-
|RRC (IY+N)||23||4||FD CB XX 0E
|-
|RRD||18||2||**0P0-||ED 67||Rotate Right 4 bits||{A,(HL)}=->{A,(HL)} ##
|-
|RST 0||11||1||rowspan=8|------||C7||rowspan=8|Restart||rowspan=8|(p=0H,8H,10H,...,38H)
|-
|RST 08H||11||1||CF
|-
|RST 10H||11||1||D7
|-
|RST 18H||11||1||DF
|-
|RST 20H||11||1||E7
|-
|RST 28H||11||1||EF
|-
|RST 30H||11||1||F7
|-
|RST 38H||11||1||FF
|-
|SBC r||4||1||rowspan=5|***V1*||98+rb|| rowspan=5|Subtract with Carry|| rowspan=5|A=A-s-CY
|-
|SBC A,N||7||2||DE XX
|-
|SBC (HL)||7||1||9E
|-
|SBC A,(IX+N)||19||3||DD 9E XX
|-
|SBC A,(IY+N)||19||3||FD 9E XX
|-
|SBC HL,BC||15||2||rowspan=4|**?V1*||ED 42||rowspan=4|Subtract with Carry||rowspan=4|HL=HL-ss-CY
|-
|SBC HL,DE||15||2||ED 52
|-
|SBC HL,HL||15||2||ED 62
|-
|SBC HL,SP||15||2||ED 72
|-
|SCF||4||1||--0-01||37||Set Carry Flag||CY=1
|-
|SET b,r||8||2||rowspan=4|------||CB C0+8*b+rb||rowspan=4|Set bit||rowspan=4|m=mv{2^b}
|-
|SET b,(HL)||15||2||CB C6+8*b
|-
|SET b,(IX+N)||23||4||DD CB XX C6+8*b
|-
|SET b,(IY+N)||23||4||FD CB XX C6+8*b
|-
|XOR r||4||1||rowspan=5|***P00||A8+rb||rowspan=5|Logical Exclusive OR||rowspan=5|A=Axs
|-
|XOR N||7||2||EE XX
|-
|XOR (HL)||7||1||AE
|-
|XOR (IX+N)||19||3||DD AE XX
|-
|XOR (IY+N)||19||3||FD AE XX
|}
+-------------+----+---+------+------------+---------------------+----------------------+
|RLA | 4 | 1 |--0-0*|17 |Rotate Left Acc. |A={CY,A}<- ||RL r | 8 | 2 |**0P0*|CB 10+rb |Rotate Left |m={CY,m}<- ||RL (HL) | 15 | 2 | |CB 16 | | ||RL (IX+N) | 23 | 4 | |DD CB XX 16 | | ||RL (IY+N) | 23 | 4 | |FD CB XX 16 | | ||RLCA | 4 | 1 |--0-0*|07 |Rotate Left Cir. Acc.|A=A<- ||RLC r | 8 | 2 |**0P0*|CB 00+rb |Rotate Left Circular |m=m<- ||RLC (HL) | 15 | 2 | |CB 06 | | ||RLC (IX+N) | 23 | 4 | |DD CB XX 06 | | ||RLC (IY+N) | 23 | 4 | |FD CB XX 06 | | ||RLD | 18 | 2 |**0P0-|ED 6F |Rotate Left 4 bits |{A,(HL)}={A,(HL)}<- ##||RRA | 4 | 1 |--0-0*|1F |Rotate Right Acc. |A=->{CY,A} ||RR r | 8 | 2 |**0P0*|CB 18+rb |Rotate Right |m=->{CY,m} ||RR (HL) | 15 | 2 | |CB 1E | | ||RR (IX+N) | 23 | 4 | |DD CB XX 1E | | ||RR (IY+N) | 23 | 4 | |FD CB XX 1E | | ||RRCA | 4 | 1 |--0-0*|0F |Rotate Right Cir.Acc.|A=->A ||RRC r | 8 | 2 |**0P0*|CB 08+rb |Rotate Right Circular|m=->m ||RRC (HL) | 15 | 2 | |CB 0E | | ||RRC (IX+N) | 23 | 4 | |DD CB XX 0E | | ||RRC (IY+N) | 23 | 4 | |FD CB XX 0E | | ||RRD | 18 | 2 |**0P0-|ED 67 |Rotate Right 4 bits |{A,(HL)}=->{A,(HL)} ##|+-------------+----+---+------+------------+---------------------+----------------------+|RST 0 | 11 | 1 |------|C7 |Restart | (p=0H,8H,10H,...,38H)||RST 08H | 11 | 1 | |CF | | ||RST 10H | 11 | 1 | |D7 | | ||RST 18H | 11 | 1 | |DF | | ||RST 20H | 11 | 1 | |E7 | | ||RST 28H | 11 | 1 | |EF | | ||RST 30H | 11 | 1 | |F7 | | ||RST 38H | 11 | 1 | |FF | | |+-------------+----+---+------+------------+---------------------+----------------------+|SBC r | 4 | 1 |***V1*|98+rb |Subtract with Carry |A=A-s-CY ||SBC A,N | 7 | 2 | |DE XX | | ||SBC (HL) | 7 | 1 | |9E | | ||SBC A,(IX+N) | 19 | 3 | |DD 9E XX | | ||SBC A,(IY+N) | 19 | 3 | |FD 9E XX | | ||SBC HL,BC | 15 | 2 |**?V1*|ED 42 |Subtract with Carry |HL=HL-ss-CY ||SBC HL,DE | 15 | 2 | |ED 52 | | ||SBC HL,HL | 15 | 2 | |ED 62 | | ||SBC HL,SP | 15 | 2 | |ED 72 | | |+-------------+----+---+------+------------+---------------------+----------------------+|SCF | 4 | 1 |--0-01|37 |Set Carry Flag |CY=1 |+-------------+----+---+------+------------+---------------------+----------------------+|SET b,r | 8 | 2 |------|CB C0+8*b+rb|Set bit |m=mv{2^b} ||SET b,(HL) | 15 | 2 | |CB C6+8*b | | ||SET b,(IX+N) | 23 | 4 | |DD CB XX C6+8*b | ||SET b,(IY+N) | 23 | 4 | |FD CB XX C6+8*b | |+-------------+----+---+------+------------+---------------------+----------------------+
|SLA r | 8 | 2 |**0P0*|CB 20+rb |Shift Left Arithmetic|m=m*2 |
|SLA (HL) | 15 | 2 | |CB 26 | | |
|SLA (IX+N) | 23 | 4 | |DD CB XX 26 | | |
|SLA (IY+N) | 23 | 4 | |FD CB XX 26 | | |
 
|SRA r | 8 | 2 |**0P0*|CB 28+rb |Shift Right Arith. |m=m/2 |
|SRA (HL) | 15 | 2 | |CB 2E | | |
|SRA (IY+N) | 23 | 4 | |FD CB XX 2E | | |
+-------------+----+---+------+------------+---------------------+----------------------+
 
|SLL r | 8 | 2 |**0P0*|CB 30+rb |Shift Left Logical* |m={0,m,CY}<- |
|SLL (HL) | 15 | 2 | |CB 36 | | (SLL instructions |
|SLL (IX+N) | 23 | 4 | |DD CB XX 36 | | are Unsupported) |
|SLL (IY+N) | 23 | 4 | |FD CB XX 36 | | |
 
|SRL r | 8 | 2 |**0P0*|CB 38+rb |Shift Right Logical |m=->{0,m,CY} |
|SRL (HL) | 15 | 2 | |CB 3E | | |
|SUB (IY+N) | 19 | 3 | |FD 96 XX | | |
+-------------+----+---+------+------------+---------------------+----------------------+
|XOR r | 4 | 1 |***P00|A8+rb |Logical Exclusive OR |A=Axs |
|XOR N | 7 | 2 | |EE XX | | |
|XOR (HL) | 7 | 1 | |AE | | |
|XOR (IX+N) | 19 | 3 | |DD AE XX | | |
|XOR (IY+N) | 19 | 3 | |FD AE XX | | |
#-------------+----+---+------+------------+---------------------+----------------------#
12,273
edits