-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMISC.INC
More file actions
50 lines (49 loc) · 756 Bytes
/
MISC.INC
File metadata and controls
50 lines (49 loc) · 756 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
;
; support address [email protected]
;
;
; Macro definition file
; Created: 12.07.99 05:32
;
.XLIST
mov_x MACRO var, reg
local @@1
push ebp
call @@1
@@1: pop ebp
mov reg, [ebp+var-@@1]
pop ebp
ENDM
push_x MACRO Ofset
push Ofset
comment #
local @@1, @@IP$Rel
push eax
call @@1
@@1:
pop eax
@@IP$Rel = offset @@1
add eax, (offset Ofset - @@IP$Rel)
xchg eax, [esp] ; jump to handler
#
ENDM
;
; String encryption macros
;
;
AllocX MACRO arg1,arg2
&arg1 label byte
irpc char,arg2
db ('&char' xor encryption_byte0) xor encryption_byte1
endm
endm
;
AllocZ MACRO arg1,arg2
&arg1 label byte
irpc char,arg2
db ('&char' xor encryption_byte3) - encryption_byte2
endm
db (0 xor encryption_byte3) - encryption_byte2
endm
;
.LIST