在 masm32.inc 中有这样几个函数的声明:
byt2bin_ex PROTO :BYTE, :DWORD wrd2bin_ex PROTO :WORD, :DWORD dw2bin_ex PROTO :DWORD, :DWORD dw2hex_ex PROTO :DWORD, :DWORD bin2byte_ex PROTO :DWORD
学习查看二进制是为了看到 EFLAGS 中的二进制位的变化:
; Test19_6.asm .386 .model flat, stdcall include windows.inc include kernel32.inc include masm32.inc include debug.inc includelib kernel32.lib includelib masm32.lib includelib debug.lib .data szBin db 8 dup(?), 0 .code main proc lahf ;LAHF 指令是把 EFLAGS 寄存器的低字节读入 AH invoke byt2bin_ex, ah, addr szBin PrintString szBin ;01000110 ret main endp end main
转载请注明:懒人档案室 » Win32 汇编[19]: 查看二进制等相关函数