;
; В секции Registers перечисляются регистры процессора с указанием разрядности каждого регистра
; Пока добавлять и удалять регистры не стоит. Можно изменять конфигурацию имеющихся регистров.
[Registers]
AF=16:F,A:Аккумулятор и флаги
BС=16:C,B:База
DE=16:E,D:Счетчик
HL=16:L,H:Указатель данных
SP=16:Индекс источника
IX=16:Индекс приемника
IY=16:Указатель стека
PC=16:Счетчик команд
;
; В секции RegistersRoles указываются специальные регистры (указатель стека, счетчик цикла)
[RegistersRoles]
StackPointer=SP
ProgramCounter=PC
Counter=C
[Flags]
ZeroFlag=ZF
CarryFlag=CF

[Commands]
command00=NOP
command01+nn+nn=LD BC,nn
command02=LD (BC),A
command03=INC BC
command04=INC B
command05=DEC B
command06+nn=LD B,n
command07=RLCA
command08=EX AF,AF'
command09=ADD HL,BC
command0A=LD A,(BC)
command0B=DEC BC
command0C=INC C
command0D=DEC C
command0E+nn=LD C,n
command0F=RRCA
command10+dd=DJNZ d
command11+nn+nn=LD DE,nn
command12=LD (DE),A
command13=INC DE
command14=INC D
command15=DEC D
command16+nn=LD D,n
command17=RLA
command18+nn=JR n
command19=ADD HL,DE
command1A=LD A,(DE)
command1B=DEC DE
command1C=INC E
command1D=DEC E
command1E+nn=LD E,n
command1F=RRA
command20+nn=JR NZ,n
command21+nn+nn=LD HL,nn
command22+nn+nn=LD (nn),HL
command23=INC HL
command24=INC H
command25=DEC H
command26+nn=LD H,n
command27=DAA
command28+nn=JR Z,n
command29=ADD HL,HL
command2A+nn+nn=LD HL,(nn)
command2B=DEC HL
command2C=INC L
command2D=DEC L
command2E+nn=LD L,n
command2F=CPL
command30+nn=JR NC,n
command31+nn+nn=LD SP,nn
command32+nn+nn=LD (nn),A
command33=INC SP
command34=INC (HL)
command35=DEC (HL)
command36+nn=LD (HL),n
command37=SCF
command38+nn=JR C,n
command39=ADD HL,SP
command3A+nn+nn=LD A,(nn)
command3B=DEC SP
command3C=INC A
command3D=DEC A
command3E+nn=LD A,n
command3F=CCF
command40=LD B,B
command41=LD B,C
command42=LD B,D
command43=LD B,E
command44=LD B,H
command45=LD B,L
command46=LD B,(HL)
command47=LD B,A
command48=LD C,B
command49=LD C,C
command4A=LD C,D
command4B=LD C,E
command4C=LD C,H
command4D=LD C,L
command4E=LD C,(HL)
command4F=LD C,A
command50=LD D,B
command51=LD D,C
command52=LD D,D
command53=LD D,E
command54=LD D,H
command55=LD D,L
command56=LD D,(HL)
command57=LD D,A
command58=LD E,B
command59=LD E,C
command5A=LD E,D
command5B=LD E,E
command5C=LD E,H
command5D=LD E,L
command5E=LD E,(HL)
command5F=LD E,A
command60=LD H,B
command61=LD H,C
command62=LD H,D
command63=LD H,E
command64=LD H,H
command65=LD H,L
command66=LD H,(HL)
command67=LD H,A
command68=LD L,B
command69=LD L,C
command6A=LD L,D
command6B=LD L,E
command6C=LD L,H
command6D=LD L,L
command6E=LD L,(HL)
command6F=LD L,A
command70=LD (HL),B
command71=LD (HL),C
command72=LD (HL),D
command73=LD (HL),E
command74=LD (HL),H
command75=LD (HL),L
command76=HALT
command77=LD (HL),A
command78=LD A,B
command79=LD A,C
command7A=LD A,D
command7B=LD A,E
command7C=LD A,H
command7D=LD A,L
command7E=LD A,(HL)
command7F=LD A,A
command80=ADD A,B
command81=ADD A,C
command82=ADD A,D
command83=ADD A,E
command84=ADD A,H
command85=ADD A,L
command86=ADD A,(HL)
command87=ADD A,A
command88=ADC A,B
command89=ADC A,C
command8A=ADC A,D
command8B=ADC A,E
command8C=ADC A,H
command8D=ADC A,L
command8E=ADC A,(HL)
command8F=ADC A,A
command90=SUB B
command91=SUB C
command92=SUB D
command93=SUB E
command94=SUB H
command95=SUB L
command96=SUB (HL)
command97=SUB A
command98=SBC A,B
command99=SBC A,C
command9A=SBC A,D
command9B=SBC A,E
command9C=SBC A,H
command9D=SBC A,L
command9E=SBC A,(HL)
command9F=SBC A,A
commandA0=AND B
commandA1=AND C
commandA2=AND D
commandA3=AND E
commandA4=AND H
commandA5=AND L
commandA6=AND (HL)
commandA7=AND A
commandA8=XOR B
commandA9=XOR C
commandAA=XOR D
commandAB=XOR E
commandAC=XOR H
commandAD=XOR L
commandAE=XOR (HL)
commandAF=XOR A
commandB0=OR B
commandB1=OR C
commandB2=OR D
commandB3=OR E
commandB4=OR H
commandB5=OR L
commandB6=OR (HL)
commandB7=OR A
commandB8=CP B
commandB9=CP C
commandBA=CP D
commandBB=CP E
commandBC=CP H
commandBD=CP L
commandBE=CP (HL)
commandBF=CP A
commandC0=RET NZ
commandC1=POP BC
commandC2+nn+nn=JP NZ,nn
commandC3+nn+nn=JP nn
commandC4+nn+nn=CALL NZ,nn
commandC5=PUSH BC
commandC6+nn=ADD A,n
commandC7=RST 00H
commandC8=RET Z
commandC9=RET
commandCA+nn+nn=JP Z,nn
commandCB=CB PREFIX
commandCC+nn+nn=CALL Z,nn
commandCD+nn+nn=CALL nn
commandCE+nn=ADC A,n
commandCF=RST 08H
commandD0=RET NC
commandD1=POP DE
commandD2+nn+nn=JP NC,nn
commandD3+nn=OUT (n),A
commandD4+nn+nn=CALL NC,nn
commandD5=PUSH DE
commandD6+nn=SUB n
commandD7=RST 10H
commandD8=RET C
commandD9=EXX
commandDA+nn+nn=JP C,nn
commandDB+nn=IN A,(n)
commandDC+nn+nn=CALL C,nn
commandDD=DD PREFIX (IX)
commandDE+nn=SBC A,n
commandDF=RST 18H
commandE0=RET PO
commandE1=POP HL
commandE2+nn+nn=JP PO,nn
commandE3=EX (SP),HL
commandE4+nn+nn=CALL PO,nn
commandE5=PUSH HL
commandE6+nn=AND n
commandE7=RST 20H
commandE8=RET PE
commandE9=JP (HL)
commandEA+nn+nn=JP PE,nn
commandEB=EX DE,HL
commandEC+nn+nn=CALL PE,nn
commandED=ED PREFIX
commandEE+nn=XOR n
commandEF=RST 28H
commandF0=RET P
commandF1=POP AF
commandF2+nn+nn=JP P,nn
commandF3=DI
commandF4+nn+nn=CALL P,nn
commandF5=PUSH AF
commandF6+nn=OR n
commandF7=RST 30H
commandF8=RET M
commandF9=LD SP,HL
commandFA+nn+nn=JP M,nn
commandFB=EI
commandFC+nn+nn=CALL M,nn
commandFD=FD PREFIX (IY)
commandFE+nn=CP n
commandFF=RST 38H
commandCB00=RLC B
commandCB01=RLC C
commandCB02=RLC D
commandCB03=RLC E
commandCB04=RLC H
commandCB05=RLC L
commandCB06=RLC (HL)
commandCB07=RLC A
commandCB08=RRC B
commandCB09=RRC C
commandCB0A=RRC D
commandCB0B=RRC E
commandCB0C=RRC H
commandCB0D=RRC L
commandCB0E=RRC (HL)
commandCB0F=RRC A
commandCB10=RL B
commandCB11=RL C
commandCB12=RL D
commandCB13=RL E
commandCB14=RL H
commandCB15=RL L
commandCB16=RL (HL)
commandCB17=RL A
commandCB18=RR B
commandCB19=RR C
commandCB1A=RR D
commandCB1B=RR E
commandCB1C=RR H
commandCB1D=RR L
commandCB1E=RR (HL)
commandCB1F=RR A
commandCB20=SLA B
commandCB21=SLA C
commandCB22=SLA D
commandCB23=SLA E
commandCB24=SLA H
commandCB25=SLA L
commandCB26=SLA (HL)
commandCB27=SLA A
commandCB28=SRA B
commandCB29=SRA C
commandCB2A=SRA D
commandCB2B=SRA E
commandCB2C=SRA H
commandCB2D=SRA L
commandCB2E=SRA (HL)
commandCB2F=SRA A
commandCB30=SLL B
commandCB31=SLL C
commandCB32=SLL D
commandCB33=SLL E
commandCB34=SLL H
commandCB35=SLL L
commandCB36=SLL (HL)
commandCB37=SLL A
commandCB38=SRL B
commandCB39=SRL C
commandCB3A=SRL D
commandCB3B=SRL E
commandCB3C=SRL H
commandCB3D=SRL L
commandCB3E=SRL (HL)
commandCB3F=SRL A
commandCB40=BIT 0,B
commandCB41=BIT 0,C
commandCB42=BIT 0,D
commandCB43=BIT 0,E
commandCB44=BIT 0,H
commandCB45=BIT 0,L
commandCB46=BIT 0,(HL)
commandCB47=BIT 0,A
commandCB48=BIT 1,B
commandCB49=BIT 1,C
commandCB4A=BIT 1,D
commandCB4B=BIT 1,E
commandCB4C=BIT 1,H
commandCB4D=BIT 1,L
commandCB4E=BIT 1,(HL)
commandCB4F=BIT 1,A
commandCB50=BIT 2,B
commandCB51=BIT 2,C
commandCB52=BIT 2,D
commandCB53=BIT 2,E
commandCB54=BIT 2,H
commandCB55=BIT 2,L
commandCB56=BIT 2,(HL)
commandCB57=BIT 2,A
commandCB58=BIT 3,B
commandCB59=BIT 3,C
commandCB5A=BIT 3,D
commandCB5B=BIT 3,E
commandCB5C=BIT 3,H
commandCB5D=BIT 3,L
commandCB5E=BIT 3,(HL)
commandCB5F=BIT 3,A
commandCB60=BIT 4,B
commandCB61=BIT 4,C
commandCB62=BIT 4,D
commandCB63=BIT 4,E
commandCB64=BIT 4,H
commandCB65=BIT 4,L
commandCB66=BIT 4,(HL)
commandCB67=BIT 4,A
commandCB68=BIT 5,B
commandCB69=BIT 5,C
commandCB6A=BIT 5,D
commandCB6B=BIT 5,E
commandCB6C=BIT 5,H
commandCB6D=BIT 5,L
commandCB6E=BIT 5,(HL)
commandCB6F=BIT 5,A
commandCB70=BIT 6,B
commandCB71=BIT 6,C
commandCB72=BIT 6,D
commandCB73=BIT 6,E
commandCB74=BIT 6,H
commandCB75=BIT 6,L
commandCB76=BIT 6,(HL)
commandCB77=BIT 6,A
commandCB78=BIT 7,B
commandCB79=BIT 7,C
commandCB7A=BIT 7,D
commandCB7B=BIT 7,E
commandCB7C=BIT 7,H
commandCB7D=BIT 7,L
commandCB7E=BIT 7,(HL)
commandCB7F=BIT 7,A
commandCB80=RES 0,B
commandCB81=RES 0,C
commandCB82=RES 0,D
commandCB83=RES 0,E
commandCB84=RES 0,H
commandCB85=RES 0,L
commandCB86=RES 0,(HL)
commandCB87=RES 0,A
commandCB88=RES 1,B
commandCB89=RES 1,C
commandCB8A=RES 1,D
commandCB8B=RES 1,E
commandCB8C=RES 1,H
commandCB8D=RES 1,L
commandCB8E=RES 1,(HL)
commandCB8F=RES 1,A
commandCB90=RES 2,B
commandCB91=RES 2,C
commandCB92=RES 2,D
commandCB93=RES 2,E
commandCB94=RES 2,H
commandCB95=RES 2,L
commandCB96=RES 2,(HL)
commandCB97=RES 2,A
commandCB98=RES 3,B
commandCB99=RES 3,C
commandCB9A=RES 3,D
commandCB9B=RES 3,E
commandCB9C=RES 3,H
commandCB9D=RES 3,L
commandCB9E=RES 3,(HL)
commandCB9F=RES 3,A
commandCBA0=RES 4,B
commandCBA1=RES 4,C
commandCBA2=RES 4,D
commandCBA3=RES 4,E
commandCBA4=RES 4,H
commandCBA5=RES 4,L
commandCBA6=RES 4,(HL)
commandCBA7=RES 4,A
commandCBA8=RES 5,B
commandCBA9=RES 5,C
commandCBAA=RES 5,D
commandCBAB=RES 5,E
commandCBAC=RES 5,H
commandCBAD=RES 5,L
commandCBAE=RES 5,(HL)
commandCBAF=RES 5,A
commandCBB0=RES 6,B
commandCBB1=RES 6,C
commandCBB2=RES 6,D
commandCBB3=RES 6,E
commandCBB4=RES 6,H
commandCBB5=RES 6,L
commandCBB6=RES 6,(HL)
commandCBB7=RES 6,A
commandCBB8=RES 7,B
commandCBB9=RES 7,C
commandCBBA=RES 7,D
commandCBBB=RES 7,E
commandCBBC=RES 7,H
commandCBBD=RES 7,L
commandCBBE=RES 7,(HL)
commandCBBF=RES 7,A
commandCBC0=SET 0,B
commandCBC1=SET 0,C
commandCBC2=SET 0,D
commandCBC3=SET 0,E
commandCBC4=SET 0,H
commandCBC5=SET 0,L
commandCBC6=SET 0,(HL)
commandCBC7=SET 0,A
commandCBC8=SET 1,B
commandCBC9=SET 1,C
commandCBCA=SET 1,D
commandCBCB=SET 1,E
commandCBCC=SET 1,H
commandCBCD=SET 1,L
commandCBCE=SET 1,(HL)
commandCBCF=SET 1,A
commandCBD0=SET 2,B
commandCBD1=SET 2,C
commandCBD2=SET 2,D
commandCBD3=SET 2,E
commandCBD4=SET 2,H
commandCBD5=SET 2,L
commandCBD6=SET 2,(HL)
commandCBD7=SET 2,A
commandCBD8=SET 3,B
commandCBD9=SET 3,C
commandCBDA=SET 3,D
commandCBDB=SET 3,E
commandCBDC=SET 3,H
commandCBDD=SET 3,L
commandCBDE=SET 3,(HL)
commandCBDF=SET 3,A
commandCBE0=SET 4,B
commandCBE1=SET 4,C
commandCBE2=SET 4,D
commandCBE3=SET 4,E
commandCBE4=SET 4,H
commandCBE5=SET 4,L
commandCBE6=SET 4,(HL)
commandCBE7=SET 4,A
commandCBE8=SET 5,B
commandCBE9=SET 5,C
commandCBEA=SET 5,D
commandCBEB=SET 5,E
commandCBEC=SET 5,H
commandCBED=SET 5,L
commandCBEE=SET 5,(HL)
commandCBEF=SET 5,A
commandCBF0=SET 6,B
commandCBF1=SET 6,C
commandCBF2=SET 6,D
commandCBF3=SET 6,E
commandCBF4=SET 6,H
commandCBF5=SET 6,L
commandCBF6=SET 6,(HL)
commandCBF7=SET 6,A
commandCBF8=SET 7,B
commandCBF9=SET 7,C
commandCBFA=SET 7,D
commandCBFB=SET 7,E
commandCBFC=SET 7,H
commandCBFD=SET 7,L
commandCBFE=SET 7,(HL)
commandCBFF=SET 7,A
