Lista rozkazów - tabela: Różnice pomiędzy wersjami
Z ZX Spectrum Wiki
(→Operacje z rejestrem IX) |
(→Prefix DDCB) |
||
Linia 1236: | Linia 1236: | ||
=== Prefix DDCB === | === Prefix DDCB === | ||
{|class="wikitable" style="text-align:center" | {|class="wikitable" style="text-align:center" | ||
− | !scope="col"|\ | + | !scope="col" style="width: 77px"|\ |
− | !scope="col"|x0 | + | !scope="col" style="width: 77px"|x0 |
− | !scope="col"|x1 | + | !scope="col" style="width: 77px"|x1 |
− | !scope="col"|x2 | + | !scope="col" style="width: 77px"|x2 |
− | !scope="col"|x3 | + | !scope="col" style="width: 77px"|x3 |
− | !scope="col"|x4 | + | !scope="col" style="width: 77px"|x4 |
− | !scope="col"|x5 | + | !scope="col" style="width: 77px"|x5 |
− | !scope="col"|x6 | + | !scope="col" style="width: 77px"|x6 |
− | !scope="col"|x7 | + | !scope="col" style="width: 77px"|x7 |
− | !scope="col"|x8 | + | !scope="col" style="width: 77px"|x8 |
− | !scope="col"|x9 | + | !scope="col" style="width: 77px"|x9 |
− | !scope="col"|xA | + | !scope="col" style="width: 77px"|xA |
− | !scope="col"|xB | + | !scope="col" style="width: 77px"|xB |
− | !scope="col"|xC | + | !scope="col" style="width: 77px"|xC |
− | !scope="col"|xD | + | !scope="col" style="width: 77px"|xD |
− | !scope="col"|xE | + | !scope="col" style="width: 77px"|xE |
− | !scope="col"|xF | + | !scope="col" style="width: 77px"|xF |
|- | |- | ||
!scope="row"|0x | !scope="row"|0x |
Wersja z 13:21, 30 maj 2014
Spis treści
Podstawowe
Prefix CB
Prefix ED
\ | x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI |
1x | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI |
2x | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI |
3x | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI | NONI |
4x | in b,(c) | out (c),b | sbc hl,bc | ld (NN),bc | neg | retn | im 0 | ld i,a | in c,(c) | out (c),c | adc hl,bc | ld bc,(NN) | reti | ld r,a | ||
5x | in d,(c) | out (c),d | sbc hl,de | ld (NN),de | im 1 | ld a,i | in e,(c) | out (c),e | adc hl,de | ld de,(NN) | im 2 | ld a,r | ||||
6x | in h,(c) | out (c),h | sbc hl,hl | ld (NN),hl | rrd | in l,(c) | out (c),l | adc hl,hl | ld hl,(NN) | rld | ||||||
7x | in f,(c) | out (c),f | sbc hl,sp | ld (NN),sp | in a,(c) | out (c),a | adc hl,sp | ld sp,(NN) | ||||||||
8x | ||||||||||||||||
9x | ||||||||||||||||
Ax | ldi | cpi | ini | outi | ldd | cpd | ind | outd | ||||||||
Bx | ldir | cpir | inir | otir | lddr | cpdr | indr | otdr | ||||||||
Cx | ||||||||||||||||
Dx | ||||||||||||||||
Ex | ||||||||||||||||
Fx |
Operacje z rejestrem IX
\ | x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x | add ix,bc | |||||||||||||||
1x | add ix,de | |||||||||||||||
2x | ld ix,NN | ld (NN),ix | inc ix | inc ixh | dec ixh | ld ixh,N | add ix,ix | ld ix,(NN) | dec ix | inc ixl | dec ixl | ld ixl,N | ||||
3x | inc (ix+X) | dec (ix+X) | add ix,sp | |||||||||||||
4x | ld b,ixh | ld b,ixl | ld b,(ix+X) | ld c,ixh | ld c,ixl | ld c,(ix+X) | ||||||||||
5x | ld d,ixh | ld d,ixl | ld d,(ix+X) | ld e,ixh | ld e,ixl | ld e,(ix+X) | ||||||||||
6x | ld h,(ix+X) | ld l,(ix+X) | ||||||||||||||
7x | ld (ix+X),b | ld (ix+X),c | ld (ix+X),d | ld (ix+X),e | ld (ix+X),h | ld (ix+X),l | ld (ix+X),a | ld a,ixh | ld a,ixl | ld a,(ix+X) | ||||||
8x | add a,ixh | add a,ixl | add a,(ix+X) | adc a,ixh | adc a,ixl | adc a,(ix+X) | ||||||||||
9x | sub ixh | sub ixl | sub (ix+X) | sbc a,ixh | sbc a,ixl | sbc a,(ix+X) | ||||||||||
Ax | and ixh | and ixl | and (ix+X) | xor ixh | xor ixl | xor (ix+X) | ||||||||||
Bx | or ixh | or ixl | or (ix+X) | cp ixh | cp ixl | cp (ix+X) | ||||||||||
Cx | prefix DDCB | |||||||||||||||
Dx | ||||||||||||||||
Ex | pop ix | ex (sp),ix | push ix | jp (ix) | ||||||||||||
Fx | ld sp,ix |
Prefix DDCB
\ | x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x | rlc ixh | rlc ixl | rlc (ix+X) | rrc ixh | rrc ixl | rrc (ix+X) | ||||||||||
1x | rl ixh | rl ixl | rl (ix+X) | rr ixh | rr ixl | rr (ix+X) | ||||||||||
2x | sla ixh | sla ixl | sla (ix+X) | sra ixh | sra ixl | sra (ix+X) | ||||||||||
3x | sll ixh | sll ixl | sll (ix+X) | srl ixh | srl ixl | srl (ix+X) | ||||||||||
4x | bit 0,ixh | bit 0,ixl | bit 0,(ix+X) | bit 1,ixh | bit 1,ixl | bit 1,(ix+X) | ||||||||||
5x | bit 2,ixh | bit 2,ixl | bit 2,(ix+X) | bit 3,ixh | bit 3,ixl | bit 3,(ix+X) | ||||||||||
6x | bit 4,ixh | bit 4,ixl | bit 4,(ix+X) | bit 5,ixh | bit 5,ixl | bit 5,(ix+X) | ||||||||||
7x | bit 6,ixh | bit 6,ixl | bit 6,(ix+X) | bit 7,ixh | bit 7,ixl | bit 7,(ix+X) | ||||||||||
8x | res 0,ixh | res 0,ixl | res 0,(ix+X) | res 1,ixh | res 1,ixl | res 1,(ix+X) | ||||||||||
9x | res 2,ixh | res 2,ixl | res 2,(ix+X) | res 3,ixh | res 3,ixl | res 3,(ix+X) | ||||||||||
Ax | res 4,ixh | res 4,ixl | res 4,(ix+X) | res 5,ixh | res 5,ixl | res 5,(ix+X) | ||||||||||
Bx | res 6,ixh | res 6,ixl | res 6,(ix+X) | res 7,ixh | res 7,ixl | res 7,(ix+X) | ||||||||||
Cx | set 0,ixh | set 0,ixl | set 0,(ix+X) | set 1,ixh | set 1,ixl | set 1,(ix+X) | ||||||||||
Dx | set 2,ixh | set 2,ixl | set 2,(ix+X) | set 3,ixh | set 3,ixl | set 3,(ix+X) | ||||||||||
Ex | set 4,ixh | set 4,ixl | set 4,(ix+X) | set 5,ixh | set 5,ixl | set 5,(ix+X) | ||||||||||
Fx | set 6,ixh | set 6,ixl | set 6,(ix+X) | set 7,ixh | set 7,ixl | set 7,(ix+X) |
Operacje z rejestrem IY
\ | x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x | add iy,bc | |||||||||||||||
1x | add iy,de | |||||||||||||||
2x | ld iy,NN | ld (NN),iy | inc iy | inc iyh | dec iyh | ld iyh,N | add iy,iy | ld iy,(NN) | dec iy | inc iyl | dec iyl | ld iyl,N | ||||
3x | inc (iy+X) | dec (iy+X) | add iy,sp | |||||||||||||
4x | ld b,iyh | ld b,iyl | ld b,(iy+X) | ld c,iyh | ld c,iyl | ld c,(iy+X) | ||||||||||
5x | ld d,iyh | ld d,iyl | ld d,(iy+X) | ld e,iyh | ld e,iyl | ld e,(iy+X) | ||||||||||
6x | ld h,(iy+X) | ld l,(iy+X) | ||||||||||||||
7x | ld (iy+X),b | ld (iy+X),c | ld (iy+X),d | ld (iy+X),e | ld (iy+X),h | ld (iy+X),l | ld (iy+X),a | ld a,iyh | ld a,iyl | ld a,(iy+X) | ||||||
8x | add a,iyh | add a,iyl | add a,(iy+X) | adc a,iyh | adc a,iyl | adc a,(iy+X) | ||||||||||
9x | sub iyh | sub iyl | sub (iy+X) | sbc a,iyh | sbc a,iyl | sbc a,(iy+X) | ||||||||||
Ax | and iyh | and iyl | and (iy+X) | xor iyh | xor iyl | xor (iy+X) | ||||||||||
Bx | or iyh | or iyl | or (iy+X) | cp iyh | cp iyl | cp (iy+X) | ||||||||||
Cx | ||||||||||||||||
Dx | ||||||||||||||||
Ex | pop iy | ex (sp),iy | push iy | jp (iy) | ||||||||||||
Fx | ld sp,iy | prefix FDCB |
Prefix FDCB
\ | x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x | rlc iyh | rlc iyl | rlc (iy+X) | rrc iyh | rrc iyl | rrc (iy+X) | ||||||||||
1x | rl iyh | rl iyl | rl (iy+X) | rr iyh | rr iyl | rr (iy+X) | ||||||||||
2x | sla iyh | sla iyl | sla (iy+X) | sra iyh | sra iyl | sra (iy+X) | ||||||||||
3x | sll iyh | sll iyl | sll (iy+X) | srl iyh | srl iyl | srl (iy+X) | ||||||||||
4x | bit 0,iyh | bit 0,iyl | bit 0,(iy+X) | bit 1,iyh | bit 1,iyl | bit 1,(iy+X) | ||||||||||
5x | bit 2,iyh | bit 2,iyl | bit 2,(iy+X) | bit 3,iyh | bit 3,iyl | bit 3,(iy+X) | ||||||||||
6x | bit 4,iyh | bit 4,iyl | bit 4,(iy+X) | bit 5,iyh | bit 5,iyl | bit 5,(iy+X) | ||||||||||
7x | bit 6,iyh | bit 6,iyl | bit 6,(iy+X) | bit 7,iyh | bit 7,iyl | bit 7,(iy+X) | ||||||||||
8x | res 0,iyh | res 0,iyl | res 0,(iy+X) | res 1,iyh | res 1,iyl | res 1,(iy+X) | ||||||||||
9x | res 2,iyh | res 2,iyl | res 2,(iy+X) | res 3,iyh | res 3,iyl | res 3,(iy+X) | ||||||||||
Ax | res 4,iyh | res 4,iyl | res 4,(iy+X) | res 5,iyh | res 5,iyl | res 5,(iy+X) | ||||||||||
Bx | res 6,iyh | res 6,iyl | res 6,(iy+X) | res 7,iyh | res 7,iyl | res 7,(iy+X) | ||||||||||
Cx | set 0,iyh | set 0,iyl | set 0,(iy+X) | set 1,iyh | set 1,iyl | set 1,(iy+X) | ||||||||||
Dx | set 2,iyh | set 2,iyl | set 2,(iy+X) | set 3,iyh | set 3,iyl | set 3,(iy+X) | ||||||||||
Ex | set 4,iyh | set 4,iyl | set 4,(iy+X) | set 5,iyh | set 5,iyl | set 5,(iy+X) | ||||||||||
Fx | set 6,iyh | set 6,iyl | set 6,(iy+X) | set 7,iyh | set 7,iyl | set 7,(iy+X) |