|
|
1.1 root 1: ;; LISTING.INC
2: ;;
3: ;; This file contains assembler macros and is included by the files created
4: ;; with the -FA compiler switch to be assembled by MASM (Microsoft Macro
5: ;; Assembler).
6: ;;
7: ;; Copyright (c) 1993, Microsoft Corporation. All rights reserved.
8:
9: ;; non destructive nops
10: npad macro size
11: if size eq 1
12: nop
13: else
14: if size eq 2
15: mov edi, edi
16: else
17: if size eq 3
18: ; lea ecx, [ecx+00]
19: DB 8DH, 49H, 00H
20: else
21: if size eq 4
22: ; lea esp, [esp+00]
23: DB 8DH, 64H, 24H, 00H
24: else
25: if size eq 5
26: add eax, DWORD PTR 0
27: else
28: if size eq 6
29: ; lea ebx, [ebx+00000000]
30: DB 8DH, 9BH, 00H, 00H, 00H, 00H
31: else
32: if size eq 7
33: ; lea esp, [esp+00000000]
34: DB 8DH, 0A4H, 24H, 00H, 00H, 00H, 00H
35: else
36: %out error: unsupported npad size
37: .err
38: endif
39: endif
40: endif
41: endif
42: endif
43: endif
44: endif
45: endm
46:
47: ;; destructive nops
48: dpad macro size, reg
49: if size eq 1
50: inc reg
51: else
52: %out error: unsupported dpad size
53: .err
54: endif
55: endm
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.