nanotest.s

来自「*****汇编语言程序设计 源代码*****」· S 代码 · 共 34 行

S
34
字号
# nanotest.s - Another example of using system calls.section .datatimespec:   .int 5, 0output:   .ascii "This is a test\n"output_end:   .equ len, output_end - output.section .bss   .lcomm rem, 8.section .text.globl _start_start:   nop   movl $10, %ecxloop1:   pushl %ecx   movl $4, %eax   movl $1, %ebx   movl $output, %ecx   movl $len, %edx   int $0x80   movl $162, %eax   movl $timespec, %ebx   movl $rem, %ecx   int $0x80   popl %ecx   loop loop1   movl $1, %eax   movl $0, %ebx   int $0x80

⌨️ 快捷键说明

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