Skip to content

Commit f23d62a

Browse files
author
FusixGit
committed
Create main.asm
1 parent ef8d220 commit f23d62a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

main.asm

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.686
2+
.MODEL FLAT, C
3+
.STACK
4+
5+
.DATA
6+
7+
.CODE
8+
9+
GetThreadTIB PROC
10+
assume fs:nothing
11+
MOV EAX, FS:[0]
12+
ret
13+
GetThreadTIB ENDP
14+
15+
GetThreadTEB PROC
16+
assume fs:nothing
17+
MOV EAX, FS:[018h]
18+
ret
19+
GetThreadTEB ENDP
20+
21+
GetThreadPEB PROC
22+
assume fs:nothing
23+
MOV EAX, FS:[030h]
24+
ret
25+
GetThreadPEB ENDP
26+
27+
END

0 commit comments

Comments
 (0)