随笔分类 -  asm

摘要:xxx.asm %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain export astrlen dllmain: mov eax,1 ret 12 astrlen: push ebp m 阅读全文
posted @ 2020-09-23 17:52 Ajanuw 阅读(240) 评论(0) 推荐(0)
摘要:xxx.asm: %define p1 ebp+8 %define p2 ebp+12 %define p3 ebp+16 section .text global dllmain dllmain: mov eax,1 ret 12 aat: push ebp mov ebp,esp ; 函数必须保 阅读全文
posted @ 2020-09-20 11:38 Ajanuw 阅读(151) 评论(0) 推荐(0)
摘要:制作DLL xxx.asm: %macro fb 0 push ebp mov ebp,esp %endmacro %macro fa 1 mov esp,ebp pop ebp ret %1 %endmacro section .text global dllmain dllmain: mov e 阅读全文
posted @ 2020-09-19 15:13 Ajanuw 阅读(374) 评论(0) 推荐(0)
摘要:hello.asm: extern MessageBoxA extern ExitProcess section .data title db "caption.",0 message db "hello world....",0 section .text global main main: pu 阅读全文
posted @ 2020-09-19 14:43 Ajanuw 阅读(197) 评论(0) 推荐(0)
摘要:a.asm global Start section .text inc dword [esi] push edi mov edi,[esp+0x14] λ nasm -f win32 a.asm -l a.lst 1 global Start 2 section .text 3 00000000 阅读全文
posted @ 2020-08-05 23:34 Ajanuw 阅读(329) 评论(0) 推荐(0)
摘要:NASM官网 下载NASM NASM在线HTML文档 下载golink golink文档 NASM教程 in windows x64调用约定 x86调用约定 编码样式约定 在编写nasm时数字默认为10进制 x86控制台程序 objexe.asm: ; equ 定义常量 STD_OUTPUT_HAN 阅读全文
posted @ 2020-07-01 16:42 Ajanuw 阅读(3906) 评论(0) 推荐(2)
摘要:movbe MOVBE 目标操作数,源操作数 复制源操作数的数据,交换字节后,移动数据 假如: movbe eax,(float)1000.0 eax == 0x00007A44 movbe eax,0x00007A44 // mov eax,0x447A0000 交换字节,移动数据 eax == 阅读全文
posted @ 2020-06-24 12:25 Ajanuw 阅读(755) 评论(0) 推荐(0)