summaryrefslogtreecommitdiff
path: root/src/user/hello/hello.asm
blob: cc0645a945f7390fb77754e7649659882ad61af6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
bits 32

global _entry

section .text
_entry:
  mov eax, 0x05
  mov ebx, esi
  mov ecx, data.len
  mov edx, data
  int 0x30

  int 0x38

section .rodata
data:
  dd 0xb
  dd .str_len
  dd 0

.str:
  db "Hello, world!", 0x0a
.str_len equ $ - .str

  dd 0x02
  dd 0
  dd 0
.len equ $ - data