📄 z80rules.1
字号:
ld a,#(0 % 256)= xor a ld hl,%0 ;const ld a,l ld (%1),a ld hl,%2= ld a,#(%0 % 256) ld (%1),a ld hl,%2 jp %0.%0=.%0 ex de,hl ld l,#(8 % 256) call l_asr_u= ld l,h ld h,0 ex de,hl ld l,#(8 % 256) call l_asr= ld a,h call l_sxt ex de,hl ld l,#(0 % 256) call l_asr%1= ex de,hl ld l,#(8 % 256) call l_asl= ld h,l ld l,0 ex de,hl ld l,#(0 % 256) call l_asl= ex de,hl ld l,#(1 % 256) call l_asl= add hl,hl ld hl,0 ;const add hl,sp push hl call l_gint ;%9 inc hl pop de call l_pint= pop hl inc hl push hl ld hl,0 ;const add hl,sp call l_gint ;%9 inc hl pop bc push hl= pop hl inc hl push hl ld hl,0 ;const add hl,sp call l_gint ;%9 ld de,%1 add hl,de pop bc push hl= pop hl ld de,%1 ;const add hl,de push hl ld hl,0 ;const add hl,sp call l_gint ;%9 dec hl pop bc push hl= pop hl dec hl push hl ld hl,0 ;const add hl,sp push hl call l_gint ;%9 dec hl pop de call l_pint= pop hl dec hl push hl ld hl,2 ;const add hl,sp push hl call l_gint ;%9 inc hl pop de call l_pint= pop de pop hl inc hl push hl push de ld hl,2 ;const add hl,sp call l_gint ;%9 inc hl pop de pop bc push hl push de= pop de pop hl inc hl push hl pop de ld hl,0 ;const add hl,sp call l_gint ;%9 ld de,%1 add hl,de pop de pop bc push hl push de= pop de pop hl ld bc,%1 add hl,bc push hl push de ld hl,2 ;const add hl,sp call l_gint ;%9 dec hl pop de pop bc push hl push de= pop de pop hl dec hl push hl push de ld hl,2 ;const add hl,sp push hl call l_gint ;%9 dec hl pop de call l_pint= pop de pop hl dec hl push hl push de ld hl,2 ;const add hl,sp call l_gint ;%9= pop bc pop hl push hl push bc call dload call dpush= call dldpsh jp nz,%1 jp %2.%1= jp z,%2.%1 jp z,%1 jp %2.%1= jp nz,%2.%1 jp nz,%1 jp z,%2.%1= jp z,%2.%1 jp z,%1 jp nz,%2.%1= jp nz,%2.%1 jp z,%1 call %2.%1= call nz,%2.%1 jp nz,%1 call %2.%1= call z,%2.%1 call _%1 ret= jp _%1 jp z,%1 jp %2.%1= jp nz,%2.%1 ld hl,%1 ;const ex de,hl ld hl,%2 ;const= ld de,%1 ld hl,%2 ;const ld (%1),%2 ld %2,(%1)= ld (%1),%2 jp z,%1 ret.%1= ret nz.%1 jp nz,%1 ret.%1= ret z.%1 push hl ld hl,%1 ;const pop de= ld de,%1 ;const ex de,hl ld hl,0 ;const add hl,sp call l_gint ;%9= pop hl push hl ld hl,%1 ;const add hl,sp ld de,%2 add hl,de= ld hl,%1+%2 ;const add hl,sp ld hl,%1 ;const add hl,sp inc hl= ld hl,%1+1 ;const add hl,sp ld de,0 ex de,hl call l_eq jp c,%1= ld a,h or l jp z,%1 ld de,%1 ;const ex de,hl ld a,l ld (de),a= ld (hl),#(%1 % 256) ld l,(hl) ld h,0 push de push hl ld hl,1 ;const ld de,0 call l_long_add= call l_inclong push de push hl ld hl,2 ;const ld de,0 call l_long_add= call l_inclong call l_inclong push de push hl ld hl,65535 ;const ld de,65535 call l_long_add= call l_declong dec hl ld hl,%1 ;const= ld hl,%1 ;const inc hl ld hl,%1 ;const= ld hl,%1 ;const add hl,%1 ld hl,%2 ;const= ld hl,%2 ;const push bc pop bc push hl= push hl push bc ld hl,%1 ;const pop bc push hl= ld hl,%1 ;const push hl pop hl push hl pop bc ret= pop hl ret ld a,h or l jp nz,%1 ld hl,0 ;const pop bc ret= ld a,h or l jp nz,%1 pop bc ret ld hl,_%1 ld bc,%2 add hl,bc= ld hl,_%1+%2 ld hl,_%1 ld bc,-%2 add hl,bc= ld hl,_%1-%2 add hl,bc ld hl,_%1 inc hl= ld hl,_%1+1 ld hl,_%1 call l_gint ;%9= ld hl,(_%1) ld hl,_%1 call l_glong= ld hl,(_%1) ld de,(_%1+2) ld hl,_%1 ld l,(hl) ld h,0= ld hl,(_%1) ld h,0 ld hl,%1 ;const jp %2 ld hl,%1 ;const= ld hl,%1 ;const jp %2 pop bc pop hl push hl push bc pop bc pop bc ret= pop bc pop hl ret pop bc push hl pop hl push hl= pop bc push hl pop hl push hl ld bc,%1 add hl,bc pop bc push hl= pop hl ld bc,%1 add hl,bc push hl push bc push bc ld hl,%1 pop de pop bc push hl push de= ld hl,%1 push hl push bc ld hl,_%1 ld a,(hl) cp %3= ld a,(_%1) cp %3 ld hl,_%1 ld a,(hl) and a= ld a,(_%1) and a ld de,%1 pop de= pop de pop bc ld hl,%1 ;const add hl,sp ld sp,hl= ld hl,%1+2 ;const add hl,sp ld sp,hl exx ld hl,%1 ;const add hl,sp ld sp,hl exx ld hl,%2 ;const add hl,sp ld sp,hl= exx ld hl,%1+%2 ;const add hl,sp ld sp,hl exx ld de,%1 pop de= pop de call l_int2long_s pop de= pop de jp i_%1 jp i_%2= jp i_%1 ld hl,%1 ;const add hl,sp ld bc,%2 add hl,bc= ld hl,%1+%2 ;const add hl,sp call l_inclong ld hl,%1= ld hl,%1 call l_declong ld hl,%1= ld hl,%1 call exit pop %1= call exit call exit ld hl,%1 ;const add hl,sp ld sp,hl= call exit push hl pop bc ret= ret ld de,1 ;const ex de,hl call l_eq jp nc,%1= dec hl ld a,h or l jp nz,%1 ld de,1 ;const ex de,hl call l_eq jp c,%1= dec hl ld a,h or l jp z,%1 ld de,65535 ;const ex de,hl call l_ne jp nc,%1= inc hl ld a,h or l jp z,%1 push de ld hl,65535 ;const pop de call l_eq jp nc,%1= inc de ld a,d or e jp nz,%1 push de ld hl,65535 ;const pop de call l_eq jp c,%1= inc de ld a,d or e jp z,%1 push de ld hl,1 ;const pop de call l_eq jp c,%1= dec de ld a,d or e jp z,%1 push de ld hl,1 ;const pop de call l_eq jp nc,%1= dec de ld a,d or e jp nz,%1 ld de,65535 ;const ex de,hl call l_eq jp nc,%1= inc hl ld a,h or l jp nz,%1 ld de,65535 ;const ex de,hl call l_eq jp c,%1= inc hl ld a,h or l jp z,%1 ld hl,0 ;const ld de,0 call l_long_as%1= pop bc pop bc ld hl,%1 ;const ld de,%2 call l_long_as%3= ld l,#(%1 % 256) call l_long_as%3 push hl call l_glong push de push hl pop bc pop bc pop bc call l_plong= ld hl,%1 ;const add hl,sp ld hl,%2= ld hl,%2 ld hl,%1 ;const call l_as%2= ld l,#(%1 % 256) call l_as%2 ld de,%1 ;const ex de,hl call l_as%2= ex de,hl ld l,#(%1 % 256) call l_as%2 pop hl push hl ex de,hl= pop de push de.%1 jp %3.%2 jp %1.%3=.%1.%2.%3 pop de pop bc push hl push de pop bc pop hl push hl push bc= pop de pop bc push hl push de ld a,h or l jp nz,%1 ld hl,1 ;const= ld a,h or l jp nz,%1 inc hl pop hl push hl ld a,l cp %2 jp z,%3 pop hl push hl ld a,l= pop hl push hl ld a,l cp %2 jp z,%3 ld hl,%1 ;const add hl,sp ld a,(hl) cp %2 jp z,%3 ld hl,%1 ;const add hl,sp ld a,(hl)= ld hl,%1 ;const add hl,sp ld a,(hl) cp %2 jp z,%3 push de push hl ld l,%1 call l_long_asl= ld a,%1 call l_long_aslo push de push hl ld l,%1 call l_long_asr%2= ld c,%1 call l_long_asr%2o ld l,(hl) ld h,0 ld de,%1 ex de,hl= ld e,(hl) ld d,0 ld hl,%1 call l_gint ;%9 push hl ld hl,%1= ld e,(hl) inc hl ld d,(hl) push de ld hl,%1 ld hl,_%1 ld de,%2 ex de,hl call l_pint= ld hl,%2 ld (_%1),hl pop bc push hl pop bc push hl= pop bc push hl ld hl,%1 ;const add hl,sp push hl call l_gint ;%9 pop de call l_pint= ld hl,%1 ;const add hl,sp call l_gint ;%9 ld hl,%1 ;const add hl,sp push hl call l_glong pop bc call l_plong= ld hl,%1 ;const add hl,sp call l_glong push de push hl ld hl,%1 ;const add hl,sp call l_gint ;%9 call l_int2long_s call l_long_asl= push hl ld hl,%1-2 ;const add hl,sp ld a,(hl) pop hl call l_long_aslo push de push hl ld hl,%1 ;const add hl,sp call l_gint ;%9 ld de,0 call l_long_asl= push hl ld hl,%1-2 ;const add hl,sp ld a,(hl) pop hl call l_long_aslo ld a,#(16 % 256) call l_long_aslo= ex de,hl ld hl,0 ;const push hl ld hl,(_%1 pop de= ex de,hl ld hl,(_%1 pop hl push hl ex de,hl= pop de push de ld hl,0 ;const add hl,sp ld a,(hl) add a,%1 ld (hl),a ld l,a ld h,0= pop hl ld a,l add a,%1 ld l,a push hl ld h,0 push de pop bc pop hl push hl push bc= pop hl push hl push de push de ld hl,%1 ;const add hl,sp ld a,(hl) pop de= ld hl,%1-2 ;const add hl,sp ld a,(hl) ld hl,%1 push hl ld hl,%1= ld hl,%1 push hl ld hl,%1 add hl,sp push hl ld hl,%1 add hl,sp= ld hl,%1 add hl,sp push hl dec hl dec hl ld hl,0 ;const jp %2.%1 ld hl,1 ;const.%2 ld a,h or l jp z,%3= ld hl,0 ;const jp %3.%1 ld hl,1 ;const.%2 ld a,h or l jp z,%3 ld hl,(%1) ld h,0 dec hl ld a,l ld (%1),a= ld hl,%1 dec (hl) ld l,(hl) ld h,0 ld hl,(%1) ld h,0 inc hl ld a,l ld (%1),a= ld hl,%1 inc (hl) ld l,(hl) ld h,0 ld l,a ld h,0 ld hl,%1= ld hl,%1 ld l,(hl) ld h,0 ld hl,%1= ld hl,%1 ld hl,%1 %2 (hl) ld hl,(%1) ld h,0= ld hl,%1 %2 (hl) ld l,(hl) ld h,0 ld l,a ld h,0.%1 ld hl,%2=.%1 ld hl,%2 ld a,l ld (de),a ld a,h or l jp z,%1= ld a,l ld (de),a and a jp z,%1 ld a,l ld (de),a ld a,h or l jp nz,%1= ld a,l ld (de),a and a jp nz,%1 ld e,(hl) ld d,0 ld hl,%1 ;const
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -