汇编语言编写helloworld
时间: 2023-11-19 18:07:21 浏览: 101
汇编语言hello,world
以下是汇编语言编写helloworld的例子:
```assembly
section .data
hello db 'Hello, World!',0
section .text
global _start
_start:
; write(1, message, 13)
mov eax, 4
mov ebx, 1
mov ecx, hello
mov edx, 13
int 0x80
; exit(0)
mov eax, 1
xor ebx, ebx
int 0x80
```
阅读全文