📄 asmz80.asm
字号:
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_1_d:
test ch,2
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_1_e:
test cl,2
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_1_h:
test dh,2
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_1_l:
test dl,2
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_1_xhl:
call get_hl
test byte ptr [memVal],2
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
call put_hl
jmp next
bit_1_a:
test al,2
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_2_b:
test bh,4
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_2_c:
test bl,4
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_2_d:
test ch,4
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_2_e:
test cl,4
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_2_h:
test dh,4
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_2_l:
test dl,4
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_2_xhl:
call get_hl
test byte ptr [memVal],4
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
call put_hl
jmp next
bit_2_a:
test al,4
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_3_b:
test bh,8
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_3_c:
test bl,8
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_3_d:
test ch,8
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_3_e:
test cl,8
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_3_h:
test dh,8
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_3_l:
test dl,8
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_3_xhl:
call get_hl
test byte ptr [memVal],8
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
call put_hl
jmp next
bit_3_a:
test al,8
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_4_b:
test bh,16
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_4_c:
test bl,16
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_4_d:
test ch,16
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_4_e:
test cl,16
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_4_h:
test dh,16
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_4_l:
test dl,16
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_4_xhl:
call get_hl
test byte ptr [memVal],16
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
call put_hl
jmp next
bit_4_a:
test al,16
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_5_b:
test bh,32
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_5_c:
test bl,32
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_5_d:
test ch,32
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_5_e:
test cl,32
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_5_h:
test dh,32
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_5_l:
test dl,32
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_5_xhl:
call get_hl
test byte ptr [memVal],32
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
call put_hl
jmp next
bit_5_a:
test al,32
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_6_b:
test bh,64
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_6_c:
test bl,64
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_6_d:
test ch,64
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_6_e:
test cl,64
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_6_h:
test dh,64
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_6_l:
test dl,64
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_6_xhl:
call get_hl
test byte ptr [memVal],64
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
call put_hl
jmp next
bit_6_a:
test al,64
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_7_b:
test bh,128
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_7_c:
test bl,128
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_7_d:
test ch,128
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_7_e:
test cl,128
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_7_h:
test dh,128
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_7_l:
test dl,128
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
bit_7_xhl:
call get_hl
test byte ptr [memVal],128
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
call put_hl
jmp next
bit_7_a:
test al,128
push bx
mov bl,ah
lahf
and bl,1
and ah,040h
or ah,bl
or ah,10h
pop bx
mov byte ptr [_nFlag],0
jmp next
call_nz_word:
call get_opword
sahf
jz next
mov si,[memVal]
push si
mov si,[_regPC]
mov [memVal],si
sub di,2
call put_spword
pop si
mov [_regPC],si
sub [clkLeft],7
mov byte ptr [_ignoreStack],0
jmp next
call_z_word:
call get_opword
sahf
jnz next
mov si,[memVal]
push si
mov si,[_regPC]
mov [memVal],si
sub di,2
call put_spword
pop si
mov [_regPC],si
sub [clkLeft],7
mov byte ptr [_ignoreStack],0
jmp next
call_word:
mov si,[_regPC]
add si,2
mov [memVal],si
sub di,2
call put_spword
call get_opword
mov si,[memVal]
mov [_regPC],si
sub [clkLeft],7
mov byte ptr [_ignoreStack],0
jmp next
call_nc_word:
call get_opword
sahf
jc next
mov si,[memVal]
push si
mov si,[_regPC]
mov [memVal],si
sub di,2
call put_spword
pop si
mov [_regPC],si
sub [clkLeft],7
mov byte ptr [_ignoreStack],0
jmp next
call_c_word:
call get_opword
sahf
jnc next
mov si,[memVal]
push si
mov si,[_regPC]
mov [memVal],si
sub di,2
call put_spword
pop si
mov [_regPC],si
sub [clkLeft],7
mov byte ptr [_ignoreStack],0
jmp next
ccf:
and ah,0efh
xor ah,1
mov byte ptr [_nFlag],0
jmp next
cp_a_b:
cmp al,bh
lahf
mov byte ptr [_nFlag],1
jmp next
cp_a_c:
cmp al,bl
lahf
mov byte ptr [_nFlag],1
jmp next
cp_a_d:
cmp al,ch
lahf
mov byte ptr [_nFlag],1
jmp next
cp_a_e:
cmp al,cl
lahf
mov byte ptr [_nFlag],1
jmp next
cp_a_h:
cmp al,dh
lahf
mov byte ptr [_nFlag],1
jmp next
cp_a_l:
cmp al,dl
lahf
mov byte ptr [_nFlag],1
jmp next
cp_a_xhl:
call get_hl
cmp al,byte ptr [memVal]
lahf
mov byte ptr [_nFlag],1
jmp next
cp_a_a:
cmp al,al
lahf
mov byte ptr [_nFlag],1
jmp next
cp_byte:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -