forked from rxwei/x86-assembly-textmate-bundle
-
Notifications
You must be signed in to change notification settings - Fork 24
/
ripseg.asm
35 lines (32 loc) · 1.27 KB
/
ripseg.asm
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
[bits 64]
foo:
[default abs]
mov rbx, [foo] ; out: 48 8b 1c 25 00 00 00 00
mov rbx, [es:foo] ; out: 26 48 8b 1c 25 00 00 00 00
mov rbx, [fs:foo] ; out: 64 48 8b 1c 25 00 00 00 00
mov rbx, [gs:foo] ; out: 65 48 8b 1c 25 00 00 00 00
mov rbx, [rel es:foo] ; out: 26 48 8b 1d d5 ff ff ff
mov rbx, [rel fs:foo] ; out: 64 48 8b 1d cd ff ff ff
mov rbx, [rel gs:foo] ; out: 65 48 8b 1d c5 ff ff ff
mov rbx, [abs es:foo] ; out: 26 48 8b 1c 25 00 00 00 00
mov rbx, [abs fs:foo] ; out: 64 48 8b 1c 25 00 00 00 00
mov rbx, [abs gs:foo] ; out: 65 48 8b 1c 25 00 00 00 00
;mov rbx, [es:rel foo]
;mov rbx, [fs:rel foo]
;mov rbx, [es:abs foo]
;mov rbx, [fs:abs foo]
[default rel]
mov rbx, [foo] ; out: 48 8b 1d a3 ff ff ff
mov rbx, [es:foo] ; out: 26 48 8b 1d 9b ff ff ff
mov rbx, [fs:foo] ; out: 64 48 8b 1c 25 00 00 00 00
mov rbx, [gs:foo] ; out: 65 48 8b 1c 25 00 00 00 00
mov rbx, [rel es:foo] ; out: 26 48 8b 1d 81 ff ff ff
mov rbx, [rel fs:foo] ; out: 64 48 8b 1d 79 ff ff ff
mov rbx, [rel gs:foo] ; out: 65 48 8b 1d 71 ff ff ff
mov rbx, [abs es:foo] ; out: 26 48 8b 1c 25 00 00 00 00
mov rbx, [abs fs:foo] ; out: 64 48 8b 1c 25 00 00 00 00
mov rbx, [abs gs:foo] ; out: 65 48 8b 1c 25 00 00 00 00
;mov rbx, [es:rel foo]
;mov rbx, [fs:rel foo]
;mov rbx, [es:abs foo]
;mov rbx, [fs:abs foo]