-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasmbonsai.asm
More file actions
executable file
·37 lines (31 loc) · 1.08 KB
/
asmbonsai.asm
File metadata and controls
executable file
·37 lines (31 loc) · 1.08 KB
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
29
30
31
32
33
34
35
36
37
BITS 64
org 0x010000
ehdr:
db 0x7f, "ELF" ; 4 e_ident / jg _start
more:
pop rax ; 1
push rcx ; 1
pop rsi ; 1
mov dl, 60 ; 2
push rdx ; 1
jmp _start ; 2
dd 0x01 ; 4
dw 3 ; 2 e_type: dynamic
dw 0x3e ; 2 e_machine: amd64
dq 0x0c ; 8
dd 0x0c ; 4
dq 0x0c ; 8
go:
syscall ; 2
jmp more ; 2
db 0xf4 ; 1
db 0xff ; 1
message:
db "He" ; 2
dd 0x00 ; 4
db "ll" ; 2
dw 0x38 ; 2
dd 0x01 ; 4
db 0x08,"o, world!",0x0a ; 11
_start:
jmp go ; 2