и $ ?
format PE64 GUI 5.01 NX
entry EntryTest64
include 'win64a.inc'
section '.idata' import data readable writeable
library kernel32,'KERNEL32.DLL'
import kernel32,ExitProcess,'ExitProcess'
section '.text' code readable executable
EntryTest64:
sub rsp, 8 ; stack align
mov rax, mem1
invoke ExitProcess, 0
section '.data' data readable writeable
mem1 dq ?
section '.reloc' data readable discardable fixups
; вот что тут надо сделать для вывода $$ и $ ?
macro disphex number*,digits:8 { local digit repeat digits digit = ((number) shr ((digits-%) shl 2)) and 0Fh if digit < 10 display '0'+digit else display 'A'+digit-10 end if end repeat } macro disphex_PREPROCCESSOR_PAINFUL_BUT_WORKED_WITH_RELOCS number*,digits:8 { local digit,n virtual dq number load n qword from $$ end virtual repeat digits digit = ((n) shr ((digits-%) shl 2)) and 0Fh if digit < 10 display '0'+digit else display 'A'+digit-10 end if end repeat } format PE64 GUI 5.01 NX entry EntryTest64 include 'win64a.inc' section '.idata' import data readable writeable library kernel32,'KERNEL32.DLL' import kernel32,ExitProcess,'ExitProcess' section '.text' code readable executable EntryTest64: sub rsp, 8 ; stack align mov rax, mem1 invoke ExitProcess, 0 section '.data' data readable writeable mem1 dq ? section '.reloc' data readable discardable fixups disphex_PREPROCCESSOR_PAINFUL_BUT_WORKED_WITH_RELOCS $
Обсуждают сегодня