testlib.asm

来自「开源的nasm编译器源码,研究编译器原理很有帮且」· 汇编 代码 · 共 19 行

ASM
19
字号
; program to test retrieval of and linkage to modules in libraries by; ldrdf[SECTION .text][GLOBAL _main][EXTERN _strcmp]_main:	push dword string1	push dword string2	call _strcmp	add esp,8		; doh! clear up stack ;-)	ret[SECTION .data]string1:	db 'abc',0	; try changing these strings and seestring2:	db 'abd',0	; what happens!

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?