flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Roman 01 Jul 2022, 11:46
my full list code.
Code: format PE64 GUI 5.0 on 'nul' entry Start include 'c:\fasmw17316\include\win64ax.inc' macro _push reg { if ~defined __tmpReg_#reg jmp @f __tmpReg_#reg dq 0 @@: end if mov [__tmpReg_#reg],reg } SECTION '.data' DATA READABLE WRITEABLE executable tflt dd 2 dup (1.0,2) section '.code' code readable writeable executable Start: sub rsp,8 ;match ff,x=Color, z { display `ff,13,10 } _push rax ; invoke MessageBox,0,'11',0,0 ;Msg ff invoke ExitProcess,0 SECTION '.idata' IMPORT DATA READABLE WRITEABLE library kernel32, 'KERNEL32.DLL',\ user32, 'USER32.DLL',\ winmm, 'WINMM.DLL',\ msvcrt, 'MSVCRT.DLL' include 'fasmAPI\kernel32.inc' include 'fasmAPI\user32.inc' include 'fasmAPI\winmm.inc' include 'fasmAPI\msvcrt.inc' ; import shell32,DragQueryFile,'DragQueryFileA' section '.bss' readable writeable UserNameDrop rb 25600 |
|||
![]() |
|
Roman 01 Jul 2022, 14:16
I try this variant (work fine). But sad not work first variant.
Code: macro _push redd { if ~ defined __tmpReg_rrr ;#reg __tmpReg_rrr EQU 1 jmp @f irps reg, rax rcx rbx rdx rbp rsi rdi r8 r9 r10 r11 r12 r13 r14 r15 \{ __tmpReg_\#reg dq 0 \} @@: end if mov [__tmpReg_#redd],redd } |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.