HariboteOS/day27/app/hello5.asm
2021-05-29 23:13:17 +08:00

18 lines
210 B
NASM
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[BITS 32]
GLOBAL main
[SECTION .text]
main:
MOV EDX, 2
MOV EBX, msg
INT 0x40
MOV EDX, 4
INT 0x40
; .data段执行失败
[SECTION .data]
msg:
DB "hello, world", 0x0a, 0