hexdecode.asm
来自「ASM 多种hash模块,汇编源码 MD2,4,5 SHA 等多种加密算法 」· 汇编 代码 · 共 41 行
ASM
41 行
.686
.model flat,stdcall
option casemap:none
.code
HexDecode proc uses esi edi ebx pHexStr:dword,pOutBuffer:dword
mov esi,pHexStr
mov edi,pOutBuffer
jmp @1
@@:
and ebx,0Fh
add eax,ebx
mov [edi],al
inc edi
@1:
movzx edx,byte ptr[esi]
cmp edx,40h
sbb ebx,ebx
sub edx,37h
and ebx,7
inc esi
add ebx,edx
js @F
mov eax,ebx
shl eax,4
mov [edi],al
movzx edx,byte ptr[esi]
cmp edx,40h
sbb ebx,ebx
sub edx,37h
and ebx,7
inc esi
add ebx,edx
jns @B
@@:
ret
HexDecode endp
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?