-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.s
85 lines (62 loc) · 885 Bytes
/
test.s
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
section .text
global _start
_start:
mov rax, 0102030405060708h
mov eax, 01020304h
mov ax, 0102h
mov rbx, 0102030405060708h
mov ebx, 01020304h
mov bx, 0102h
mov rcx, 0102030405060708h
mov ecx, 01020304h
mov cx, 0102h
mov edi, [rbx+rcx]
mov rdx, 0102030405060708h
mov edx, 01020304h
mov dx, 0102h
inc rax
inc rbx
inc rcx
inc rdx
inc eax
inc ebx
inc ecx
inc edx
dec rax
dec rbx
dec rcx
dec rdx
dec eax
dec ebx
dec ecx
dec edx
inc byte [rbx+rcx]
inc byte [ebx+ecx]
dec byte [rbx+rcx]
dec byte [ebx+ecx]
mov al, [rbx+rcx]
mov eax, [ebx+ecx]
mov [rbx+rcx], rax
mov [ebx+ecx], al
xor rax, rax
test rcx, rcx
test ecx, ecx
test rax, rax
test eax, eax
test al, al
je 0102030405060708h
je 01020304h
push rax
pop rax
push rbx
pop rbx
push rcx
pop rcx
mov rcx, [rbx+rcx]
jmp 0102030405060708h
jmp 01020304h
call 0102030405060708h
call 01020304h
mov rdi, [rbx+rcx]
ret
leave