调用“dumpmem”和“dumpreg”命令(masm615)有什么区别?

时间:2016-02-25 11:21:00

标签: assembly

调用“dumpmem”和“dumpregs”命令(masm615)有什么区别?

call dumpmem
call dumpregs

1 个答案:

答案 0 :(得分:1)

这些不是masm函数,它们来自某个库。可能是欧文的一个。显然dumpmem会转储内存,而dumpregs会转储寄存器:

DumpMem PROC
;
; Writes a range of memory to standard output
; in hexadecimal.
; Receives: ESI = starting offset, ECX = number of units,
;           EBX = unit size (1=byte, 2=word, or 4=doubleword)
; Returns:  nothing

DumpRegs PROC
;
; Displays EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP in
; hexadecimal. Also displays the Zero, Sign, Carry, and
; Overflow flags.
; Receives: nothing.
; Returns: nothing.