-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathinterrupts32.asm
More file actions
57 lines (47 loc) · 793 Bytes
/
Copy pathinterrupts32.asm
File metadata and controls
57 lines (47 loc) · 793 Bytes
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
.686
.model flat, C
.stack
.data
.code
CallInterrupt proc
push eax
push ecx
push edx
push ebx
; push esp
push ebp
push esi
push edi
add esp, 1Ch
add esp, 04h
mov eax, dword ptr [esp+00h]
mov ecx, dword ptr [esp+04h]
mov edx, dword ptr [esp+08h]
mov ebx, dword ptr [esp+0Ch]
mov ebp, dword ptr [esp+10h]
mov esi, dword ptr [esp+14h]
mov edi, dword ptr [esp+18h]
sub esp, 04h
sub esp, 1Ch
int 7Eh
pop edi
pop esi
pop ebp
; pop esp
pop ebx
pop edx
pop ecx
; pop eax
add esp, 4
ret
CallInterrupt endp
CallInrerruptReturn proc
add esp, 4
iretd
CallInrerruptReturn endp
TryRead proc
mov eax, dword ptr [esp+04h]
mov al, byte ptr [eax]
ret
TryRead endp
end