nasm汇编语言逻辑指令示例代码
代码语言:assembly
代码描述:nasm汇编语言逻辑指令示例代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
section .text global _start ;must be declared for using gcc _start: ;tell linker entry point mov ax, 8h ;getting 8 in the ax and ax, 1 ;and ax with 1 jz evnn mov eax, 4 ;system call number (sys_write) mov ebx, 1 ;file descriptor (stdout) mov ecx, odd_msg ;message to write mov edx, len2 ;length of message int 0x80 ;call kernel jmp outprog evnn: mov ah, 09h mov eax, .........完整代码请登录后点击上方下载按钮下载查看
网友评论0